5 |
6 | XHR Plugin
7 |
8 |
9 |
10 |
11 |
12 |
13 | Example of using Web Tracer with XHR plugin and console exporter
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
--------------------------------------------------------------------------------
/experimental/packages/otlp-exporter-base/tsconfig.esnext.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "../../../tsconfig.base.esnext.json",
3 | "compilerOptions": {
4 | "outDir": "build/esnext",
5 | "rootDir": "src",
6 | "tsBuildInfoFile": "build/esnext/tsconfig.esnext.tsbuildinfo"
7 | },
8 | "include": [
9 | "src/**/*.ts"
10 | ],
11 | "references": [
12 | {
13 | "path": "../../../api"
14 | },
15 | {
16 | "path": "../../../packages/opentelemetry-core"
17 | }
18 | ]
19 | }
20 |
--------------------------------------------------------------------------------
/packages/opentelemetry-context-zone/tsconfig.esm.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "../../tsconfig.base.esm.json",
3 | "compilerOptions": {
4 | "outDir": "build/esm",
5 | "rootDir": "src",
6 | "tsBuildInfoFile": "build/esm/tsconfig.esm.tsbuildinfo"
7 | },
8 | "files": [
9 | "node_modules/zone.js/dist/zone.js.d.ts"
10 | ],
11 | "include": [
12 | "src/**/*.ts"
13 | ],
14 | "references": [
15 | {
16 | "path": "../opentelemetry-context-zone-peer-dep"
17 | }
18 | ]
19 | }
20 |
--------------------------------------------------------------------------------
/packages/opentelemetry-resources/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "../../tsconfig.base.json",
3 | "compilerOptions": {
4 | "outDir": "build",
5 | "rootDir": "."
6 | },
7 | "files": [],
8 | "include": [
9 | "src/**/*.ts",
10 | "test/**/*.ts"
11 | ],
12 | "references": [
13 | {
14 | "path": "../../api"
15 | },
16 | {
17 | "path": "../opentelemetry-core"
18 | },
19 | {
20 | "path": "../opentelemetry-semantic-conventions"
21 | }
22 | ]
23 | }
24 |
--------------------------------------------------------------------------------
/.github/CODEOWNERS:
--------------------------------------------------------------------------------
1 | #####################################################
2 | #
3 | # List of approvers for OpenTelemetry JS SDK
4 | #
5 | #####################################################
6 | #
7 | # Learn about membership in OpenTelemetry community:
8 | # https://github.com/open-telemetry/community/blob/master/community-membership.md
9 | #
10 | #
11 | # Learn about CODEOWNERS file format:
12 | # https://help.github.com/en/articles/about-code-owners
13 | #
14 |
15 | * @open-telemetry/javascript-approvers
16 |
--------------------------------------------------------------------------------
/experimental/packages/opentelemetry-instrumentation/tsconfig.esnext.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "../../../tsconfig.base.esnext.json",
3 | "compilerOptions": {
4 | "outDir": "build/esnext",
5 | "rootDir": "src",
6 | "tsBuildInfoFile": "build/esnext/tsconfig.esnext.tsbuildinfo"
7 | },
8 | "include": [
9 | "src/**/*.ts"
10 | ],
11 | "references": [
12 | {
13 | "path": "../../../api"
14 | },
15 | {
16 | "path": "../../../packages/sdk-metrics"
17 | }
18 | ]
19 | }
20 |
--------------------------------------------------------------------------------
/selenium-tests/pages/fetch/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | Fetch Plugin
7 |
8 |
9 |
10 |
11 |
12 |
13 | Example of using Web Tracer with Fetch plugin and console exporter
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
--------------------------------------------------------------------------------
/experimental/examples/logs/README.md:
--------------------------------------------------------------------------------
1 | ## Installation
2 |
3 | ```sh
4 | # from this directory
5 | npm install
6 | ```
7 |
8 | ## Run the Application
9 |
10 | LogRecord
11 |
12 | ```sh
13 | npm start
14 | ```
15 |
16 | ## Useful links
17 |
18 | - For more information on OpenTelemetry, visit:
19 | - For more information on OpenTelemetry logs, visit:
20 |
21 | ## LICENSE
22 |
23 | Apache License 2.0
24 |
--------------------------------------------------------------------------------
/packages/opentelemetry-context-zone/tsconfig.esnext.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "../../tsconfig.base.esnext.json",
3 | "compilerOptions": {
4 | "outDir": "build/esnext",
5 | "rootDir": "src",
6 | "tsBuildInfoFile": "build/esnext/tsconfig.esnext.tsbuildinfo"
7 | },
8 | "files": [
9 | "node_modules/zone.js/dist/zone.js.d.ts"
10 | ],
11 | "include": [
12 | "src/**/*.ts"
13 | ],
14 | "references": [
15 | {
16 | "path": "../opentelemetry-context-zone-peer-dep"
17 | }
18 | ]
19 | }
20 |
--------------------------------------------------------------------------------
/packages/sdk-metrics/tsconfig.esm.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "../../tsconfig.base.esm.json",
3 | "compilerOptions": {
4 | "outDir": "build/esm",
5 | "rootDir": "src",
6 | "tsBuildInfoFile": "build/esm/tsconfig.esm.tsbuildinfo"
7 | },
8 | "include": [
9 | "src/**/*.ts"
10 | ],
11 | "references": [
12 | {
13 | "path": "../../api"
14 | },
15 | {
16 | "path": "../opentelemetry-core"
17 | },
18 | {
19 | "path": "../opentelemetry-resources"
20 | }
21 | ]
22 | }
23 |
--------------------------------------------------------------------------------
/examples/opentelemetry-web/examples/zipkin/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | Zipkin Exporter Example
7 |
8 |
9 |
10 |
11 |
12 | Example of using Web Tracer with Zipkin Exporter
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
--------------------------------------------------------------------------------
/packages/sdk-metrics/tsconfig.esnext.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "../../tsconfig.base.esnext.json",
3 | "compilerOptions": {
4 | "outDir": "build/esnext",
5 | "rootDir": "src",
6 | "tsBuildInfoFile": "build/esnext/tsconfig.esnext.tsbuildinfo"
7 | },
8 | "include": [
9 | "src/**/*.ts"
10 | ],
11 | "references": [
12 | {
13 | "path": "../../api"
14 | },
15 | {
16 | "path": "../opentelemetry-core"
17 | },
18 | {
19 | "path": "../opentelemetry-resources"
20 | }
21 | ]
22 | }
23 |
--------------------------------------------------------------------------------
/packages/opentelemetry-resources/tsconfig.esm.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "../../tsconfig.base.esm.json",
3 | "compilerOptions": {
4 | "outDir": "build/esm",
5 | "rootDir": "src",
6 | "tsBuildInfoFile": "build/esm/tsconfig.esm.tsbuildinfo"
7 | },
8 | "include": [
9 | "src/**/*.ts"
10 | ],
11 | "references": [
12 | {
13 | "path": "../../api"
14 | },
15 | {
16 | "path": "../opentelemetry-core"
17 | },
18 | {
19 | "path": "../opentelemetry-semantic-conventions"
20 | }
21 | ]
22 | }
23 |
--------------------------------------------------------------------------------
/examples/opentelemetry-web/examples/fetch/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | Fetch Plugin Example
7 |
8 |
9 |
10 |
11 |
12 |
13 | Example of using Web Tracer with Fetch plugin with console exporter and collector exporter
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
--------------------------------------------------------------------------------
/integration-tests/propagation-validation-server/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "../../tsconfig.base.json",
3 | "compilerOptions": {
4 | "rootDir": ".",
5 | "outDir": "build"
6 | },
7 | "include": [],
8 | "references": [
9 | {
10 | "path": "../../api"
11 | },
12 | {
13 | "path": "../../packages/opentelemetry-context-async-hooks"
14 | },
15 | {
16 | "path": "../../packages/opentelemetry-core"
17 | },
18 | {
19 | "path": "../../packages/opentelemetry-sdk-trace-base"
20 | }
21 | ]
22 | }
23 |
--------------------------------------------------------------------------------
/packages/opentelemetry-resources/tsconfig.esnext.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "../../tsconfig.base.esnext.json",
3 | "compilerOptions": {
4 | "outDir": "build/esnext",
5 | "rootDir": "src",
6 | "tsBuildInfoFile": "build/esnext/tsconfig.esnext.tsbuildinfo"
7 | },
8 | "include": [
9 | "src/**/*.ts"
10 | ],
11 | "references": [
12 | {
13 | "path": "../../api"
14 | },
15 | {
16 | "path": "../opentelemetry-core"
17 | },
18 | {
19 | "path": "../opentelemetry-semantic-conventions"
20 | }
21 | ]
22 | }
23 |
--------------------------------------------------------------------------------
/examples/opentelemetry-web/examples/fetch-proto/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | Fetch Plugin Example
7 |
8 |
9 |
10 |
11 |
12 |
13 | Example of using Web Tracer with Fetch plugin with console exporter and proto exporter
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
--------------------------------------------------------------------------------
/experimental/packages/otlp-proto-exporter-base/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "../../../tsconfig.base.json",
3 | "compilerOptions": {
4 | "allowJs": true,
5 | "outDir": "build",
6 | "rootDir": "."
7 | },
8 | "include": [
9 | "src/**/*.ts",
10 | "src/generated/*.js",
11 | "test/**/*.ts"
12 | ],
13 | "references": [
14 | {
15 | "path": "../../../api"
16 | },
17 | {
18 | "path": "../../../packages/opentelemetry-core"
19 | },
20 | {
21 | "path": "../otlp-exporter-base"
22 | }
23 | ]
24 | }
25 |
--------------------------------------------------------------------------------
/experimental/packages/sdk-logs/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "../../../tsconfig.base.json",
3 | "compilerOptions": {
4 | "outDir": "build",
5 | "rootDir": "."
6 | },
7 | "include": [
8 | "src/**/*.ts",
9 | "test/**/*.ts"
10 | ],
11 | "references": [
12 | {
13 | "path": "../../../api"
14 | },
15 | {
16 | "path": "../../../packages/opentelemetry-core"
17 | },
18 | {
19 | "path": "../../../packages/opentelemetry-resources"
20 | },
21 | {
22 | "path": "../api-logs"
23 | }
24 | ]
25 | }
26 |
--------------------------------------------------------------------------------
/experimental/packages/opentelemetry-browser-detector/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "../../../tsconfig.base.json",
3 | "compilerOptions": {
4 | "outDir": "build",
5 | "rootDir": "."
6 | },
7 | "files": [],
8 | "include": [
9 | "src/**/*.ts",
10 | "test/**/*.ts"
11 | ],
12 | "references": [
13 | {
14 | "path": "../../../api"
15 | },
16 | {
17 | "path": "../../../packages/opentelemetry-resources"
18 | },
19 | {
20 | "path": "../../../packages/opentelemetry-semantic-conventions"
21 | }
22 | ]
23 | }
24 |
--------------------------------------------------------------------------------
/experimental/examples/prometheus/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "prometheus-example",
3 | "version": "0.43.0",
4 | "private": true,
5 | "description": "Example of using @opentelemetry/sdk-metrics and @opentelemetry/exporter-prometheus",
6 | "main": "index.js",
7 | "scripts": {
8 | "start": "node index.js"
9 | },
10 | "author": "OpenTelemetry Authors",
11 | "license": "Apache-2.0",
12 | "dependencies": {
13 | "@opentelemetry/api": "^1.3.0",
14 | "@opentelemetry/exporter-prometheus": "0.43.0",
15 | "@opentelemetry/sdk-metrics": "1.17.0"
16 | }
17 | }
18 |
--------------------------------------------------------------------------------
/examples/basic-tracer-node/docker/ot/collector-config.yaml:
--------------------------------------------------------------------------------
1 | receivers:
2 | otlp:
3 | protocols:
4 | grpc:
5 | http:
6 | cors:
7 | allowed_origins:
8 | - http://*
9 | - https://*
10 |
11 | exporters:
12 | jaeger:
13 | endpoint: jaeger-all-in-one:14250
14 | tls:
15 | insecure: true
16 |
17 | processors:
18 | batch:
19 |
20 | service:
21 | telemetry:
22 | logs:
23 | level: "debug"
24 | pipelines:
25 | traces:
26 | receivers: [otlp]
27 | exporters: [jaeger]
28 | processors: [batch]
29 |
--------------------------------------------------------------------------------
/packages/opentelemetry-sdk-trace-base/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "../../tsconfig.base.json",
3 | "compilerOptions": {
4 | "outDir": "build",
5 | "rootDir": "."
6 | },
7 | "files": [],
8 | "include": [
9 | "src/**/*.ts",
10 | "test/**/*.ts"
11 | ],
12 | "references": [
13 | {
14 | "path": "../../api"
15 | },
16 | {
17 | "path": "../opentelemetry-core"
18 | },
19 | {
20 | "path": "../opentelemetry-resources"
21 | },
22 | {
23 | "path": "../opentelemetry-semantic-conventions"
24 | }
25 | ]
26 | }
27 |
--------------------------------------------------------------------------------
/examples/opentelemetry-web/examples/xml-http-request/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | XMLHttpRequest Plugin Example
7 |
8 |
9 |
10 |
11 |
12 |
13 | Example of using Web Tracer with XMLHttpRequest plugin with console exporter and collector exporter
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
--------------------------------------------------------------------------------
/experimental/packages/opentelemetry-browser-detector/tsconfig.esm.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "../../../tsconfig.base.esm.json",
3 | "compilerOptions": {
4 | "outDir": "build/esm",
5 | "rootDir": "src",
6 | "tsBuildInfoFile": "build/esm/tsconfig.esm.tsbuildinfo"
7 | },
8 | "include": [
9 | "src/**/*.ts"
10 | ],
11 | "references": [
12 | {
13 | "path": "../../../api"
14 | },
15 | {
16 | "path": "../../../packages/opentelemetry-resources"
17 | },
18 | {
19 | "path": "../../../packages/opentelemetry-semantic-conventions"
20 | }
21 | ]
22 | }
23 |
--------------------------------------------------------------------------------
/experimental/packages/opentelemetry-browser-detector/tsconfig.esnext.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "../../../tsconfig.base.esnext.json",
3 | "compilerOptions": {
4 | "outDir": "build/esnext",
5 | "rootDir": "src",
6 | "tsBuildInfoFile": "build/esnext/tsconfig.esnext.tsbuildinfo"
7 | },
8 | "include": [
9 | "src/**/*.ts"
10 | ],
11 | "references": [
12 | {
13 | "path": "../../../api"
14 | },
15 | {
16 | "path": "../../../packages/opentelemetry-resources"
17 | },
18 | {
19 | "path": "../../../packages/opentelemetry-semantic-conventions"
20 | }
21 | ]
22 | }
23 |
--------------------------------------------------------------------------------
/experimental/packages/otlp-proto-exporter-base/tsconfig.esm.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "../../../tsconfig.base.esm.json",
3 | "compilerOptions": {
4 | "allowJs": true,
5 | "outDir": "build/esm",
6 | "rootDir": "src",
7 | "tsBuildInfoFile": "build/esm/tsconfig.esm.tsbuildinfo"
8 | },
9 | "include": [
10 | "src/**/*.ts",
11 | "src/generated/*.js"
12 | ],
13 | "references": [
14 | {
15 | "path": "../../../api"
16 | },
17 | {
18 | "path": "../../../packages/opentelemetry-core"
19 | },
20 | {
21 | "path": "../otlp-exporter-base"
22 | }
23 | ]
24 | }
25 |
--------------------------------------------------------------------------------
/experimental/packages/sdk-logs/tsconfig.esm.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "../../../tsconfig.base.esm.json",
3 | "compilerOptions": {
4 | "outDir": "build/esm",
5 | "rootDir": "src",
6 | "tsBuildInfoFile": "build/esm/tsconfig.esm.tsbuildinfo"
7 | },
8 | "include": [
9 | "src/**/*.ts"
10 | ],
11 | "references": [
12 | {
13 | "path": "../../../api"
14 | },
15 | {
16 | "path": "../../../packages/opentelemetry-core"
17 | },
18 | {
19 | "path": "../../../packages/opentelemetry-resources"
20 | },
21 | {
22 | "path": "../api-logs"
23 | }
24 | ]
25 | }
26 |
--------------------------------------------------------------------------------
/packages/opentelemetry-sdk-trace-base/tsconfig.esm.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "../../tsconfig.base.esm.json",
3 | "compilerOptions": {
4 | "outDir": "build/esm",
5 | "rootDir": "src",
6 | "tsBuildInfoFile": "build/esm/tsconfig.esm.tsbuildinfo"
7 | },
8 | "include": [
9 | "src/**/*.ts"
10 | ],
11 | "references": [
12 | {
13 | "path": "../../api"
14 | },
15 | {
16 | "path": "../opentelemetry-core"
17 | },
18 | {
19 | "path": "../opentelemetry-resources"
20 | },
21 | {
22 | "path": "../opentelemetry-semantic-conventions"
23 | }
24 | ]
25 | }
26 |
--------------------------------------------------------------------------------
/experimental/packages/otlp-proto-exporter-base/tsconfig.esnext.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "../../../tsconfig.base.esnext.json",
3 | "compilerOptions": {
4 | "allowJs": true,
5 | "outDir": "build/esnext",
6 | "rootDir": "src",
7 | "tsBuildInfoFile": "build/esnext/tsconfig.esnext.tsbuildinfo"
8 | },
9 | "include": [
10 | "src/**/*.ts",
11 | "src/generated/*.js"
12 | ],
13 | "references": [
14 | {
15 | "path": "../../../api"
16 | },
17 | {
18 | "path": "../../../packages/opentelemetry-core"
19 | },
20 | {
21 | "path": "../otlp-exporter-base"
22 | }
23 | ]
24 | }
25 |
--------------------------------------------------------------------------------
/experimental/packages/sdk-logs/tsconfig.esnext.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "../../../tsconfig.base.esnext.json",
3 | "compilerOptions": {
4 | "outDir": "build/esnext",
5 | "rootDir": "src",
6 | "tsBuildInfoFile": "build/esnext/tsconfig.esnext.tsbuildinfo"
7 | },
8 | "include": [
9 | "src/**/*.ts"
10 | ],
11 | "references": [
12 | {
13 | "path": "../../../api"
14 | },
15 | {
16 | "path": "../../../packages/opentelemetry-core"
17 | },
18 | {
19 | "path": "../../../packages/opentelemetry-resources"
20 | },
21 | {
22 | "path": "../api-logs"
23 | }
24 | ]
25 | }
26 |
--------------------------------------------------------------------------------
/packages/opentelemetry-sdk-trace-base/tsconfig.esnext.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "../../tsconfig.base.esnext.json",
3 | "compilerOptions": {
4 | "outDir": "build/esnext",
5 | "rootDir": "src",
6 | "tsBuildInfoFile": "build/esnext/tsconfig.esnext.tsbuildinfo"
7 | },
8 | "include": [
9 | "src/**/*.ts"
10 | ],
11 | "references": [
12 | {
13 | "path": "../../api"
14 | },
15 | {
16 | "path": "../opentelemetry-core"
17 | },
18 | {
19 | "path": "../opentelemetry-resources"
20 | },
21 | {
22 | "path": "../opentelemetry-semantic-conventions"
23 | }
24 | ]
25 | }
26 |
--------------------------------------------------------------------------------
/packages/opentelemetry-exporter-jaeger/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "../../tsconfig.base.json",
3 | "compilerOptions": {
4 | "outDir": "build",
5 | "rootDir": "."
6 | },
7 | "include": [
8 | "src/**/*.ts",
9 | "test/**/*.ts"
10 | ],
11 | "references": [
12 | {
13 | "path": "../../api"
14 | },
15 | {
16 | "path": "../opentelemetry-core"
17 | },
18 | {
19 | "path": "../opentelemetry-resources"
20 | },
21 | {
22 | "path": "../opentelemetry-sdk-trace-base"
23 | },
24 | {
25 | "path": "../opentelemetry-semantic-conventions"
26 | }
27 | ]
28 | }
29 |
--------------------------------------------------------------------------------
/.github/workflows/peer-api.yml:
--------------------------------------------------------------------------------
1 | name: Ensure API Peer Dependency
2 |
3 | on:
4 | push:
5 | branches:
6 | - main
7 | pull_request:
8 | merge_group:
9 |
10 | jobs:
11 | peer-api-check:
12 | runs-on: ubuntu-latest
13 | container:
14 | image: node:20
15 | steps:
16 | - name: Checkout
17 | uses: actions/checkout@v4
18 |
19 | - name: Install lerna
20 | run: npm install -g lerna
21 |
22 | - name: Install semver
23 | run: npm install semver
24 |
25 | - name: Check API dependency semantics
26 | working-directory: packages
27 | run: lerna run peer-api-check
28 |
--------------------------------------------------------------------------------
/examples/opentelemetry-web/examples/fetchXhrB3/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | Fetch Plugin Example
7 |
8 |
9 |
10 |
11 |
12 |
13 | Example of using Web Tracer with Fetch and XMLHttpRequest plugins with console exporter and collector exporter with B3 Propagator
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
--------------------------------------------------------------------------------
/examples/opentelemetry-web/examples/fetchXhr/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | Fetch Plugin Example
7 |
8 |
9 |
10 |
11 |
12 |
13 | Example of using Web Tracer with Fetch and XMLHttpRequest plugins with console exporter and collector exporter without the B3 Propagator
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
--------------------------------------------------------------------------------
/packages/opentelemetry-exporter-zipkin/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "../../tsconfig.base.json",
3 | "compilerOptions": {
4 | "outDir": "build",
5 | "rootDir": "."
6 | },
7 | "files": [],
8 | "include": [
9 | "src/**/*.ts",
10 | "test/**/*.ts"
11 | ],
12 | "references": [
13 | {
14 | "path": "../../api"
15 | },
16 | {
17 | "path": "../opentelemetry-core"
18 | },
19 | {
20 | "path": "../opentelemetry-resources"
21 | },
22 | {
23 | "path": "../opentelemetry-sdk-trace-base"
24 | },
25 | {
26 | "path": "../opentelemetry-semantic-conventions"
27 | }
28 | ]
29 | }
30 |
--------------------------------------------------------------------------------
/examples/basic-tracer-node/docker/ot/docker-compose.yaml:
--------------------------------------------------------------------------------
1 | version: "3.8"
2 | services:
3 |
4 | # Collector
5 | otel-collector:
6 | image: otel/opentelemetry-collector-contrib:0.42.0
7 | command: ["--config=/conf/collector-config.yaml"]
8 | volumes:
9 | - ./collector-config.yaml:/conf/collector-config.yaml
10 | ports:
11 | - "9464:9464"
12 | - "4317:4317"
13 | - "4318:4318"
14 | depends_on:
15 | - jaeger-all-in-one
16 |
17 | # Jaeger
18 | jaeger-all-in-one:
19 | image: jaegertracing/all-in-one:1.30.0
20 | ports:
21 | - "16686:16686"
22 | - "14268:14268"
23 | - "14250"
24 |
25 |
26 |
--------------------------------------------------------------------------------
/.github/ISSUE_TEMPLATE/discussion.md:
--------------------------------------------------------------------------------
1 | ---
2 | name: Discussion
3 | about: Ask a question or bring up points of consideration
4 | labels: discussion
5 | ---
6 |
7 |
10 |
11 | - [ ] This only affects the JavaScript OpenTelemetry library
12 | - [ ] This may affect other libraries, but I would like to get opinions here first
13 |
--------------------------------------------------------------------------------
/packages/opentelemetry-exporter-zipkin/tsconfig.esm.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "../../tsconfig.base.esm.json",
3 | "compilerOptions": {
4 | "outDir": "build/esm",
5 | "rootDir": "src",
6 | "tsBuildInfoFile": "build/esm/tsconfig.esm.tsbuildinfo"
7 | },
8 | "include": [
9 | "src/**/*.ts"
10 | ],
11 | "references": [
12 | {
13 | "path": "../../api"
14 | },
15 | {
16 | "path": "../opentelemetry-core"
17 | },
18 | {
19 | "path": "../opentelemetry-resources"
20 | },
21 | {
22 | "path": "../opentelemetry-sdk-trace-base"
23 | },
24 | {
25 | "path": "../opentelemetry-semantic-conventions"
26 | }
27 | ]
28 | }
29 |
--------------------------------------------------------------------------------
/experimental/packages/opentelemetry-exporter-prometheus/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "../../../tsconfig.base.json",
3 | "compilerOptions": {
4 | "outDir": "build",
5 | "rootDir": "."
6 | },
7 | "include": [
8 | "src/**/*.ts",
9 | "test/**/*.ts"
10 | ],
11 | "references": [
12 | {
13 | "path": "../../../api"
14 | },
15 | {
16 | "path": "../../../packages/opentelemetry-core"
17 | },
18 | {
19 | "path": "../../../packages/opentelemetry-resources"
20 | },
21 | {
22 | "path": "../../../packages/opentelemetry-semantic-conventions"
23 | },
24 | {
25 | "path": "../../../packages/sdk-metrics"
26 | }
27 | ]
28 | }
29 |
--------------------------------------------------------------------------------
/experimental/packages/opentelemetry-instrumentation-grpc/test/fixtures/grpc-test.proto:
--------------------------------------------------------------------------------
1 | syntax = "proto3";
2 |
3 | package pkg_test;
4 |
5 | service GrpcTester {
6 | rpc unaryMethodWithMetadata (TestRequest) returns (TestReply) {}
7 | rpc UnaryMethod (TestRequest) returns (TestReply) {}
8 | rpc camelCaseMethod (TestRequest) returns (TestReply) {}
9 | rpc ClientStreamMethod (stream TestRequest) returns (TestReply) {}
10 | rpc ServerStreamMethod (TestRequest) returns (stream TestReply) {}
11 | rpc BidiStreamMethod (stream TestRequest) returns (stream TestReply) {}
12 | }
13 |
14 | message TestRequest {
15 | int32 num = 1;
16 | }
17 |
18 | message TestReply {
19 | int32 num = 1;
20 | }
21 |
--------------------------------------------------------------------------------
/.github/workflows/codeql-analysis.yml:
--------------------------------------------------------------------------------
1 | name: "CodeQL Analysis"
2 |
3 | on:
4 | workflow_dispatch:
5 | push:
6 | branches: [ main ]
7 | pull_request:
8 |
9 | jobs:
10 | CodeQL-Build:
11 | runs-on: ubuntu-latest
12 |
13 | steps:
14 | - name: Checkout repository
15 | uses: actions/checkout@v4
16 |
17 | # Initializes the CodeQL tools for scanning.
18 | - name: Initialize CodeQL
19 | uses: github/codeql-action/init@v2
20 | with:
21 | languages: javascript
22 |
23 | - name: Autobuild
24 | uses: github/codeql-action/autobuild@v2
25 |
26 | - name: Perform CodeQL Analysis
27 | uses: github/codeql-action/analyze@v2
28 |
--------------------------------------------------------------------------------
/packages/opentelemetry-exporter-zipkin/tsconfig.esnext.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "../../tsconfig.base.esnext.json",
3 | "compilerOptions": {
4 | "outDir": "build/esnext",
5 | "rootDir": "src",
6 | "tsBuildInfoFile": "build/esnext/tsconfig.esnext.tsbuildinfo"
7 | },
8 | "include": [
9 | "src/**/*.ts"
10 | ],
11 | "references": [
12 | {
13 | "path": "../../api"
14 | },
15 | {
16 | "path": "../opentelemetry-core"
17 | },
18 | {
19 | "path": "../opentelemetry-resources"
20 | },
21 | {
22 | "path": "../opentelemetry-sdk-trace-base"
23 | },
24 | {
25 | "path": "../opentelemetry-semantic-conventions"
26 | }
27 | ]
28 | }
29 |
--------------------------------------------------------------------------------
/api/src/platform/index.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright The OpenTelemetry Authors
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * https://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | export * from './node';
18 |
--------------------------------------------------------------------------------
/packages/opentelemetry-shim-opentracing/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "../../tsconfig.base.json",
3 | "compilerOptions": {
4 | "outDir": "build",
5 | "rootDir": "."
6 | },
7 | "include": [
8 | "src/**/*.ts",
9 | "test/**/*.ts"
10 | ],
11 | "references": [
12 | {
13 | "path": "../../api"
14 | },
15 | {
16 | "path": "../opentelemetry-core"
17 | },
18 | {
19 | "path": "../opentelemetry-propagator-b3"
20 | },
21 | {
22 | "path": "../opentelemetry-propagator-jaeger"
23 | },
24 | {
25 | "path": "../opentelemetry-sdk-trace-base"
26 | },
27 | {
28 | "path": "../opentelemetry-semantic-conventions"
29 | }
30 | ]
31 | }
32 |
--------------------------------------------------------------------------------
/api/src/platform/node/index.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright The OpenTelemetry Authors
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * https://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | export * from './globalThis';
18 |
--------------------------------------------------------------------------------
/api/src/platform/browser/index.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright The OpenTelemetry Authors
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * https://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | export * from './globalThis';
18 |
--------------------------------------------------------------------------------
/examples/opentelemetry-web/docker/collector-config.yaml:
--------------------------------------------------------------------------------
1 | receivers:
2 | otlp:
3 | protocols:
4 | grpc:
5 | http:
6 | cors:
7 | allowed_origins:
8 | - http://*
9 | - https://*
10 |
11 | exporters:
12 | zipkin:
13 | endpoint: "http://zipkin-all-in-one:9411/api/v2/spans"
14 | prometheus:
15 | endpoint: "0.0.0.0:9464"
16 |
17 | processors:
18 | batch:
19 |
20 | service:
21 | telemetry:
22 | logs:
23 | level: "debug"
24 | pipelines:
25 | traces:
26 | receivers: [otlp]
27 | exporters: [zipkin]
28 | processors: [batch]
29 | metrics:
30 | receivers: [otlp]
31 | exporters: [prometheus]
32 | processors: [batch]
33 |
--------------------------------------------------------------------------------
/examples/otlp-exporter-node/docker/collector-config.yaml:
--------------------------------------------------------------------------------
1 | receivers:
2 | otlp:
3 | protocols:
4 | grpc:
5 | http:
6 | cors:
7 | allowed_origins:
8 | - http://*
9 | - https://*
10 |
11 | exporters:
12 | zipkin:
13 | endpoint: "http://zipkin-all-in-one:9411/api/v2/spans"
14 | prometheus:
15 | endpoint: "0.0.0.0:9464"
16 |
17 | processors:
18 | batch:
19 |
20 | service:
21 | telemetry:
22 | logs:
23 | level: "debug"
24 | pipelines:
25 | traces:
26 | receivers: [otlp]
27 | exporters: [zipkin]
28 | processors: [batch]
29 | metrics:
30 | receivers: [otlp]
31 | exporters: [prometheus]
32 | processors: [batch]
33 |
--------------------------------------------------------------------------------
/experimental/examples/README.md:
--------------------------------------------------------------------------------
1 | # OpenTelemetry JavaScript Examples
2 |
3 | This directory contains examples of how to run real applications with OpenTelemetry JavaScript.
4 |
5 | ## Work in Progress Examples
6 |
7 | These examples are using work in progress metrics packages.
8 |
9 | |Name | Description | Complexity Level |
10 | ------------- | ------------- | ------------ |
11 | |[prometheus](prometheus/) | Basic Metric use with Prometheus (`@opentelemetry/exporter-prometheus`) Exporter | Beginner |
12 |
13 | ## Contributing
14 |
15 | Please see [CONTRIBUTING.md](https://github.com/open-telemetry/opentelemetry-js/blob/main/CONTRIBUTING.md) for instructions on how to contribute.
16 |
17 | ## LICENSE
18 |
19 | Apache License 2.0
20 |
--------------------------------------------------------------------------------
/packages/opentelemetry-core/src/platform/index.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright The OpenTelemetry Authors
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * https://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | export * from './node';
17 |
--------------------------------------------------------------------------------
/experimental/packages/api-events/src/platform/index.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright The OpenTelemetry Authors
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * https://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | export * from './node';
18 |
--------------------------------------------------------------------------------
/experimental/packages/api-logs/src/platform/index.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright The OpenTelemetry Authors
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * https://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | export * from './node';
18 |
--------------------------------------------------------------------------------
/packages/opentelemetry-resources/src/platform/index.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright The OpenTelemetry Authors
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * https://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | export * from './node';
18 |
--------------------------------------------------------------------------------
/experimental/packages/otlp-proto-exporter-base/src/index.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright The OpenTelemetry Authors
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * https://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | export * from './platform';
17 |
--------------------------------------------------------------------------------
/packages/opentelemetry-exporter-zipkin/src/platform/index.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright The OpenTelemetry Authors
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * https://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | export * from './node';
18 |
--------------------------------------------------------------------------------
/packages/opentelemetry-sdk-trace-base/src/platform/index.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright The OpenTelemetry Authors
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * https://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | export * from './node';
18 |
--------------------------------------------------------------------------------
/experimental/packages/api-events/src/platform/node/index.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright The OpenTelemetry Authors
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * https://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | export * from './globalThis';
18 |
--------------------------------------------------------------------------------
/experimental/packages/api-logs/src/platform/browser/index.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright The OpenTelemetry Authors
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * https://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | export * from './globalThis';
18 |
--------------------------------------------------------------------------------
/experimental/packages/api-logs/src/platform/node/index.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright The OpenTelemetry Authors
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * https://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | export * from './globalThis';
18 |
--------------------------------------------------------------------------------
/experimental/packages/exporter-trace-otlp-http/src/index.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright The OpenTelemetry Authors
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * https://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | export * from './platform';
18 |
--------------------------------------------------------------------------------
/packages/opentelemetry-exporter-zipkin/src/platform/node/index.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright The OpenTelemetry Authors
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * https://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | export * from './util';
18 |
--------------------------------------------------------------------------------
/packages/opentelemetry-propagator-jaeger/src/index.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright The OpenTelemetry Authors
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * https://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | export * from './JaegerPropagator';
18 |
--------------------------------------------------------------------------------
/packages/opentelemetry-shim-opentracing/src/index.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright The OpenTelemetry Authors
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * https://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | export { TracerShim } from './shim';
18 |
--------------------------------------------------------------------------------
/experimental/packages/api-events/src/platform/browser/index.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright The OpenTelemetry Authors
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * https://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | export * from './globalThis';
18 |
--------------------------------------------------------------------------------
/experimental/packages/exporter-logs-otlp-grpc/src/index.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright The OpenTelemetry Authors
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * https://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | export * from './OTLPLogExporter';
18 |
--------------------------------------------------------------------------------
/experimental/packages/exporter-logs-otlp-http/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "../../../tsconfig.base.json",
3 | "compilerOptions": {
4 | "outDir": "build",
5 | "rootDir": "."
6 | },
7 | "include": [
8 | "src/**/*.ts",
9 | "test/**/*.ts"
10 | ],
11 | "references": [
12 | {
13 | "path": "../../../api"
14 | },
15 | {
16 | "path": "../../../packages/opentelemetry-core"
17 | },
18 | {
19 | "path": "../../../packages/opentelemetry-resources"
20 | },
21 | {
22 | "path": "../api-logs"
23 | },
24 | {
25 | "path": "../otlp-exporter-base"
26 | },
27 | {
28 | "path": "../otlp-transformer"
29 | },
30 | {
31 | "path": "../sdk-logs"
32 | }
33 | ]
34 | }
35 |
--------------------------------------------------------------------------------
/experimental/packages/exporter-trace-otlp-http/src/platform/index.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright The OpenTelemetry Authors
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * https://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | export * from './node';
18 |
--------------------------------------------------------------------------------
/experimental/packages/exporter-trace-otlp-http/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "../../../tsconfig.base.json",
3 | "compilerOptions": {
4 | "outDir": "build",
5 | "rootDir": "."
6 | },
7 | "files": [],
8 | "include": [
9 | "src/**/*.ts",
10 | "test/**/*.ts"
11 | ],
12 | "references": [
13 | {
14 | "path": "../../../api"
15 | },
16 | {
17 | "path": "../../../packages/opentelemetry-core"
18 | },
19 | {
20 | "path": "../../../packages/opentelemetry-resources"
21 | },
22 | {
23 | "path": "../../../packages/opentelemetry-sdk-trace-base"
24 | },
25 | {
26 | "path": "../otlp-exporter-base"
27 | },
28 | {
29 | "path": "../otlp-transformer"
30 | }
31 | ]
32 | }
33 |
--------------------------------------------------------------------------------
/experimental/packages/opentelemetry-exporter-metrics-otlp-http/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "../../../tsconfig.base.json",
3 | "compilerOptions": {
4 | "outDir": "build",
5 | "rootDir": "."
6 | },
7 | "files": [],
8 | "include": [
9 | "src/**/*.ts",
10 | "test/**/*.ts"
11 | ],
12 | "references": [
13 | {
14 | "path": "../../../api"
15 | },
16 | {
17 | "path": "../../../packages/opentelemetry-core"
18 | },
19 | {
20 | "path": "../../../packages/opentelemetry-resources"
21 | },
22 | {
23 | "path": "../../../packages/sdk-metrics"
24 | },
25 | {
26 | "path": "../otlp-exporter-base"
27 | },
28 | {
29 | "path": "../otlp-transformer"
30 | }
31 | ]
32 | }
33 |
--------------------------------------------------------------------------------
/experimental/packages/opentelemetry-instrumentation-fetch/src/index.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright The OpenTelemetry Authors
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * https://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | export * from './fetch';
18 |
--------------------------------------------------------------------------------
/packages/opentelemetry-exporter-zipkin/src/platform/browser/index.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright The OpenTelemetry Authors
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * https://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | export * from './util';
18 |
--------------------------------------------------------------------------------
/packages/opentelemetry-sdk-trace-base/test/performance/benchmark/index.js:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright The OpenTelemetry Authors
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * https://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | require('./span');
18 |
--------------------------------------------------------------------------------
/packages/opentelemetry-semantic-conventions/src/trace/index.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright The OpenTelemetry Authors
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * https://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | export * from './SemanticAttributes';
17 |
--------------------------------------------------------------------------------
/examples/esm-http-ts/README.md:
--------------------------------------------------------------------------------
1 | # Overview
2 |
3 | This is a simple example that demonstrates tracing HTTP request, with an app written in TypeScript and transpiled to ES Modules.
4 |
5 | ## Installation
6 |
7 | ```sh
8 | # from this directory
9 | npm install
10 | npm run build
11 | npm start
12 | ```
13 |
14 | In a separate terminal, `curl localhost:3000`.
15 |
16 | See two spans in the console (one manual, one for http instrumentation)
17 |
18 | ## Useful links
19 |
20 | - For more information on OpenTelemetry, visit:
21 | - For more information on OpenTelemetry for Node.js, visit:
22 |
23 | ## LICENSE
24 |
25 | Apache License 2.0
26 |
--------------------------------------------------------------------------------
/experimental/packages/exporter-logs-otlp-proto/src/index.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright The OpenTelemetry Authors
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * https://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | export { OTLPLogExporter } from './platform';
17 |
--------------------------------------------------------------------------------
/experimental/packages/exporter-trace-otlp-grpc/src/index.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright The OpenTelemetry Authors
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * https://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | export * from './OTLPTraceExporter';
18 |
--------------------------------------------------------------------------------
/experimental/packages/opentelemetry-browser-detector/src/index.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright The OpenTelemetry Authors
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * https://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | export * from './BrowserDetector';
18 |
--------------------------------------------------------------------------------
/experimental/packages/opentelemetry-instrumentation/src/platform/index.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright The OpenTelemetry Authors
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * https://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | export * from './node';
18 |
--------------------------------------------------------------------------------
/experimental/packages/exporter-logs-otlp-http/src/index.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright The OpenTelemetry Authors
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * https://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | export { OTLPLogExporter } from './platform';
18 |
--------------------------------------------------------------------------------
/experimental/packages/exporter-logs-otlp-proto/src/platform/index.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright The OpenTelemetry Authors
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * https://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | export { OTLPLogExporter } from './node';
17 |
--------------------------------------------------------------------------------
/experimental/packages/exporter-trace-otlp-proto/src/index.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright The OpenTelemetry Authors
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * https://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | export { OTLPTraceExporter } from './platform';
17 |
--------------------------------------------------------------------------------
/experimental/packages/opentelemetry-instrumentation-xml-http-request/src/index.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright The OpenTelemetry Authors
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * https://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | export * from './xhr';
18 |
--------------------------------------------------------------------------------
/experimental/packages/sdk-logs/src/platform/index.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright The OpenTelemetry Authors
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * https://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | export { BatchLogRecordProcessor } from './node';
18 |
--------------------------------------------------------------------------------
/packages/opentelemetry-core/src/platform/browser/performance.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright The OpenTelemetry Authors
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * https://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | export const otperformance = performance;
18 |
--------------------------------------------------------------------------------
/packages/opentelemetry-semantic-conventions/src/resource/index.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright The OpenTelemetry Authors
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * https://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | export * from './SemanticResourceAttributes';
17 |
--------------------------------------------------------------------------------
/experimental/packages/exporter-logs-otlp-http/src/platform/index.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright The OpenTelemetry Authors
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * https://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | export { OTLPLogExporter } from './node';
18 |
--------------------------------------------------------------------------------
/experimental/packages/exporter-trace-otlp-http/src/platform/node/index.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright The OpenTelemetry Authors
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * https://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | export * from './OTLPTraceExporter';
18 |
--------------------------------------------------------------------------------
/experimental/packages/exporter-trace-otlp-proto/src/platform/index.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright The OpenTelemetry Authors
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * https://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | export { OTLPTraceExporter } from './node';
17 |
--------------------------------------------------------------------------------
/experimental/packages/opentelemetry-exporter-metrics-otlp-http/src/platform/index.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright The OpenTelemetry Authors
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * https://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | export * from './node';
18 |
--------------------------------------------------------------------------------
/experimental/packages/opentelemetry-instrumentation-grpc/src/status-code.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright The OpenTelemetry Authors
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * https://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | export const GRPC_STATUS_CODE_OK = 0;
17 |
--------------------------------------------------------------------------------
/experimental/packages/shim-opencensus/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "../../../tsconfig.base.json",
3 | "compilerOptions": {
4 | "outDir": "build",
5 | "rootDir": "."
6 | },
7 | "include": [
8 | "src/**/*.ts",
9 | "test/**/*.ts"
10 | ],
11 | "references": [
12 | {
13 | "path": "../../../api"
14 | },
15 | {
16 | "path": "../../../packages/opentelemetry-context-async-hooks"
17 | },
18 | {
19 | "path": "../../../packages/opentelemetry-core"
20 | },
21 | {
22 | "path": "../../../packages/opentelemetry-resources"
23 | },
24 | {
25 | "path": "../../../packages/opentelemetry-sdk-trace-base"
26 | },
27 | {
28 | "path": "../../../packages/sdk-metrics"
29 | }
30 | ]
31 | }
32 |
--------------------------------------------------------------------------------
/packages/opentelemetry-core/src/platform/browser/timer-util.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright The OpenTelemetry Authors
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * https://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | export function unrefTimer(_timer: number): void {}
17 |
--------------------------------------------------------------------------------
/experimental/packages/exporter-trace-otlp-http/src/platform/browser/index.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright The OpenTelemetry Authors
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * https://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | export * from './OTLPTraceExporter';
18 |
--------------------------------------------------------------------------------
/experimental/packages/opentelemetry-exporter-metrics-otlp-grpc/src/index.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright The OpenTelemetry Authors
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * https://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | export * from './OTLPMetricExporter';
18 |
--------------------------------------------------------------------------------
/experimental/packages/opentelemetry-exporter-metrics-otlp-proto/src/index.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright The OpenTelemetry Authors
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * https://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | export * from './OTLPMetricExporter';
18 |
--------------------------------------------------------------------------------
/packages/opentelemetry-semantic-conventions/src/index.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright The OpenTelemetry Authors
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * https://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | export * from './trace';
18 | export * from './resource';
19 |
--------------------------------------------------------------------------------
/experimental/packages/opentelemetry-instrumentation/src/platform/browser/index.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright The OpenTelemetry Authors
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * https://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | export * from './instrumentation';
18 |
--------------------------------------------------------------------------------
/experimental/packages/opentelemetry-instrumentation/test/node/fixtures/absolutePathTestFixture.js:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright The OpenTelemetry Authors
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * https://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | module.exports = {};
18 |
--------------------------------------------------------------------------------
/experimental/packages/shim-opencensus/src/register.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright The OpenTelemetry Authors
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * https://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | import { installShim } from './shim';
18 |
19 | installShim();
20 |
--------------------------------------------------------------------------------
/experimental/packages/exporter-logs-otlp-http/src/platform/node/index.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright The OpenTelemetry Authors
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * https://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | export { OTLPLogExporter } from './OTLPLogExporter';
18 |
--------------------------------------------------------------------------------
/experimental/packages/exporter-logs-otlp-proto/src/platform/browser/index.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright The OpenTelemetry Authors
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * https://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | export { OTLPLogExporter } from './OTLPLogExporter';
17 |
--------------------------------------------------------------------------------
/packages/opentelemetry-context-zone-peer-dep/src/index.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright The OpenTelemetry Authors
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * https://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | export * from './ZoneContextManager';
18 | export * from './types';
19 |
--------------------------------------------------------------------------------
/packages/opentelemetry-context-zone/src/index.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright The OpenTelemetry Authors
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * https://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | export * from '@opentelemetry/context-zone-peer-dep';
18 | import 'zone.js';
19 |
--------------------------------------------------------------------------------
/packages/opentelemetry-exporter-jaeger/src/index.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright The OpenTelemetry Authors
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * https://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | export * from './jaeger';
18 | export { ExporterConfig } from './types';
19 |
--------------------------------------------------------------------------------
/experimental/packages/exporter-logs-otlp-http/src/platform/browser/index.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright The OpenTelemetry Authors
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * https://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | export { OTLPLogExporter } from './OTLPLogExporter';
18 |
--------------------------------------------------------------------------------
/experimental/packages/exporter-logs-otlp-proto/src/platform/node/index.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright The OpenTelemetry Authors
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * https://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | export { OTLPLogExporter } from './OTLPLogExporter';
18 |
--------------------------------------------------------------------------------
/experimental/packages/exporter-trace-otlp-http/tsconfig.esm.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "../../../tsconfig.base.esm.json",
3 | "compilerOptions": {
4 | "outDir": "build/esm",
5 | "rootDir": "src",
6 | "tsBuildInfoFile": "build/esm/tsconfig.esm.tsbuildinfo"
7 | },
8 | "include": [
9 | "src/**/*.ts"
10 | ],
11 | "references": [
12 | {
13 | "path": "../../../api"
14 | },
15 | {
16 | "path": "../../../packages/opentelemetry-core"
17 | },
18 | {
19 | "path": "../../../packages/opentelemetry-resources"
20 | },
21 | {
22 | "path": "../../../packages/opentelemetry-sdk-trace-base"
23 | },
24 | {
25 | "path": "../otlp-exporter-base"
26 | },
27 | {
28 | "path": "../otlp-transformer"
29 | }
30 | ]
31 | }
32 |
--------------------------------------------------------------------------------
/experimental/packages/exporter-trace-otlp-proto/src/platform/browser/index.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright The OpenTelemetry Authors
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * https://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | export { OTLPTraceExporter } from './OTLPTraceExporter';
17 |
--------------------------------------------------------------------------------
/experimental/packages/opentelemetry-exporter-metrics-otlp-http/src/platform/browser/index.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright The OpenTelemetry Authors
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * https://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | export * from './OTLPMetricExporter';
18 |
--------------------------------------------------------------------------------
/experimental/packages/opentelemetry-exporter-metrics-otlp-http/src/platform/node/index.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright The OpenTelemetry Authors
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * https://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | export * from './OTLPMetricExporter';
18 |
--------------------------------------------------------------------------------
/experimental/packages/opentelemetry-exporter-metrics-otlp-http/tsconfig.esm.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "../../../tsconfig.base.esm.json",
3 | "compilerOptions": {
4 | "outDir": "build/esm",
5 | "rootDir": "src",
6 | "tsBuildInfoFile": "build/esm/tsconfig.esm.tsbuildinfo"
7 | },
8 | "include": [
9 | "src/**/*.ts"
10 | ],
11 | "references": [
12 | {
13 | "path": "../../../api"
14 | },
15 | {
16 | "path": "../../../packages/opentelemetry-core"
17 | },
18 | {
19 | "path": "../../../packages/opentelemetry-resources"
20 | },
21 | {
22 | "path": "../../../packages/sdk-metrics"
23 | },
24 | {
25 | "path": "../otlp-exporter-base"
26 | },
27 | {
28 | "path": "../otlp-transformer"
29 | }
30 | ]
31 | }
32 |
--------------------------------------------------------------------------------
/packages/opentelemetry-sdk-trace-base/src/enums.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright The OpenTelemetry Authors
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * https://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | // Event name definitions
18 | export const ExceptionEventName = 'exception';
19 |
--------------------------------------------------------------------------------
/experimental/packages/exporter-trace-otlp-proto/src/platform/node/index.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright The OpenTelemetry Authors
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * https://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | export { OTLPTraceExporter } from './OTLPTraceExporter';
18 |
--------------------------------------------------------------------------------
/experimental/packages/sdk-logs/src/platform/node/index.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright The OpenTelemetry Authors
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * https://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | export { BatchLogRecordProcessor } from './export/BatchLogRecordProcessor';
18 |
--------------------------------------------------------------------------------
/packages/opentelemetry-sdk-trace-web/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "../../tsconfig.base.json",
3 | "compilerOptions": {
4 | "outDir": "build",
5 | "rootDir": "."
6 | },
7 | "files": [],
8 | "include": [
9 | "src/**/*.ts",
10 | "test/**/*.ts"
11 | ],
12 | "references": [
13 | {
14 | "path": "../../api"
15 | },
16 | {
17 | "path": "../opentelemetry-context-zone"
18 | },
19 | {
20 | "path": "../opentelemetry-core"
21 | },
22 | {
23 | "path": "../opentelemetry-propagator-b3"
24 | },
25 | {
26 | "path": "../opentelemetry-resources"
27 | },
28 | {
29 | "path": "../opentelemetry-sdk-trace-base"
30 | },
31 | {
32 | "path": "../opentelemetry-semantic-conventions"
33 | }
34 | ]
35 | }
36 |
--------------------------------------------------------------------------------
/experimental/packages/sdk-logs/src/platform/browser/index.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright The OpenTelemetry Authors
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * https://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | export { BatchLogRecordProcessor } from './export/BatchLogRecordProcessor';
18 |
--------------------------------------------------------------------------------
/packages/opentelemetry-core/src/platform/node/timer-util.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright The OpenTelemetry Authors
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * https://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | export function unrefTimer(timer: NodeJS.Timer): void {
17 | timer.unref();
18 | }
19 |
--------------------------------------------------------------------------------
/packages/opentelemetry-core/test/trace/fixtures/test-package/foo/bar/internal.d.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright The OpenTelemetry Authors
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * https://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | export declare function internallyExportedFunction(): boolean;
17 |
--------------------------------------------------------------------------------
/api/test/index-webpack.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright The OpenTelemetry Authors
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * https://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | {
17 | const testsContext = require.context('./common', true);
18 | testsContext.keys().forEach(testsContext);
19 | }
20 |
--------------------------------------------------------------------------------
/experimental/packages/exporter-trace-otlp-http/tsconfig.esnext.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "../../../tsconfig.base.esnext.json",
3 | "compilerOptions": {
4 | "outDir": "build/esnext",
5 | "rootDir": "src",
6 | "tsBuildInfoFile": "build/esnext/tsconfig.esnext.tsbuildinfo"
7 | },
8 | "include": [
9 | "src/**/*.ts"
10 | ],
11 | "references": [
12 | {
13 | "path": "../../../api"
14 | },
15 | {
16 | "path": "../../../packages/opentelemetry-core"
17 | },
18 | {
19 | "path": "../../../packages/opentelemetry-resources"
20 | },
21 | {
22 | "path": "../../../packages/opentelemetry-sdk-trace-base"
23 | },
24 | {
25 | "path": "../otlp-exporter-base"
26 | },
27 | {
28 | "path": "../otlp-transformer"
29 | }
30 | ]
31 | }
32 |
--------------------------------------------------------------------------------
/experimental/packages/opentelemetry-exporter-metrics-otlp-http/tsconfig.esnext.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "../../../tsconfig.base.esnext.json",
3 | "compilerOptions": {
4 | "outDir": "build/esnext",
5 | "rootDir": "src",
6 | "tsBuildInfoFile": "build/esnext/tsconfig.esnext.tsbuildinfo"
7 | },
8 | "include": [
9 | "src/**/*.ts"
10 | ],
11 | "references": [
12 | {
13 | "path": "../../../api"
14 | },
15 | {
16 | "path": "../../../packages/opentelemetry-core"
17 | },
18 | {
19 | "path": "../../../packages/opentelemetry-resources"
20 | },
21 | {
22 | "path": "../../../packages/sdk-metrics"
23 | },
24 | {
25 | "path": "../otlp-exporter-base"
26 | },
27 | {
28 | "path": "../otlp-transformer"
29 | }
30 | ]
31 | }
32 |
--------------------------------------------------------------------------------
/experimental/packages/otlp-transformer/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "../../../tsconfig.base.json",
3 | "compilerOptions": {
4 | "outDir": "build",
5 | "rootDir": "."
6 | },
7 | "files": [],
8 | "include": [
9 | "src/**/*.ts",
10 | "test/**/*.ts"
11 | ],
12 | "references": [
13 | {
14 | "path": "../../../api"
15 | },
16 | {
17 | "path": "../../../packages/opentelemetry-core"
18 | },
19 | {
20 | "path": "../../../packages/opentelemetry-resources"
21 | },
22 | {
23 | "path": "../../../packages/opentelemetry-sdk-trace-base"
24 | },
25 | {
26 | "path": "../../../packages/sdk-metrics"
27 | },
28 | {
29 | "path": "../api-logs"
30 | },
31 | {
32 | "path": "../sdk-logs"
33 | }
34 | ]
35 | }
36 |
--------------------------------------------------------------------------------
/packages/opentelemetry-propagator-b3/src/index.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright The OpenTelemetry Authors
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * https://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | export * from './B3Propagator';
18 | export * from './constants';
19 | export * from './types';
20 |
--------------------------------------------------------------------------------
/api/test/index-webpack.worker.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright The OpenTelemetry Authors
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * https://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | {
17 | const testsContext = require.context('./common', true);
18 | testsContext.keys().forEach(testsContext);
19 | }
20 |
--------------------------------------------------------------------------------
/experimental/packages/exporter-logs-otlp-http/tsconfig.esm.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "../../../tsconfig.base.esm.json",
3 | "compilerOptions": {
4 | "outDir": "build/esm",
5 | "rootDir": "src",
6 | "tsBuildInfoFile": "build/esm/tsconfig.esm.tsbuildinfo"
7 | },
8 | "include": [
9 | "src/**/*.ts"
10 | ],
11 | "references": [
12 | {
13 | "path": "../../../api"
14 | },
15 | {
16 | "path": "../../../packages/opentelemetry-core"
17 | },
18 | {
19 | "path": "../../../packages/opentelemetry-resources"
20 | },
21 | {
22 | "path": "../api-logs"
23 | },
24 | {
25 | "path": "../otlp-exporter-base"
26 | },
27 | {
28 | "path": "../otlp-transformer"
29 | },
30 | {
31 | "path": "../sdk-logs"
32 | }
33 | ]
34 | }
35 |
--------------------------------------------------------------------------------
/experimental/packages/exporter-trace-otlp-grpc/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "../../../tsconfig.base.json",
3 | "compilerOptions": {
4 | "outDir": "build",
5 | "rootDir": "."
6 | },
7 | "include": [
8 | "src/**/*.ts",
9 | "test/**/*.ts"
10 | ],
11 | "references": [
12 | {
13 | "path": "../../../api"
14 | },
15 | {
16 | "path": "../../../packages/opentelemetry-core"
17 | },
18 | {
19 | "path": "../../../packages/opentelemetry-resources"
20 | },
21 | {
22 | "path": "../../../packages/opentelemetry-sdk-trace-base"
23 | },
24 | {
25 | "path": "../otlp-exporter-base"
26 | },
27 | {
28 | "path": "../otlp-grpc-exporter-base"
29 | },
30 | {
31 | "path": "../otlp-transformer"
32 | }
33 | ]
34 | }
35 |
--------------------------------------------------------------------------------
/experimental/packages/exporter-trace-otlp-proto/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "../../../tsconfig.base.json",
3 | "compilerOptions": {
4 | "outDir": "build",
5 | "rootDir": "."
6 | },
7 | "include": [
8 | "src/**/*.ts",
9 | "test/**/*.ts"
10 | ],
11 | "references": [
12 | {
13 | "path": "../../../api"
14 | },
15 | {
16 | "path": "../../../packages/opentelemetry-core"
17 | },
18 | {
19 | "path": "../../../packages/opentelemetry-resources"
20 | },
21 | {
22 | "path": "../../../packages/opentelemetry-sdk-trace-base"
23 | },
24 | {
25 | "path": "../otlp-exporter-base"
26 | },
27 | {
28 | "path": "../otlp-proto-exporter-base"
29 | },
30 | {
31 | "path": "../otlp-transformer"
32 | }
33 | ]
34 | }
35 |
--------------------------------------------------------------------------------
/experimental/packages/otlp-proto-exporter-base/src/platform/types.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright The OpenTelemetry Authors
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * https://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | export enum ServiceClientType {
18 | SPANS,
19 | METRICS,
20 | LOGS,
21 | }
22 |
--------------------------------------------------------------------------------
/experimental/packages/opentelemetry-instrumentation-http/src/index.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright The OpenTelemetry Authors
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * https://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | export * from './http';
18 | export * from './types';
19 | export * from './utils';
20 |
--------------------------------------------------------------------------------
/packages/opentelemetry-context-async-hooks/src/index.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright The OpenTelemetry Authors
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * https://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | export * from './AsyncHooksContextManager';
18 | export * from './AsyncLocalStorageContextManager';
19 |
--------------------------------------------------------------------------------
/packages/opentelemetry-core/src/platform/node/performance.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright The OpenTelemetry Authors
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * https://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | import { performance } from 'perf_hooks';
18 |
19 | export const otperformance = performance;
20 |
--------------------------------------------------------------------------------
/packages/opentelemetry-sdk-trace-base/src/platform/browser/index.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright The OpenTelemetry Authors
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * https://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | export * from './export/BatchSpanProcessor';
18 | export * from './RandomIdGenerator';
19 |
--------------------------------------------------------------------------------
/packages/opentelemetry-sdk-trace-base/src/platform/node/index.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright The OpenTelemetry Authors
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * https://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | export * from './export/BatchSpanProcessor';
18 | export * from './RandomIdGenerator';
19 |
--------------------------------------------------------------------------------
/experimental/backwards-compatibility/node14/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "backcompat-node14",
3 | "version": "0.43.0",
4 | "private": true,
5 | "description": "Backwards compatibility app for node 14 types and the OpenTelemetry Node.js SDK",
6 | "main": "index.js",
7 | "scripts": {
8 | "test:backcompat": "tsc --noEmit index.ts && tsc --noEmit --esModuleInterop index.ts",
9 | "peer-api-check": "node ../../../scripts/peer-api-check.js"
10 | },
11 | "dependencies": {
12 | "@opentelemetry/sdk-node": "0.43.0",
13 | "@opentelemetry/sdk-trace-base": "1.17.0"
14 | },
15 | "devDependencies": {
16 | "@types/node": "14.18.25",
17 | "typescript": "4.4.4"
18 | },
19 | "author": "OpenTelemetry Authors",
20 | "license": "Apache-2.0",
21 | "engines": {
22 | "node": ">=14"
23 | }
24 | }
25 |
--------------------------------------------------------------------------------
/experimental/backwards-compatibility/node16/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "backcompat-node16",
3 | "version": "0.43.0",
4 | "private": true,
5 | "description": "Backwards compatibility app for node 16 types and the OpenTelemetry Node.js SDK",
6 | "main": "index.js",
7 | "scripts": {
8 | "test:backcompat": "tsc --noEmit index.ts && tsc --noEmit --esModuleInterop index.ts",
9 | "peer-api-check": "node ../../../scripts/peer-api-check.js"
10 | },
11 | "dependencies": {
12 | "@opentelemetry/sdk-node": "0.43.0",
13 | "@opentelemetry/sdk-trace-base": "1.17.0"
14 | },
15 | "devDependencies": {
16 | "@types/node": "16.11.52",
17 | "typescript": "4.4.4"
18 | },
19 | "author": "OpenTelemetry Authors",
20 | "license": "Apache-2.0",
21 | "engines": {
22 | "node": ">=14"
23 | }
24 | }
25 |
--------------------------------------------------------------------------------
/packages/opentelemetry-exporter-zipkin/src/index.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright The OpenTelemetry Authors
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * https://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | export * from './platform';
18 | export { ExporterConfig } from './types';
19 | export * from './zipkin';
20 |
--------------------------------------------------------------------------------
/experimental/packages/exporter-logs-otlp-http/tsconfig.esnext.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "../../../tsconfig.base.esnext.json",
3 | "compilerOptions": {
4 | "outDir": "build/esnext",
5 | "rootDir": "src",
6 | "tsBuildInfoFile": "build/esnext/tsconfig.esnext.tsbuildinfo"
7 | },
8 | "include": [
9 | "src/**/*.ts"
10 | ],
11 | "references": [
12 | {
13 | "path": "../../../api"
14 | },
15 | {
16 | "path": "../../../packages/opentelemetry-core"
17 | },
18 | {
19 | "path": "../../../packages/opentelemetry-resources"
20 | },
21 | {
22 | "path": "../api-logs"
23 | },
24 | {
25 | "path": "../otlp-exporter-base"
26 | },
27 | {
28 | "path": "../otlp-transformer"
29 | },
30 | {
31 | "path": "../sdk-logs"
32 | }
33 | ]
34 | }
35 |
--------------------------------------------------------------------------------
/packages/opentelemetry-resources/src/platform/browser/default-service-name.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright The OpenTelemetry Authors
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * https://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | export function defaultServiceName(): string {
18 | return 'unknown_service';
19 | }
20 |
--------------------------------------------------------------------------------
/experimental/packages/exporter-logs-otlp-grpc/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "../../../tsconfig.base.json",
3 | "compilerOptions": {
4 | "outDir": "build",
5 | "rootDir": "."
6 | },
7 | "include": [
8 | "src/**/*.ts",
9 | "test/**/*.ts"
10 | ],
11 | "references": [
12 | {
13 | "path": "../../../api"
14 | },
15 | {
16 | "path": "../../../packages/opentelemetry-core"
17 | },
18 | {
19 | "path": "../../../packages/opentelemetry-resources"
20 | },
21 | {
22 | "path": "../api-logs"
23 | },
24 | {
25 | "path": "../otlp-exporter-base"
26 | },
27 | {
28 | "path": "../otlp-grpc-exporter-base"
29 | },
30 | {
31 | "path": "../otlp-transformer"
32 | },
33 | {
34 | "path": "../sdk-logs"
35 | }
36 | ]
37 | }
38 |
--------------------------------------------------------------------------------
/experimental/packages/opentelemetry-exporter-metrics-otlp-grpc/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "../../../tsconfig.base.json",
3 | "compilerOptions": {
4 | "outDir": "build",
5 | "rootDir": "."
6 | },
7 | "include": [
8 | "src/**/*.ts",
9 | "test/**/*.ts"
10 | ],
11 | "references": [
12 | {
13 | "path": "../../../api"
14 | },
15 | {
16 | "path": "../../../packages/opentelemetry-core"
17 | },
18 | {
19 | "path": "../../../packages/opentelemetry-resources"
20 | },
21 | {
22 | "path": "../../../packages/sdk-metrics"
23 | },
24 | {
25 | "path": "../opentelemetry-exporter-metrics-otlp-http"
26 | },
27 | {
28 | "path": "../otlp-grpc-exporter-base"
29 | },
30 | {
31 | "path": "../otlp-transformer"
32 | }
33 | ]
34 | }
35 |
--------------------------------------------------------------------------------
/experimental/packages/opentelemetry-instrumentation-grpc/src/index.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright The OpenTelemetry Authors
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * https://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | export * from './instrumentation';
18 | export type { GrpcInstrumentationConfig } from './types';
19 |
--------------------------------------------------------------------------------
/experimental/packages/otlp-grpc-exporter-base/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "../../../tsconfig.base.json",
3 | "compilerOptions": {
4 | "allowJs": true,
5 | "outDir": "build",
6 | "rootDir": "."
7 | },
8 | "include": [
9 | "src/**/*.ts",
10 | "src/generated/**/*.js",
11 | "src/generated/**/*.ts",
12 | "test/**/*.ts"
13 | ],
14 | "references": [
15 | {
16 | "path": "../../../api"
17 | },
18 | {
19 | "path": "../../../packages/opentelemetry-core"
20 | },
21 | {
22 | "path": "../../../packages/opentelemetry-resources"
23 | },
24 | {
25 | "path": "../../../packages/opentelemetry-sdk-trace-base"
26 | },
27 | {
28 | "path": "../otlp-exporter-base"
29 | },
30 | {
31 | "path": "../otlp-transformer"
32 | }
33 | ]
34 | }
35 |
--------------------------------------------------------------------------------
/packages/opentelemetry-sdk-trace-web/tsconfig.esm.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "../../tsconfig.base.esm.json",
3 | "compilerOptions": {
4 | "outDir": "build/esm",
5 | "rootDir": "src",
6 | "tsBuildInfoFile": "build/esm/tsconfig.esm.tsbuildinfo"
7 | },
8 | "include": [
9 | "src/**/*.ts"
10 | ],
11 | "references": [
12 | {
13 | "path": "../../api"
14 | },
15 | {
16 | "path": "../opentelemetry-context-zone"
17 | },
18 | {
19 | "path": "../opentelemetry-core"
20 | },
21 | {
22 | "path": "../opentelemetry-propagator-b3"
23 | },
24 | {
25 | "path": "../opentelemetry-resources"
26 | },
27 | {
28 | "path": "../opentelemetry-sdk-trace-base"
29 | },
30 | {
31 | "path": "../opentelemetry-semantic-conventions"
32 | }
33 | ]
34 | }
35 |
--------------------------------------------------------------------------------
/tsconfig.base.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | "allowUnreachableCode": false,
4 | "allowUnusedLabels": false,
5 | "composite": true,
6 | "declaration": true,
7 | "declarationMap": true,
8 | "forceConsistentCasingInFileNames": true,
9 | "incremental": true,
10 | "inlineSources": true,
11 | "module": "commonjs",
12 | "newLine": "LF",
13 | "noEmitOnError": true,
14 | "noFallthroughCasesInSwitch": true,
15 | "noImplicitOverride": true,
16 | "noImplicitReturns": true,
17 | "noUnusedLocals": true,
18 | "pretty": true,
19 | "skipLibCheck": true,
20 | "sourceMap": true,
21 | "strict": true,
22 | "strictNullChecks": true,
23 | "target": "es2017",
24 | "useUnknownInCatchVariables": false
25 | },
26 | "exclude": [
27 | "node_modules"
28 | ]
29 | }
30 |
--------------------------------------------------------------------------------
/packages/opentelemetry-sdk-trace-web/test/index-webpack.worker.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright The OpenTelemetry Authors
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * https://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | const testsContext = require.context('./', false, /test$/);
18 | testsContext.keys().forEach(testsContext);
19 |
--------------------------------------------------------------------------------
/experimental/packages/otlp-transformer/tsconfig.esm.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "../../../tsconfig.base.esm.json",
3 | "compilerOptions": {
4 | "outDir": "build/esm",
5 | "rootDir": "src",
6 | "tsBuildInfoFile": "build/esm/tsconfig.esm.tsbuildinfo"
7 | },
8 | "include": [
9 | "src/**/*.ts"
10 | ],
11 | "references": [
12 | {
13 | "path": "../../../api"
14 | },
15 | {
16 | "path": "../../../packages/opentelemetry-core"
17 | },
18 | {
19 | "path": "../../../packages/opentelemetry-resources"
20 | },
21 | {
22 | "path": "../../../packages/opentelemetry-sdk-trace-base"
23 | },
24 | {
25 | "path": "../../../packages/sdk-metrics"
26 | },
27 | {
28 | "path": "../api-logs"
29 | },
30 | {
31 | "path": "../sdk-logs"
32 | }
33 | ]
34 | }
35 |
--------------------------------------------------------------------------------
/experimental/packages/sdk-logs/test/index-webpack.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright The OpenTelemetry Authors
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * https://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | {
18 | const testsContext = require.context('./', true, /test$/);
19 | testsContext.keys().forEach(testsContext);
20 | }
21 |
--------------------------------------------------------------------------------
/packages/opentelemetry-propagator-jaeger/src/types.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright The OpenTelemetry Authors
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * https://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | export interface JaegerPropagatorConfig {
18 | customTraceHeader?: string;
19 | customBaggageHeaderPrefix?: string;
20 | }
21 |
--------------------------------------------------------------------------------
/packages/opentelemetry-resources/src/platform/browser/OSDetector.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright The OpenTelemetry Authors
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * https://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | import { noopDetector } from '../../detectors/NoopDetector';
18 |
19 | export const osDetector = noopDetector;
20 |
--------------------------------------------------------------------------------
/packages/opentelemetry-resources/src/platform/node/default-service-name.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright The OpenTelemetry Authors
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * https://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | export function defaultServiceName(): string {
18 | return `unknown_service:${process.argv0}`;
19 | }
20 |
--------------------------------------------------------------------------------
/experimental/packages/otlp-exporter-base/src/platform/browser/index.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright The OpenTelemetry Authors
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * https://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | export { OTLPExporterBrowserBase } from './OTLPExporterBrowserBase';
18 | export { sendWithXhr } from './util';
19 |
--------------------------------------------------------------------------------
/experimental/packages/otlp-proto-exporter-base/src/platform/node/index.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright The OpenTelemetry Authors
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * https://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | export { OTLPProtoExporterNodeBase } from './OTLPProtoExporterNodeBase';
18 | export { send } from './util';
19 |
--------------------------------------------------------------------------------
/experimental/packages/sdk-logs/test/index-webpack.worker.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright The OpenTelemetry Authors
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * https://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | {
18 | const testsContext = require.context('./', true, /test$/);
19 | testsContext.keys().forEach(testsContext);
20 | }
21 |
--------------------------------------------------------------------------------
/packages/opentelemetry-resources/src/platform/browser/HostDetector.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright The OpenTelemetry Authors
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * https://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | import { noopDetector } from '../../detectors/NoopDetector';
18 |
19 | export const hostDetector = noopDetector;
20 |
--------------------------------------------------------------------------------
/packages/opentelemetry-sdk-trace-base/test/index-webpack.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright The OpenTelemetry Authors
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * https://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | {
18 | const testsContext = require.context('./', true, /test$/);
19 | testsContext.keys().forEach(testsContext);
20 | }
21 |
--------------------------------------------------------------------------------
/packages/opentelemetry-sdk-trace-web/tsconfig.esnext.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "../../tsconfig.base.esnext.json",
3 | "compilerOptions": {
4 | "outDir": "build/esnext",
5 | "rootDir": "src",
6 | "tsBuildInfoFile": "build/esnext/tsconfig.esnext.tsbuildinfo"
7 | },
8 | "include": [
9 | "src/**/*.ts"
10 | ],
11 | "references": [
12 | {
13 | "path": "../../api"
14 | },
15 | {
16 | "path": "../opentelemetry-context-zone"
17 | },
18 | {
19 | "path": "../opentelemetry-core"
20 | },
21 | {
22 | "path": "../opentelemetry-propagator-b3"
23 | },
24 | {
25 | "path": "../opentelemetry-resources"
26 | },
27 | {
28 | "path": "../opentelemetry-sdk-trace-base"
29 | },
30 | {
31 | "path": "../opentelemetry-semantic-conventions"
32 | }
33 | ]
34 | }
35 |
--------------------------------------------------------------------------------
/api/src/baggage/internal/symbol.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright The OpenTelemetry Authors
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * https://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | /**
18 | * Symbol used to make BaggageEntryMetadata an opaque type
19 | */
20 | export const baggageEntryMetadataSymbol = Symbol('BaggageEntryMetadata');
21 |
--------------------------------------------------------------------------------
/experimental/packages/opentelemetry-exporter-prometheus/src/index.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright The OpenTelemetry Authors
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * https://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | export * from './PrometheusExporter';
18 | export * from './PrometheusSerializer';
19 | export * from './export/types';
20 |
--------------------------------------------------------------------------------
/packages/opentelemetry-resources/src/platform/browser/ProcessDetector.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright The OpenTelemetry Authors
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * https://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | import { noopDetector } from '../../detectors/NoopDetector';
18 |
19 | export const processDetector = noopDetector;
20 |
--------------------------------------------------------------------------------
/packages/opentelemetry-sdk-trace-node/src/index.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright The OpenTelemetry Authors
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * https://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | export { NodeTracerConfig } from './config';
18 | export * from './NodeTracerProvider';
19 | export * from '@opentelemetry/sdk-trace-base';
20 |
--------------------------------------------------------------------------------
/experimental/packages/otlp-transformer/tsconfig.esnext.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "../../../tsconfig.base.esnext.json",
3 | "compilerOptions": {
4 | "outDir": "build/esnext",
5 | "rootDir": "src",
6 | "tsBuildInfoFile": "build/esnext/tsconfig.esnext.tsbuildinfo"
7 | },
8 | "include": [
9 | "src/**/*.ts"
10 | ],
11 | "references": [
12 | {
13 | "path": "../../../api"
14 | },
15 | {
16 | "path": "../../../packages/opentelemetry-core"
17 | },
18 | {
19 | "path": "../../../packages/opentelemetry-resources"
20 | },
21 | {
22 | "path": "../../../packages/opentelemetry-sdk-trace-base"
23 | },
24 | {
25 | "path": "../../../packages/sdk-metrics"
26 | },
27 | {
28 | "path": "../api-logs"
29 | },
30 | {
31 | "path": "../sdk-logs"
32 | }
33 | ]
34 | }
35 |
--------------------------------------------------------------------------------
/packages/opentelemetry-sdk-trace-base/test/index-webpack.worker.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright The OpenTelemetry Authors
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * https://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | {
18 | const testsContext = require.context('./', true, /test$/);
19 | testsContext.keys().forEach(testsContext);
20 | }
21 |
--------------------------------------------------------------------------------
/experimental/examples/opencensus-shim/utils.js:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright The OpenTelemetry Authors
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * https://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | 'use strict';
17 |
18 | async function sleep(ms) {
19 | return new Promise(resolve => setTimeout(resolve, ms));
20 | }
21 |
22 | exports.sleep = sleep;
23 |
--------------------------------------------------------------------------------
/experimental/packages/opentelemetry-exporter-metrics-otlp-http/src/index.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright The OpenTelemetry Authors
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * https://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | export * from './platform';
18 | export * from './OTLPMetricExporterOptions';
19 | export * from './OTLPMetricExporterBase';
20 |
--------------------------------------------------------------------------------
/experimental/packages/otlp-proto-exporter-base/src/platform/browser/index.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright The OpenTelemetry Authors
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * https://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | export { OTLPProtoExporterBrowserBase } from './OTLPProtoExporterBrowserBase';
17 | export { ServiceClientType } from '../types';
18 |
--------------------------------------------------------------------------------
/integration-tests/propagation-validation-server/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "propagation-validation-server",
3 | "version": "1.17.0",
4 | "description": "server for w3c tests",
5 | "main": "validation_server.js",
6 | "private": true,
7 | "repository": "open-telemetry/opentelemetry-js",
8 | "author": "OpenTelemetry Authors",
9 | "license": "Apache-2.0",
10 | "scripts": {
11 | "compile": "tsc --build"
12 | },
13 | "dependencies": {
14 | "@opentelemetry/api": "^1.0.0",
15 | "@opentelemetry/context-async-hooks": "1.17.0",
16 | "@opentelemetry/core": "1.17.0",
17 | "@opentelemetry/sdk-trace-base": "1.17.0",
18 | "axios": "1.5.0",
19 | "body-parser": "1.19.0",
20 | "express": "4.17.3"
21 | },
22 | "devDependencies": {
23 | "typescript": "4.4.4"
24 | },
25 | "engines": {
26 | "node": ">=14"
27 | }
28 | }
29 |
--------------------------------------------------------------------------------
/packages/opentelemetry-resources/src/platform/browser/OSDetectorSync.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright The OpenTelemetry Authors
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * https://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | import { noopDetectorSync } from '../../detectors/NoopDetectorSync';
18 |
19 | export const osDetectorSync = noopDetectorSync;
20 |
--------------------------------------------------------------------------------
/packages/opentelemetry-resources/src/platform/browser/ProcessDetectorSync.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright The OpenTelemetry Authors
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * https://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | import { noopDetector } from '../../detectors/NoopDetector';
18 |
19 | export const processDetectorSync = noopDetector;
20 |
--------------------------------------------------------------------------------