├── api ├── .eslintignore ├── .eslintrc.js ├── tsconfig.json ├── tsconfig.esm.json ├── tsconfig.esnext.json ├── src │ ├── platform │ │ ├── index.ts │ │ ├── node │ │ │ └── index.ts │ │ └── browser │ │ │ └── index.ts │ └── baggage │ │ └── internal │ │ └── symbol.ts └── test │ ├── index-webpack.ts │ └── index-webpack.worker.ts ├── packages ├── template │ ├── src │ │ └── index.ts │ ├── .eslintignore │ ├── .npmignore │ ├── README.md │ ├── .eslintrc.js │ ├── tsconfig.json │ ├── tsconfig.esm.json │ └── tsconfig.esnext.json ├── sdk-metrics │ ├── .eslintignore │ ├── .npmignore │ ├── .eslintrc.js │ ├── tsconfig.json │ ├── tsconfig.esm.json │ └── tsconfig.esnext.json ├── opentelemetry-core │ ├── .eslintignore │ ├── .npmignore │ ├── test │ │ └── trace │ │ │ └── fixtures │ │ │ └── test-package │ │ │ ├── index.js │ │ │ ├── foo │ │ │ └── bar │ │ │ │ ├── internal.js │ │ │ │ └── internal.d.ts │ │ │ └── package.json │ ├── .eslintrc.js │ ├── tsconfig.json │ ├── tsconfig.esm.json │ ├── tsconfig.esnext.json │ └── src │ │ └── platform │ │ ├── index.ts │ │ ├── browser │ │ ├── performance.ts │ │ └── timer-util.ts │ │ └── node │ │ ├── timer-util.ts │ │ └── performance.ts ├── opentelemetry-resources │ ├── .eslintignore │ ├── .npmignore │ ├── .eslintrc.js │ ├── tsconfig.json │ ├── tsconfig.esm.json │ ├── tsconfig.esnext.json │ └── src │ │ └── platform │ │ ├── index.ts │ │ ├── browser │ │ ├── default-service-name.ts │ │ ├── OSDetector.ts │ │ ├── HostDetector.ts │ │ ├── ProcessDetector.ts │ │ ├── OSDetectorSync.ts │ │ └── ProcessDetectorSync.ts │ │ └── node │ │ └── default-service-name.ts ├── opentelemetry-context-zone │ ├── .eslintignore │ ├── .eslintrc.js │ ├── tsconfig.json │ ├── tsconfig.esm.json │ ├── tsconfig.esnext.json │ └── src │ │ └── index.ts ├── opentelemetry-exporter-jaeger │ ├── .eslintignore │ ├── .npmignore │ ├── .eslintrc.js │ ├── tsconfig.json │ └── src │ │ └── index.ts ├── opentelemetry-exporter-zipkin │ ├── .eslintignore │ ├── .npmignore │ ├── .eslintrc.js │ ├── tsconfig.json │ ├── tsconfig.esm.json │ ├── tsconfig.esnext.json │ └── src │ │ ├── platform │ │ ├── index.ts │ │ ├── node │ │ │ └── index.ts │ │ └── browser │ │ │ └── index.ts │ │ └── index.ts ├── opentelemetry-propagator-b3 │ ├── .eslintignore │ ├── .npmignore │ ├── .eslintrc.js │ ├── tsconfig.json │ ├── tsconfig.esm.json │ ├── tsconfig.esnext.json │ └── src │ │ └── index.ts ├── opentelemetry-sdk-trace-node │ ├── .eslintignore │ ├── .npmignore │ ├── .gitignore │ ├── .eslintrc.js │ └── src │ │ └── index.ts ├── opentelemetry-sdk-trace-web │ ├── .eslintignore │ ├── .npmignore │ ├── .eslintrc.js │ ├── tsconfig.json │ ├── tsconfig.esm.json │ ├── test │ │ └── index-webpack.worker.ts │ └── tsconfig.esnext.json ├── opentelemetry-shim-opentracing │ ├── .eslintignore │ ├── .npmignore │ ├── .eslintrc.js │ ├── tsconfig.json │ └── src │ │ └── index.ts ├── opentelemetry-context-async-hooks │ ├── .eslintignore │ ├── .npmignore │ ├── .eslintrc.js │ ├── tsconfig.json │ └── src │ │ └── index.ts ├── opentelemetry-context-zone-peer-dep │ ├── .eslintignore │ ├── .eslintrc.js │ ├── tsconfig.json │ ├── tsconfig.esm.json │ ├── tsconfig.esnext.json │ └── src │ │ └── index.ts ├── opentelemetry-propagator-jaeger │ ├── .eslintignore │ ├── jaeger-tracing.png │ ├── .eslintrc.js │ ├── tsconfig.json │ ├── tsconfig.esm.json │ ├── tsconfig.esnext.json │ └── src │ │ ├── index.ts │ │ └── types.ts ├── opentelemetry-sdk-trace-base │ ├── .eslintignore │ ├── .npmignore │ ├── .eslintrc.js │ ├── tsconfig.json │ ├── tsconfig.esm.json │ ├── tsconfig.esnext.json │ ├── src │ │ ├── platform │ │ │ ├── index.ts │ │ │ ├── browser │ │ │ │ └── index.ts │ │ │ └── node │ │ │ │ └── index.ts │ │ └── enums.ts │ └── test │ │ ├── performance │ │ └── benchmark │ │ │ └── index.js │ │ ├── index-webpack.ts │ │ └── index-webpack.worker.ts └── opentelemetry-semantic-conventions │ ├── .eslintignore │ ├── .npmignore │ ├── .eslintrc.js │ ├── tsconfig.json │ ├── tsconfig.esm.json │ ├── tsconfig.esnext.json │ └── src │ ├── trace │ └── index.ts │ ├── resource │ └── index.ts │ └── index.ts ├── tsconfig.tsbuildinfo ├── .npmignore ├── selenium-tests ├── .gitignore ├── example.env ├── tests-helpers │ └── constants.js ├── webpack.dev.js ├── webpack.production.js └── pages │ ├── xhr │ └── index.html │ └── fetch │ └── index.html ├── experimental ├── packages │ ├── api-events │ │ ├── .eslintignore │ │ ├── .eslintrc.js │ │ ├── tsconfig.json │ │ ├── tsconfig.esm.json │ │ ├── tsconfig.esnext.json │ │ └── src │ │ │ └── platform │ │ │ ├── index.ts │ │ │ ├── node │ │ │ └── index.ts │ │ │ └── browser │ │ │ └── index.ts │ ├── api-logs │ │ ├── .eslintignore │ │ ├── .eslintrc.js │ │ ├── tsconfig.json │ │ ├── tsconfig.esm.json │ │ ├── tsconfig.esnext.json │ │ └── src │ │ │ └── platform │ │ │ ├── index.ts │ │ │ ├── browser │ │ │ └── index.ts │ │ │ └── node │ │ │ └── index.ts │ ├── sdk-logs │ │ ├── .eslintignore │ │ ├── .npmignore │ │ ├── .eslintrc.js │ │ ├── tsconfig.json │ │ ├── tsconfig.esm.json │ │ ├── tsconfig.esnext.json │ │ ├── src │ │ │ └── platform │ │ │ │ ├── index.ts │ │ │ │ ├── node │ │ │ │ └── index.ts │ │ │ │ └── browser │ │ │ │ └── index.ts │ │ └── test │ │ │ ├── index-webpack.ts │ │ │ └── index-webpack.worker.ts │ ├── shim-opencensus │ │ ├── .eslintignore │ │ ├── .npmignore │ │ ├── .eslintrc.js │ │ ├── tsconfig.json │ │ └── src │ │ │ └── register.ts │ ├── opentelemetry-sdk-node │ │ ├── .eslintignore │ │ └── .eslintrc.js │ ├── otlp-exporter-base │ │ ├── .eslintignore │ │ ├── .npmignore │ │ ├── .eslintrc.js │ │ ├── tsconfig.json │ │ ├── tsconfig.esm.json │ │ ├── tsconfig.esnext.json │ │ └── src │ │ │ └── platform │ │ │ └── browser │ │ │ └── index.ts │ ├── otlp-grpc-exporter-base │ │ ├── src │ │ │ └── generated │ │ │ │ └── .gitkeep │ │ ├── .eslintignore │ │ ├── .npmignore │ │ ├── .gitignore │ │ ├── .eslintrc.js │ │ └── tsconfig.json │ ├── exporter-logs-otlp-grpc │ │ ├── .eslintignore │ │ ├── .npmignore │ │ ├── .eslintrc.js │ │ ├── src │ │ │ └── index.ts │ │ └── tsconfig.json │ ├── exporter-logs-otlp-http │ │ ├── .eslintignore │ │ ├── .npmignore │ │ ├── .eslintrc.js │ │ ├── tsconfig.json │ │ ├── src │ │ │ ├── index.ts │ │ │ └── platform │ │ │ │ ├── index.ts │ │ │ │ ├── node │ │ │ │ └── index.ts │ │ │ │ └── browser │ │ │ │ └── index.ts │ │ ├── tsconfig.esm.json │ │ └── tsconfig.esnext.json │ ├── exporter-logs-otlp-proto │ │ ├── .eslintignore │ │ ├── .npmignore │ │ ├── .eslintrc.js │ │ └── src │ │ │ ├── index.ts │ │ │ └── platform │ │ │ ├── index.ts │ │ │ ├── browser │ │ │ └── index.ts │ │ │ └── node │ │ │ └── index.ts │ ├── exporter-trace-otlp-grpc │ │ ├── .eslintignore │ │ ├── .npmignore │ │ ├── .eslintrc.js │ │ ├── src │ │ │ └── index.ts │ │ └── tsconfig.json │ ├── exporter-trace-otlp-http │ │ ├── .eslintignore │ │ ├── .npmignore │ │ ├── .eslintrc.js │ │ ├── src │ │ │ ├── index.ts │ │ │ └── platform │ │ │ │ ├── index.ts │ │ │ │ ├── node │ │ │ │ └── index.ts │ │ │ │ └── browser │ │ │ │ └── index.ts │ │ ├── tsconfig.json │ │ ├── tsconfig.esm.json │ │ └── tsconfig.esnext.json │ ├── exporter-trace-otlp-proto │ │ ├── .eslintignore │ │ ├── .npmignore │ │ ├── .eslintrc.js │ │ ├── src │ │ │ ├── index.ts │ │ │ └── platform │ │ │ │ ├── index.ts │ │ │ │ ├── browser │ │ │ │ └── index.ts │ │ │ │ └── node │ │ │ │ └── index.ts │ │ └── tsconfig.json │ ├── otlp-proto-exporter-base │ │ ├── src │ │ │ ├── generated │ │ │ │ └── .gitkeep │ │ │ ├── index.ts │ │ │ └── platform │ │ │ │ ├── types.ts │ │ │ │ ├── node │ │ │ │ └── index.ts │ │ │ │ └── browser │ │ │ │ └── index.ts │ │ ├── .eslintignore │ │ ├── .npmignore │ │ ├── .gitignore │ │ ├── .eslintrc.js │ │ ├── tsconfig.json │ │ ├── tsconfig.esm.json │ │ └── tsconfig.esnext.json │ ├── opentelemetry-browser-detector │ │ ├── .eslintignore │ │ ├── .npmignore │ │ ├── .eslintrc.js │ │ ├── tsconfig.json │ │ ├── tsconfig.esm.json │ │ ├── tsconfig.esnext.json │ │ └── src │ │ │ └── index.ts │ ├── otlp-transformer │ │ ├── .gitignore │ │ ├── .eslintignore │ │ ├── .eslintrc.js │ │ ├── tsconfig.json │ │ ├── tsconfig.esm.json │ │ └── tsconfig.esnext.json │ ├── opentelemetry-exporter-prometheus │ │ ├── .eslintignore │ │ ├── .npmignore │ │ ├── .eslintrc.js │ │ ├── tsconfig.json │ │ └── src │ │ │ └── index.ts │ ├── opentelemetry-instrumentation-fetch │ │ ├── .eslintignore │ │ ├── .npmignore │ │ ├── images │ │ │ ├── trace1.png │ │ │ ├── trace2.png │ │ │ └── trace3.png │ │ ├── .eslintrc.js │ │ └── src │ │ │ └── index.ts │ ├── opentelemetry-instrumentation-grpc │ │ ├── test │ │ │ ├── .gitignore │ │ │ └── fixtures │ │ │ │ ├── buf.yaml │ │ │ │ ├── buf.gen.yaml │ │ │ │ ├── buf.lock │ │ │ │ └── grpc-test.proto │ │ ├── .eslintignore │ │ ├── .npmignore │ │ ├── .eslintrc.js │ │ └── src │ │ │ ├── status-code.ts │ │ │ └── index.ts │ ├── opentelemetry-instrumentation-http │ │ ├── .eslintignore │ │ ├── .npmignore │ │ ├── .eslintrc.js │ │ ├── test │ │ │ └── fixtures │ │ │ │ └── regenerate.sh │ │ └── src │ │ │ └── index.ts │ ├── opentelemetry-instrumentation │ │ ├── .eslintignore │ │ ├── test │ │ │ └── node │ │ │ │ ├── node_modules │ │ │ │ ├── .gitkeep │ │ │ │ └── test-esm-module │ │ │ │ │ ├── package.json │ │ │ │ │ └── src │ │ │ │ │ └── index.js │ │ │ │ └── fixtures │ │ │ │ └── absolutePathTestFixture.js │ │ ├── .npmignore │ │ ├── .gitignore │ │ ├── .eslintrc.js │ │ ├── tsconfig.json │ │ ├── tsconfig.esm.json │ │ ├── tsconfig.esnext.json │ │ └── src │ │ │ └── platform │ │ │ ├── index.ts │ │ │ └── browser │ │ │ └── index.ts │ ├── opentelemetry-exporter-metrics-otlp-grpc │ │ ├── .eslintignore │ │ ├── .npmignore │ │ ├── .eslintrc.js │ │ ├── src │ │ │ └── index.ts │ │ └── tsconfig.json │ ├── opentelemetry-exporter-metrics-otlp-http │ │ ├── .eslintignore │ │ ├── .npmignore │ │ ├── .eslintrc.js │ │ ├── tsconfig.json │ │ ├── src │ │ │ ├── platform │ │ │ │ ├── index.ts │ │ │ │ ├── browser │ │ │ │ │ └── index.ts │ │ │ │ └── node │ │ │ │ │ └── index.ts │ │ │ └── index.ts │ │ ├── tsconfig.esm.json │ │ └── tsconfig.esnext.json │ ├── opentelemetry-exporter-metrics-otlp-proto │ │ ├── .eslintignore │ │ ├── .npmignore │ │ ├── .eslintrc.js │ │ └── src │ │ │ └── index.ts │ └── opentelemetry-instrumentation-xml-http-request │ │ ├── .eslintignore │ │ ├── .npmignore │ │ ├── images │ │ ├── cors.jpg │ │ ├── main.jpg │ │ └── request.jpg │ │ ├── .eslintrc.js │ │ └── src │ │ └── index.ts ├── examples │ ├── .eslintrc.js │ ├── prometheus │ │ ├── images │ │ │ ├── prom-counter.png │ │ │ └── prom-updowncounter.png │ │ ├── prometheus.yml │ │ └── package.json │ ├── opencensus-shim │ │ ├── images │ │ │ ├── jaeger-trace.png │ │ │ └── prom-metrics.png │ │ └── utils.js │ ├── logs │ │ ├── package.json │ │ ├── tsconfig.json │ │ └── README.md │ └── README.md └── backwards-compatibility │ ├── node14 │ ├── index.ts │ ├── tsconfig.json │ └── package.json │ └── node16 │ ├── index.ts │ ├── tsconfig.json │ └── package.json ├── scripts └── semconv │ └── .gitignore ├── doc └── library-author.md ├── examples ├── opentelemetry-web │ ├── .eslintrc.js │ ├── images │ │ └── xml-http-request.png │ ├── docker │ │ ├── prometheus.yaml │ │ └── collector-config.yaml │ └── examples │ │ ├── zipkin │ │ └── index.html │ │ ├── fetch │ │ └── index.html │ │ ├── fetch-proto │ │ └── index.html │ │ ├── xml-http-request │ │ └── index.html │ │ ├── fetchXhrB3 │ │ └── index.html │ │ └── fetchXhr │ │ └── index.html ├── grpc-js │ └── images │ │ ├── jaeger.png │ │ └── zipkin.png ├── http │ └── images │ │ ├── jaeger-ui.png │ │ └── zipkin-ui.png ├── https │ ├── images │ │ ├── jaeger-ui.png │ │ └── zipkin-ui.png │ └── docker │ │ └── docker-compose.yml ├── otlp-exporter-node │ ├── images │ │ └── spans.png │ └── docker │ │ ├── prometheus.yaml │ │ └── collector-config.yaml ├── opentracing-shim │ ├── images │ │ ├── jaeger-ui.png │ │ └── zipkin-ui.png │ └── utils.js ├── basic-tracer-node │ ├── images │ │ ├── jaeger-ui-list.png │ │ ├── zipkin-ui-list.png │ │ ├── jaeger-ui-detail.png │ │ └── zipkin-ui-detail.png │ └── docker │ │ └── ot │ │ ├── collector-config.yaml │ │ └── docker-compose.yaml ├── .eslintrc.js └── esm-http-ts │ └── README.md ├── .markdownlint.json ├── tsconfig.base.es5.json ├── tsconfig.base.esm.json ├── prettier.config.js ├── .editorconfig ├── tsconfig.base.esnext.json ├── codecov.yml ├── .github ├── workflows │ ├── label-releases.yml │ ├── peer-api.yml │ └── codeql-analysis.yml ├── CODEOWNERS └── ISSUE_TEMPLATE │ └── discussion.md ├── .nycrc ├── .gitmodules ├── lerna.json ├── integration-tests └── propagation-validation-server │ ├── tsconfig.json │ └── package.json └── tsconfig.base.json /api/.eslintignore: -------------------------------------------------------------------------------- 1 | build 2 | -------------------------------------------------------------------------------- /packages/template/src/index.ts: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tsconfig.tsbuildinfo: -------------------------------------------------------------------------------- 1 | {"version":"4.4.4"} -------------------------------------------------------------------------------- /packages/sdk-metrics/.eslintignore: -------------------------------------------------------------------------------- 1 | build 2 | -------------------------------------------------------------------------------- /packages/template/.eslintignore: -------------------------------------------------------------------------------- 1 | build 2 | 3 | -------------------------------------------------------------------------------- /.npmignore: -------------------------------------------------------------------------------- 1 | /bin 2 | /coverage 3 | /doc 4 | /test 5 | -------------------------------------------------------------------------------- /packages/opentelemetry-core/.eslintignore: -------------------------------------------------------------------------------- 1 | build 2 | -------------------------------------------------------------------------------- /selenium-tests/.gitignore: -------------------------------------------------------------------------------- 1 | tests_output 2 | tmp 3 | -------------------------------------------------------------------------------- /experimental/packages/api-events/.eslintignore: -------------------------------------------------------------------------------- 1 | build 2 | -------------------------------------------------------------------------------- /experimental/packages/api-logs/.eslintignore: -------------------------------------------------------------------------------- 1 | build 2 | -------------------------------------------------------------------------------- /experimental/packages/sdk-logs/.eslintignore: -------------------------------------------------------------------------------- 1 | build 2 | -------------------------------------------------------------------------------- /packages/opentelemetry-resources/.eslintignore: -------------------------------------------------------------------------------- 1 | build 2 | -------------------------------------------------------------------------------- /experimental/packages/shim-opencensus/.eslintignore: -------------------------------------------------------------------------------- 1 | build 2 | -------------------------------------------------------------------------------- /packages/opentelemetry-context-zone/.eslintignore: -------------------------------------------------------------------------------- 1 | build 2 | -------------------------------------------------------------------------------- /packages/opentelemetry-exporter-jaeger/.eslintignore: -------------------------------------------------------------------------------- 1 | build 2 | -------------------------------------------------------------------------------- /packages/opentelemetry-exporter-zipkin/.eslintignore: -------------------------------------------------------------------------------- 1 | build 2 | -------------------------------------------------------------------------------- /packages/opentelemetry-propagator-b3/.eslintignore: -------------------------------------------------------------------------------- 1 | build 2 | -------------------------------------------------------------------------------- /packages/opentelemetry-sdk-trace-node/.eslintignore: -------------------------------------------------------------------------------- 1 | build 2 | -------------------------------------------------------------------------------- /packages/opentelemetry-sdk-trace-web/.eslintignore: -------------------------------------------------------------------------------- 1 | build 2 | -------------------------------------------------------------------------------- /packages/opentelemetry-shim-opentracing/.eslintignore: -------------------------------------------------------------------------------- 1 | build 2 | -------------------------------------------------------------------------------- /scripts/semconv/.gitignore: -------------------------------------------------------------------------------- 1 | opentelemetry-specification/ 2 | -------------------------------------------------------------------------------- /experimental/packages/opentelemetry-sdk-node/.eslintignore: -------------------------------------------------------------------------------- 1 | build 2 | -------------------------------------------------------------------------------- /experimental/packages/otlp-exporter-base/.eslintignore: -------------------------------------------------------------------------------- 1 | build 2 | -------------------------------------------------------------------------------- /experimental/packages/otlp-grpc-exporter-base/src/generated/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /packages/opentelemetry-context-async-hooks/.eslintignore: -------------------------------------------------------------------------------- 1 | build 2 | -------------------------------------------------------------------------------- /packages/opentelemetry-context-zone-peer-dep/.eslintignore: -------------------------------------------------------------------------------- 1 | build 2 | -------------------------------------------------------------------------------- /packages/opentelemetry-propagator-jaeger/.eslintignore: -------------------------------------------------------------------------------- 1 | build 2 | -------------------------------------------------------------------------------- /packages/opentelemetry-sdk-trace-base/.eslintignore: -------------------------------------------------------------------------------- 1 | build 2 | 3 | -------------------------------------------------------------------------------- /packages/opentelemetry-semantic-conventions/.eslintignore: -------------------------------------------------------------------------------- 1 | build 2 | -------------------------------------------------------------------------------- /experimental/packages/exporter-logs-otlp-grpc/.eslintignore: -------------------------------------------------------------------------------- 1 | build 2 | -------------------------------------------------------------------------------- /experimental/packages/exporter-logs-otlp-http/.eslintignore: -------------------------------------------------------------------------------- 1 | build 2 | -------------------------------------------------------------------------------- /experimental/packages/exporter-logs-otlp-proto/.eslintignore: -------------------------------------------------------------------------------- 1 | build 2 | -------------------------------------------------------------------------------- /experimental/packages/exporter-trace-otlp-grpc/.eslintignore: -------------------------------------------------------------------------------- 1 | build 2 | -------------------------------------------------------------------------------- /experimental/packages/exporter-trace-otlp-http/.eslintignore: -------------------------------------------------------------------------------- 1 | build 2 | -------------------------------------------------------------------------------- /experimental/packages/exporter-trace-otlp-proto/.eslintignore: -------------------------------------------------------------------------------- 1 | build 2 | -------------------------------------------------------------------------------- /experimental/packages/otlp-proto-exporter-base/src/generated/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /packages/sdk-metrics/.npmignore: -------------------------------------------------------------------------------- 1 | /bin 2 | /coverage 3 | /doc 4 | /test 5 | -------------------------------------------------------------------------------- /packages/template/.npmignore: -------------------------------------------------------------------------------- 1 | /bin 2 | /coverage 3 | /doc 4 | /test 5 | -------------------------------------------------------------------------------- /doc/library-author.md: -------------------------------------------------------------------------------- 1 | # OpenTelemetry for Library Authors 2 | 3 | TODO 4 | -------------------------------------------------------------------------------- /experimental/packages/opentelemetry-browser-detector/.eslintignore: -------------------------------------------------------------------------------- 1 | build 2 | -------------------------------------------------------------------------------- /experimental/packages/otlp-transformer/.gitignore: -------------------------------------------------------------------------------- 1 | src/generated 2 | !src/logs -------------------------------------------------------------------------------- /experimental/packages/opentelemetry-exporter-prometheus/.eslintignore: -------------------------------------------------------------------------------- 1 | build 2 | -------------------------------------------------------------------------------- /experimental/packages/opentelemetry-instrumentation-fetch/.eslintignore: -------------------------------------------------------------------------------- 1 | build 2 | -------------------------------------------------------------------------------- /experimental/packages/opentelemetry-instrumentation-grpc/test/.gitignore: -------------------------------------------------------------------------------- 1 | /proto 2 | -------------------------------------------------------------------------------- /experimental/packages/opentelemetry-instrumentation-http/.eslintignore: -------------------------------------------------------------------------------- 1 | build 2 | -------------------------------------------------------------------------------- /experimental/packages/opentelemetry-instrumentation/.eslintignore: -------------------------------------------------------------------------------- 1 | build 2 | 3 | -------------------------------------------------------------------------------- /experimental/packages/opentelemetry-instrumentation/test/node/node_modules/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /experimental/packages/otlp-transformer/.eslintignore: -------------------------------------------------------------------------------- 1 | build 2 | src/generated 3 | -------------------------------------------------------------------------------- /experimental/packages/sdk-logs/.npmignore: -------------------------------------------------------------------------------- 1 | /bin 2 | /coverage 3 | /doc 4 | /test 5 | -------------------------------------------------------------------------------- /packages/opentelemetry-core/.npmignore: -------------------------------------------------------------------------------- 1 | /bin 2 | /coverage 3 | /doc 4 | /test 5 | -------------------------------------------------------------------------------- /experimental/packages/opentelemetry-exporter-metrics-otlp-grpc/.eslintignore: -------------------------------------------------------------------------------- 1 | build 2 | -------------------------------------------------------------------------------- /experimental/packages/opentelemetry-exporter-metrics-otlp-http/.eslintignore: -------------------------------------------------------------------------------- 1 | build 2 | -------------------------------------------------------------------------------- /experimental/packages/opentelemetry-exporter-metrics-otlp-proto/.eslintignore: -------------------------------------------------------------------------------- 1 | build 2 | -------------------------------------------------------------------------------- /experimental/packages/otlp-grpc-exporter-base/.eslintignore: -------------------------------------------------------------------------------- 1 | build 2 | src/generated 3 | -------------------------------------------------------------------------------- /experimental/packages/otlp-proto-exporter-base/.eslintignore: -------------------------------------------------------------------------------- 1 | build 2 | src/generated 3 | -------------------------------------------------------------------------------- /packages/opentelemetry-resources/.npmignore: -------------------------------------------------------------------------------- 1 | /bin 2 | /coverage 3 | /doc 4 | /test 5 | -------------------------------------------------------------------------------- /experimental/packages/opentelemetry-instrumentation-xml-http-request/.eslintignore: -------------------------------------------------------------------------------- 1 | build 2 | -------------------------------------------------------------------------------- /experimental/packages/otlp-exporter-base/.npmignore: -------------------------------------------------------------------------------- 1 | /bin 2 | /coverage 3 | /doc 4 | /test 5 | -------------------------------------------------------------------------------- /experimental/packages/shim-opencensus/.npmignore: -------------------------------------------------------------------------------- 1 | /bin 2 | /coverage 3 | /doc 4 | /test 5 | -------------------------------------------------------------------------------- /packages/opentelemetry-exporter-jaeger/.npmignore: -------------------------------------------------------------------------------- 1 | /bin 2 | /coverage 3 | /doc 4 | /test 5 | -------------------------------------------------------------------------------- /packages/opentelemetry-exporter-zipkin/.npmignore: -------------------------------------------------------------------------------- 1 | /bin 2 | /coverage 3 | /doc 4 | /test 5 | -------------------------------------------------------------------------------- /packages/opentelemetry-propagator-b3/.npmignore: -------------------------------------------------------------------------------- 1 | /bin 2 | /coverage 3 | /doc 4 | /test 5 | -------------------------------------------------------------------------------- /packages/opentelemetry-sdk-trace-base/.npmignore: -------------------------------------------------------------------------------- 1 | /bin 2 | /coverage 3 | /doc 4 | /test 5 | -------------------------------------------------------------------------------- /packages/opentelemetry-sdk-trace-node/.npmignore: -------------------------------------------------------------------------------- 1 | /bin 2 | /coverage 3 | /doc 4 | /test 5 | -------------------------------------------------------------------------------- /packages/opentelemetry-sdk-trace-web/.npmignore: -------------------------------------------------------------------------------- 1 | /bin 2 | /coverage 3 | /doc 4 | /test 5 | -------------------------------------------------------------------------------- /packages/opentelemetry-shim-opentracing/.npmignore: -------------------------------------------------------------------------------- 1 | /bin 2 | /coverage 3 | /doc 4 | /test 5 | -------------------------------------------------------------------------------- /experimental/packages/exporter-logs-otlp-grpc/.npmignore: -------------------------------------------------------------------------------- 1 | /bin 2 | /coverage 3 | /doc 4 | /test 5 | -------------------------------------------------------------------------------- /experimental/packages/exporter-logs-otlp-http/.npmignore: -------------------------------------------------------------------------------- 1 | /bin 2 | /coverage 3 | /doc 4 | /test 5 | -------------------------------------------------------------------------------- /experimental/packages/opentelemetry-instrumentation-grpc/.eslintignore: -------------------------------------------------------------------------------- 1 | build 2 | test/proto 3 | -------------------------------------------------------------------------------- /experimental/packages/otlp-grpc-exporter-base/.npmignore: -------------------------------------------------------------------------------- 1 | /bin 2 | /coverage 3 | /doc 4 | /test 5 | -------------------------------------------------------------------------------- /packages/opentelemetry-context-async-hooks/.npmignore: -------------------------------------------------------------------------------- 1 | /bin 2 | /coverage 3 | /doc 4 | /test 5 | -------------------------------------------------------------------------------- /packages/opentelemetry-semantic-conventions/.npmignore: -------------------------------------------------------------------------------- 1 | /bin 2 | /coverage 3 | /doc 4 | /test 5 | -------------------------------------------------------------------------------- /experimental/packages/exporter-logs-otlp-proto/.npmignore: -------------------------------------------------------------------------------- 1 | /bin 2 | /coverage 3 | /doc 4 | /test 5 | -------------------------------------------------------------------------------- /experimental/packages/exporter-trace-otlp-grpc/.npmignore: -------------------------------------------------------------------------------- 1 | /bin 2 | /coverage 3 | /doc 4 | /test 5 | -------------------------------------------------------------------------------- /experimental/packages/exporter-trace-otlp-http/.npmignore: -------------------------------------------------------------------------------- 1 | /bin 2 | /coverage 3 | /doc 4 | /test 5 | -------------------------------------------------------------------------------- /experimental/packages/exporter-trace-otlp-proto/.npmignore: -------------------------------------------------------------------------------- 1 | /bin 2 | /coverage 3 | /doc 4 | /test 5 | -------------------------------------------------------------------------------- /experimental/packages/otlp-proto-exporter-base/.npmignore: -------------------------------------------------------------------------------- 1 | /bin 2 | /coverage 3 | /doc 4 | /test 5 | -------------------------------------------------------------------------------- /selenium-tests/example.env: -------------------------------------------------------------------------------- 1 | BROWSERSTACK_USER="YOUR USER" 2 | BROWSERSTACK_KEY="YOUR BROWSER STACK KEY" -------------------------------------------------------------------------------- /experimental/packages/opentelemetry-browser-detector/.npmignore: -------------------------------------------------------------------------------- 1 | /bin 2 | /coverage 3 | /doc 4 | /test 5 | -------------------------------------------------------------------------------- /experimental/packages/opentelemetry-exporter-prometheus/.npmignore: -------------------------------------------------------------------------------- 1 | /bin 2 | /coverage 3 | /doc 4 | /test 5 | -------------------------------------------------------------------------------- /experimental/packages/opentelemetry-instrumentation/.npmignore: -------------------------------------------------------------------------------- 1 | /bin 2 | /coverage 3 | /doc 4 | /test 5 | -------------------------------------------------------------------------------- /experimental/packages/otlp-grpc-exporter-base/.gitignore: -------------------------------------------------------------------------------- 1 | src/generated/* 2 | !src/generated/.gitkeep 3 | -------------------------------------------------------------------------------- /experimental/packages/otlp-proto-exporter-base/.gitignore: -------------------------------------------------------------------------------- 1 | src/generated/* 2 | !src/generated/.gitkeep 3 | -------------------------------------------------------------------------------- /examples/opentelemetry-web/.eslintrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | env: { 3 | browser: true 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /experimental/packages/opentelemetry-instrumentation-fetch/.npmignore: -------------------------------------------------------------------------------- 1 | /bin 2 | /coverage 3 | /doc 4 | /test 5 | -------------------------------------------------------------------------------- /experimental/packages/opentelemetry-instrumentation-grpc/.npmignore: -------------------------------------------------------------------------------- 1 | /bin 2 | /coverage 3 | /doc 4 | /test 5 | -------------------------------------------------------------------------------- /experimental/packages/opentelemetry-instrumentation-http/.npmignore: -------------------------------------------------------------------------------- 1 | /bin 2 | /coverage 3 | /doc 4 | /test 5 | -------------------------------------------------------------------------------- /experimental/packages/opentelemetry-exporter-metrics-otlp-grpc/.npmignore: -------------------------------------------------------------------------------- 1 | /bin 2 | /coverage 3 | /doc 4 | /test 5 | -------------------------------------------------------------------------------- /experimental/packages/opentelemetry-exporter-metrics-otlp-http/.npmignore: -------------------------------------------------------------------------------- 1 | /bin 2 | /coverage 3 | /doc 4 | /test 5 | -------------------------------------------------------------------------------- /experimental/packages/opentelemetry-exporter-metrics-otlp-proto/.npmignore: -------------------------------------------------------------------------------- 1 | /bin 2 | /coverage 3 | /doc 4 | /test 5 | -------------------------------------------------------------------------------- /packages/opentelemetry-sdk-trace-node/.gitignore: -------------------------------------------------------------------------------- 1 | # Dependency directories 2 | !test/instrumentation/node_modules 3 | -------------------------------------------------------------------------------- /experimental/packages/opentelemetry-instrumentation-xml-http-request/.npmignore: -------------------------------------------------------------------------------- 1 | /bin 2 | /coverage 3 | /doc 4 | /test 5 | -------------------------------------------------------------------------------- /experimental/packages/opentelemetry-instrumentation/.gitignore: -------------------------------------------------------------------------------- 1 | # Dependency directories 2 | !test/node/node_modules 3 | -------------------------------------------------------------------------------- /examples/grpc-js/images/jaeger.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oldclesleycode/opentelemetry-js/main/examples/grpc-js/images/jaeger.png -------------------------------------------------------------------------------- /examples/grpc-js/images/zipkin.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oldclesleycode/opentelemetry-js/main/examples/grpc-js/images/zipkin.png -------------------------------------------------------------------------------- /examples/http/images/jaeger-ui.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oldclesleycode/opentelemetry-js/main/examples/http/images/jaeger-ui.png -------------------------------------------------------------------------------- /examples/http/images/zipkin-ui.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oldclesleycode/opentelemetry-js/main/examples/http/images/zipkin-ui.png -------------------------------------------------------------------------------- /examples/https/images/jaeger-ui.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oldclesleycode/opentelemetry-js/main/examples/https/images/jaeger-ui.png -------------------------------------------------------------------------------- /examples/https/images/zipkin-ui.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oldclesleycode/opentelemetry-js/main/examples/https/images/zipkin-ui.png -------------------------------------------------------------------------------- /.markdownlint.json: -------------------------------------------------------------------------------- 1 | { 2 | "MD013": false, 3 | "MD024": false, 4 | "MD033": false, 5 | "MD041": false, 6 | "MD026": false 7 | } 8 | -------------------------------------------------------------------------------- /selenium-tests/tests-helpers/constants.js: -------------------------------------------------------------------------------- 1 | const TIMEOUT_ELEMENT_MS = 5000; 2 | 3 | module.exports = { 4 | TIMEOUT_ELEMENT_MS, 5 | }; 6 | -------------------------------------------------------------------------------- /examples/otlp-exporter-node/images/spans.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oldclesleycode/opentelemetry-js/main/examples/otlp-exporter-node/images/spans.png -------------------------------------------------------------------------------- /examples/opentracing-shim/images/jaeger-ui.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oldclesleycode/opentelemetry-js/main/examples/opentracing-shim/images/jaeger-ui.png -------------------------------------------------------------------------------- /examples/opentracing-shim/images/zipkin-ui.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oldclesleycode/opentelemetry-js/main/examples/opentracing-shim/images/zipkin-ui.png -------------------------------------------------------------------------------- /examples/basic-tracer-node/images/jaeger-ui-list.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oldclesleycode/opentelemetry-js/main/examples/basic-tracer-node/images/jaeger-ui-list.png -------------------------------------------------------------------------------- /examples/basic-tracer-node/images/zipkin-ui-list.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oldclesleycode/opentelemetry-js/main/examples/basic-tracer-node/images/zipkin-ui-list.png -------------------------------------------------------------------------------- /tsconfig.base.es5.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "./tsconfig.base.json", 3 | "compilerOptions": { 4 | "target": "es5", 5 | "downlevelIteration": true 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /examples/basic-tracer-node/images/jaeger-ui-detail.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oldclesleycode/opentelemetry-js/main/examples/basic-tracer-node/images/jaeger-ui-detail.png -------------------------------------------------------------------------------- /examples/basic-tracer-node/images/zipkin-ui-detail.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oldclesleycode/opentelemetry-js/main/examples/basic-tracer-node/images/zipkin-ui-detail.png -------------------------------------------------------------------------------- /examples/opentelemetry-web/images/xml-http-request.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oldclesleycode/opentelemetry-js/main/examples/opentelemetry-web/images/xml-http-request.png -------------------------------------------------------------------------------- /experimental/examples/.eslintrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | "env": { 3 | "mocha": true, 4 | "node": true 5 | }, 6 | ...require('../../eslint.base.js') 7 | } 8 | -------------------------------------------------------------------------------- /packages/template/README.md: -------------------------------------------------------------------------------- 1 | # `@opentelemetry/template` 2 | 3 | > TODO: description 4 | 5 | ## Usage 6 | 7 | ```typescript 8 | // TODO: DEMONSTRATE API 9 | ``` 10 | -------------------------------------------------------------------------------- /tsconfig.base.esm.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "./tsconfig.base.es5.json", 3 | "compilerOptions": { 4 | "module": "ES6", 5 | "moduleResolution": "node" 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /experimental/examples/prometheus/images/prom-counter.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oldclesleycode/opentelemetry-js/main/experimental/examples/prometheus/images/prom-counter.png -------------------------------------------------------------------------------- /experimental/packages/sdk-logs/.eslintrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | env: { 3 | mocha: true, 4 | node: true, 5 | }, 6 | ...require('../../../eslint.base.js'), 7 | }; 8 | -------------------------------------------------------------------------------- /packages/opentelemetry-propagator-jaeger/jaeger-tracing.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oldclesleycode/opentelemetry-js/main/packages/opentelemetry-propagator-jaeger/jaeger-tracing.png -------------------------------------------------------------------------------- /packages/sdk-metrics/.eslintrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | "env": { 3 | "mocha": true, 4 | "node": true 5 | }, 6 | ...require('../../eslint.base.js') 7 | } 8 | -------------------------------------------------------------------------------- /prettier.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | arrowParens: 'avoid', 3 | printWidth: 80, 4 | trailingComma: 'es5', 5 | tabWidth: 2, 6 | semi: true, 7 | singleQuote: true, 8 | }; 9 | -------------------------------------------------------------------------------- /examples/opentracing-shim/utils.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | async function sleep(ms) { 4 | return new Promise((resolve) => setTimeout(resolve, ms)); 5 | } 6 | 7 | exports.sleep = sleep; 8 | -------------------------------------------------------------------------------- /experimental/examples/opencensus-shim/images/jaeger-trace.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oldclesleycode/opentelemetry-js/main/experimental/examples/opencensus-shim/images/jaeger-trace.png -------------------------------------------------------------------------------- /experimental/examples/opencensus-shim/images/prom-metrics.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oldclesleycode/opentelemetry-js/main/experimental/examples/opencensus-shim/images/prom-metrics.png -------------------------------------------------------------------------------- /experimental/examples/prometheus/images/prom-updowncounter.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oldclesleycode/opentelemetry-js/main/experimental/examples/prometheus/images/prom-updowncounter.png -------------------------------------------------------------------------------- /packages/opentelemetry-exporter-jaeger/.eslintrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | "env": { 3 | "mocha": true, 4 | "node": true 5 | }, 6 | ...require('../../eslint.base.js') 7 | } 8 | -------------------------------------------------------------------------------- /packages/opentelemetry-sdk-trace-node/.eslintrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | "env": { 3 | "mocha": true, 4 | "node": true 5 | }, 6 | ...require('../../eslint.base.js') 7 | } 8 | -------------------------------------------------------------------------------- /experimental/packages/shim-opencensus/.eslintrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | "env": { 3 | "mocha": true, 4 | "node": true 5 | }, 6 | ...require('../../../eslint.base.js') 7 | } 8 | -------------------------------------------------------------------------------- /packages/opentelemetry-context-async-hooks/.eslintrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | "env": { 3 | "mocha": true, 4 | "node": true 5 | }, 6 | ...require('../../eslint.base.js') 7 | } 8 | -------------------------------------------------------------------------------- /packages/opentelemetry-context-zone/.eslintrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | "env": { 3 | "browser": true, 4 | "commonjs": true 5 | }, 6 | ...require('../../eslint.base.js') 7 | } 8 | -------------------------------------------------------------------------------- /packages/opentelemetry-sdk-trace-web/.eslintrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | "env": { 3 | "mocha": true, 4 | "browser": true, 5 | }, 6 | ...require('../../eslint.base.js') 7 | } 8 | -------------------------------------------------------------------------------- /packages/opentelemetry-shim-opentracing/.eslintrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | "env": { 3 | "mocha": true, 4 | "node": true 5 | }, 6 | ...require('../../eslint.base.js') 7 | } 8 | -------------------------------------------------------------------------------- /api/.eslintrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | "env": { 3 | "mocha": true, 4 | "commonjs": true, 5 | "shared-node-browser": true 6 | }, 7 | ...require('../eslint.base.js') 8 | } 9 | -------------------------------------------------------------------------------- /experimental/packages/opentelemetry-sdk-node/.eslintrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | "env": { 3 | "mocha": true, 4 | "node": true 5 | }, 6 | ...require('../../../eslint.base.js') 7 | } 8 | -------------------------------------------------------------------------------- /experimental/packages/opentelemetry-instrumentation-fetch/images/trace1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oldclesleycode/opentelemetry-js/main/experimental/packages/opentelemetry-instrumentation-fetch/images/trace1.png -------------------------------------------------------------------------------- /experimental/packages/opentelemetry-instrumentation-fetch/images/trace2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oldclesleycode/opentelemetry-js/main/experimental/packages/opentelemetry-instrumentation-fetch/images/trace2.png -------------------------------------------------------------------------------- /experimental/packages/opentelemetry-instrumentation-fetch/images/trace3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oldclesleycode/opentelemetry-js/main/experimental/packages/opentelemetry-instrumentation-fetch/images/trace3.png -------------------------------------------------------------------------------- /experimental/packages/opentelemetry-exporter-prometheus/.eslintrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | "env": { 3 | "mocha": true, 4 | "node": true 5 | }, 6 | ...require('../../../eslint.base.js') 7 | } 8 | -------------------------------------------------------------------------------- /experimental/packages/opentelemetry-instrumentation-grpc/.eslintrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | "env": { 3 | "mocha": true, 4 | "node": true 5 | }, 6 | ...require('../../../eslint.base.js') 7 | } 8 | -------------------------------------------------------------------------------- /experimental/packages/opentelemetry-instrumentation-http/.eslintrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | "env": { 3 | "mocha": true, 4 | "node": true 5 | }, 6 | ...require('../../../eslint.base.js') 7 | } 8 | -------------------------------------------------------------------------------- /experimental/packages/api-events/.eslintrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | "env": { 3 | "mocha": true, 4 | "commonjs": true, 5 | "shared-node-browser": true 6 | }, 7 | ...require('../../../eslint.base.js') 8 | } 9 | -------------------------------------------------------------------------------- /experimental/packages/api-logs/.eslintrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | "env": { 3 | "mocha": true, 4 | "commonjs": true, 5 | "shared-node-browser": true 6 | }, 7 | ...require('../../../eslint.base.js') 8 | } 9 | -------------------------------------------------------------------------------- /experimental/packages/opentelemetry-instrumentation/test/node/node_modules/test-esm-module/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "test-esm-module", 3 | "version": "0.1.0", 4 | "main": "./src/index.js", 5 | "type": "module" 6 | } 7 | -------------------------------------------------------------------------------- /experimental/packages/opentelemetry-instrumentation-grpc/test/fixtures/buf.yaml: -------------------------------------------------------------------------------- 1 | version: v1 2 | lint: 3 | use: 4 | - DEFAULT 5 | breaking: 6 | use: 7 | - FILE 8 | deps: 9 | - buf.build/googleapis/googleapis 10 | -------------------------------------------------------------------------------- /experimental/packages/opentelemetry-instrumentation-xml-http-request/images/cors.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oldclesleycode/opentelemetry-js/main/experimental/packages/opentelemetry-instrumentation-xml-http-request/images/cors.jpg -------------------------------------------------------------------------------- /experimental/packages/opentelemetry-instrumentation-xml-http-request/images/main.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oldclesleycode/opentelemetry-js/main/experimental/packages/opentelemetry-instrumentation-xml-http-request/images/main.jpg -------------------------------------------------------------------------------- /.editorconfig: -------------------------------------------------------------------------------- 1 | # http://editorconfig.org 2 | 3 | root = true 4 | 5 | [*] 6 | indent_style = space 7 | indent_size = 2 8 | end_of_line = lf 9 | charset = utf-8 10 | trim_trailing_whitespace = true 11 | insert_final_newline = true 12 | -------------------------------------------------------------------------------- /experimental/packages/opentelemetry-instrumentation-xml-http-request/.eslintrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | "env": { 3 | "mocha": true, 4 | "browser": true, 5 | }, 6 | ...require('../../../eslint.base.js') 7 | } 8 | -------------------------------------------------------------------------------- /experimental/packages/opentelemetry-instrumentation-xml-http-request/images/request.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oldclesleycode/opentelemetry-js/main/experimental/packages/opentelemetry-instrumentation-xml-http-request/images/request.jpg -------------------------------------------------------------------------------- /packages/opentelemetry-core/test/trace/fixtures/test-package/index.js: -------------------------------------------------------------------------------- 1 | Object.defineProperty(exports, "__esModule", { value: true }); 2 | exports.externallyExportedFunction = function externallyExportedFunction() { 3 | return true; 4 | } 5 | -------------------------------------------------------------------------------- /packages/opentelemetry-propagator-jaeger/.eslintrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | "env": { 3 | "mocha": true, 4 | "commonjs": true, 5 | "browser": true, 6 | }, 7 | ...require('../../eslint.base.js') 8 | } 9 | -------------------------------------------------------------------------------- /experimental/packages/exporter-logs-otlp-grpc/.eslintrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | "env": { 3 | "mocha": true, 4 | "commonjs": true, 5 | "node": true, 6 | }, 7 | ...require('../../../eslint.base.js') 8 | } 9 | -------------------------------------------------------------------------------- /experimental/packages/exporter-logs-otlp-proto/.eslintrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | "env": { 3 | "mocha": true, 4 | "commonjs": true, 5 | "node": true, 6 | }, 7 | ...require('../../../eslint.base.js') 8 | } 9 | -------------------------------------------------------------------------------- /experimental/packages/exporter-trace-otlp-grpc/.eslintrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | "env": { 3 | "mocha": true, 4 | "commonjs": true, 5 | "node": true, 6 | }, 7 | ...require('../../../eslint.base.js') 8 | } 9 | -------------------------------------------------------------------------------- /experimental/packages/exporter-trace-otlp-proto/.eslintrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | "env": { 3 | "mocha": true, 4 | "commonjs": true, 5 | "node": true, 6 | }, 7 | ...require('../../../eslint.base.js') 8 | } 9 | -------------------------------------------------------------------------------- /experimental/packages/otlp-grpc-exporter-base/.eslintrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | "env": { 3 | "mocha": true, 4 | "commonjs": true, 5 | "node": true, 6 | }, 7 | ...require('../../../eslint.base.js') 8 | } 9 | -------------------------------------------------------------------------------- /experimental/packages/otlp-proto-exporter-base/.eslintrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | "env": { 3 | "mocha": true, 4 | "commonjs": true, 5 | "node": true, 6 | }, 7 | ...require('../../../eslint.base.js') 8 | } 9 | -------------------------------------------------------------------------------- /experimental/packages/exporter-logs-otlp-http/.eslintrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | env: { 3 | mocha: true, 4 | commonjs: true, 5 | node: true, 6 | browser: true, 7 | }, 8 | ...require('../../../eslint.base.js'), 9 | }; 10 | -------------------------------------------------------------------------------- /experimental/packages/opentelemetry-browser-detector/.eslintrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | "env": { 3 | "mocha": true, 4 | "commonjs": true, 5 | "node": true, 6 | }, 7 | ...require('../../../eslint.base.js') 8 | } 9 | -------------------------------------------------------------------------------- /experimental/packages/otlp-transformer/.eslintrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | "env": { 3 | "mocha": true, 4 | "commonjs": true, 5 | "shared-node-browser": true 6 | }, 7 | ...require('../../../eslint.base.js') 8 | } 9 | -------------------------------------------------------------------------------- /packages/opentelemetry-core/test/trace/fixtures/test-package/foo/bar/internal.js: -------------------------------------------------------------------------------- 1 | Object.defineProperty(exports, "__esModule", { value: true }); 2 | exports.internallyExportedFunction = function internallyExportedFunction() { 3 | return true; 4 | } 5 | -------------------------------------------------------------------------------- /packages/template/.eslintrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | "env": { 3 | "mocha": true, 4 | "commonjs": true, 5 | "node": true, 6 | "browser": true 7 | }, 8 | ...require('../../eslint.base.js') 9 | } 10 | -------------------------------------------------------------------------------- /examples/.eslintrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | env: { 3 | mocha: true, 4 | node: true, 5 | es6: true 6 | }, 7 | parserOptions: { 8 | ecmaVersion: '2021' 9 | }, 10 | rules: { 11 | "header/header": "off" 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /experimental/packages/opentelemetry-exporter-metrics-otlp-grpc/.eslintrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | "env": { 3 | "mocha": true, 4 | "commonjs": true, 5 | "node": true, 6 | }, 7 | ...require('../../../eslint.base.js') 8 | } 9 | -------------------------------------------------------------------------------- /experimental/packages/opentelemetry-exporter-metrics-otlp-proto/.eslintrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | "env": { 3 | "mocha": true, 4 | "commonjs": true, 5 | "node": true, 6 | }, 7 | ...require('../../../eslint.base.js') 8 | } 9 | -------------------------------------------------------------------------------- /packages/opentelemetry-core/.eslintrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | "env": { 3 | "mocha": true, 4 | "commonjs": true, 5 | "node": true, 6 | "browser": true 7 | }, 8 | ...require('../../eslint.base.js') 9 | } 10 | -------------------------------------------------------------------------------- /packages/opentelemetry-resources/.eslintrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | "env": { 3 | "mocha": true, 4 | "commonjs": true, 5 | "node": true, 6 | "browser": true 7 | }, 8 | ...require('../../eslint.base.js') 9 | } 10 | -------------------------------------------------------------------------------- /packages/opentelemetry-exporter-zipkin/.eslintrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | "env": { 3 | "mocha": true, 4 | "commonjs": true, 5 | "node": true, 6 | "browser": true 7 | }, 8 | ...require('../../eslint.base.js') 9 | } 10 | -------------------------------------------------------------------------------- /packages/opentelemetry-propagator-b3/.eslintrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | "env": { 3 | "mocha": true, 4 | "commonjs": true, 5 | "node": true, 6 | "browser": true 7 | }, 8 | ...require('../../eslint.base.js') 9 | } 10 | -------------------------------------------------------------------------------- /packages/opentelemetry-sdk-trace-base/.eslintrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | "env": { 3 | "mocha": true, 4 | "commonjs": true, 5 | "node": true, 6 | "browser": true 7 | }, 8 | ...require('../../eslint.base.js') 9 | } 10 | -------------------------------------------------------------------------------- /experimental/packages/otlp-exporter-base/.eslintrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | "env": { 3 | "mocha": true, 4 | "commonjs": true, 5 | "node": true, 6 | "browser": true 7 | }, 8 | ...require('../../../eslint.base.js') 9 | } 10 | -------------------------------------------------------------------------------- /packages/opentelemetry-semantic-conventions/.eslintrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | "env": { 3 | "mocha": true, 4 | "commonjs": true, 5 | "node": true, 6 | "browser": true 7 | }, 8 | ...require('../../eslint.base.js') 9 | } 10 | -------------------------------------------------------------------------------- /tsconfig.base.esnext.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "./tsconfig.base.json", 3 | "compilerOptions": { 4 | "module": "esnext", 5 | // target should be aligned with tsconfig.base.json 6 | "target": "es2017", 7 | "moduleResolution": "node" 8 | }, 9 | } 10 | -------------------------------------------------------------------------------- /experimental/packages/exporter-trace-otlp-http/.eslintrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | "env": { 3 | "mocha": true, 4 | "commonjs": true, 5 | "node": true, 6 | "browser": true 7 | }, 8 | ...require('../../../eslint.base.js') 9 | } 10 | -------------------------------------------------------------------------------- /api/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 | -------------------------------------------------------------------------------- /experimental/packages/opentelemetry-instrumentation/.eslintrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | "env": { 3 | "mocha": true, 4 | "commonjs": true, 5 | "node": true, 6 | "browser": true 7 | }, 8 | ...require('../../../eslint.base.js') 9 | } 10 | -------------------------------------------------------------------------------- /packages/template/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 | -------------------------------------------------------------------------------- /experimental/packages/opentelemetry-instrumentation-fetch/.eslintrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | "env": { 3 | "mocha": true, 4 | "commonjs": true, 5 | "node": true, 6 | "browser": true 7 | }, 8 | ...require('../../../eslint.base.js') 9 | } 10 | -------------------------------------------------------------------------------- /experimental/packages/opentelemetry-exporter-metrics-otlp-http/.eslintrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | "env": { 3 | "mocha": true, 4 | "commonjs": true, 5 | "node": true, 6 | "browser": true 7 | }, 8 | ...require('../../../eslint.base.js') 9 | } 10 | -------------------------------------------------------------------------------- /experimental/packages/opentelemetry-instrumentation/test/node/node_modules/test-esm-module/src/index.js: -------------------------------------------------------------------------------- 1 | export const testFunction = () => { 2 | return 'original'; 3 | }; 4 | 5 | export const secondTestFunction = () => { 6 | return 'original'; 7 | }; 8 | 9 | export const testConstant = 42; 10 | -------------------------------------------------------------------------------- /packages/opentelemetry-context-zone-peer-dep/.eslintrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | "env": { 3 | "mocha": true, 4 | "browser": true, 5 | "commonjs": true 6 | }, 7 | "globals": { 8 | "Zone": "readonly" 9 | }, 10 | ...require('../../eslint.base.js') 11 | } 12 | -------------------------------------------------------------------------------- /packages/template/tsconfig.esm.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../tsconfig.base.esm.json", 3 | "compilerOptions": { 4 | "rootDir": "src", 5 | "outDir": "build/esm", 6 | "tsBuildInfoFile": "build/esm/tsconfig.esm.tsbuildinfo" 7 | }, 8 | "include": [ 9 | "src/**/*.ts" 10 | ] 11 | } 12 | -------------------------------------------------------------------------------- /api/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 | -------------------------------------------------------------------------------- /examples/opentelemetry-web/docker/prometheus.yaml: -------------------------------------------------------------------------------- 1 | global: 2 | scrape_interval: 15s # Default is every 1 minute. 3 | 4 | scrape_configs: 5 | - job_name: 'collector' 6 | # metrics_path defaults to '/metrics' 7 | # scheme defaults to 'http'. 8 | static_configs: 9 | - targets: ['collector:9464'] 10 | -------------------------------------------------------------------------------- /examples/otlp-exporter-node/docker/prometheus.yaml: -------------------------------------------------------------------------------- 1 | global: 2 | scrape_interval: 15s # Default is every 1 minute. 3 | 4 | scrape_configs: 5 | - job_name: 'collector' 6 | # metrics_path defaults to '/metrics' 7 | # scheme defaults to 'http'. 8 | static_configs: 9 | - targets: ['collector:9464'] 10 | -------------------------------------------------------------------------------- /experimental/examples/prometheus/prometheus.yml: -------------------------------------------------------------------------------- 1 | global: 2 | scrape_interval: 15s # Default is every 1 minute. 3 | 4 | scrape_configs: 5 | - job_name: 'opentelemetry' 6 | # metrics_path defaults to '/metrics' 7 | # scheme defaults to 'http'. 8 | static_configs: 9 | - targets: ['localhost:9464'] 10 | -------------------------------------------------------------------------------- /experimental/packages/opentelemetry-instrumentation-grpc/test/fixtures/buf.gen.yaml: -------------------------------------------------------------------------------- 1 | version: v1 2 | plugins: 3 | - plugin: buf.build/community/timostamm-protobuf-ts:v2.9.0 4 | out: ../../test/proto/ts/fixtures 5 | opt: 6 | - long_type_string 7 | - generate_dependencies 8 | - ts_nocheck 9 | 10 | -------------------------------------------------------------------------------- /packages/opentelemetry-semantic-conventions/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 | -------------------------------------------------------------------------------- /packages/template/tsconfig.esnext.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../tsconfig.base.esnext.json", 3 | "compilerOptions": { 4 | "rootDir": "src", 5 | "outDir": "build/esnext", 6 | "tsBuildInfoFile": "build/esnext/tsconfig.esnext.tsbuildinfo" 7 | }, 8 | "include": [ 9 | "src/**/*.ts" 10 | ] 11 | } 12 | -------------------------------------------------------------------------------- /api/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 | -------------------------------------------------------------------------------- /packages/opentelemetry-core/test/trace/fixtures/test-package/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "test-package", 3 | "version": "0.1.1", 4 | "description": "", 5 | "main": "index.js", 6 | "scripts": { 7 | "test": "echo \"Error: no test specified\" && exit 1" 8 | }, 9 | "author": "", 10 | "license": "ISC" 11 | } 12 | -------------------------------------------------------------------------------- /codecov.yml: -------------------------------------------------------------------------------- 1 | codecov: 2 | notify: 3 | require_ci_to_pass: no 4 | comment: 5 | layout: "header, changes, diff, files" 6 | behavior: default 7 | coverage: 8 | status: 9 | patch: 10 | default: 11 | target: 80% 12 | project: 13 | default: 14 | target: auto 15 | threshold: 1% 16 | -------------------------------------------------------------------------------- /selenium-tests/webpack.dev.js: -------------------------------------------------------------------------------- 1 | const { merge } = require('webpack-merge'); 2 | const common = require('./webpack.common.js'); 3 | const path = require('path'); 4 | 5 | module.exports = merge(common, { 6 | mode: 'development', 7 | // devtool: 'inline-source-map', 8 | devServer: { 9 | static: path.resolve(__dirname, 'pages'), 10 | }, 11 | }); -------------------------------------------------------------------------------- /packages/opentelemetry-semantic-conventions/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 | -------------------------------------------------------------------------------- /experimental/backwards-compatibility/node14/index.ts: -------------------------------------------------------------------------------- 1 | import {NodeSDK, api} from '@opentelemetry/sdk-node'; 2 | import {ConsoleSpanExporter} from '@opentelemetry/sdk-trace-base'; 3 | 4 | const sdk = new NodeSDK({ 5 | traceExporter: new ConsoleSpanExporter(), 6 | autoDetectResources: false, 7 | }); 8 | sdk.start(); 9 | 10 | api.trace.getTracer('test'); 11 | -------------------------------------------------------------------------------- /experimental/backwards-compatibility/node16/index.ts: -------------------------------------------------------------------------------- 1 | import {NodeSDK, api} from '@opentelemetry/sdk-node'; 2 | import {ConsoleSpanExporter} from '@opentelemetry/sdk-trace-base'; 3 | 4 | const sdk = new NodeSDK({ 5 | traceExporter: new ConsoleSpanExporter(), 6 | autoDetectResources: false, 7 | }); 8 | sdk.start(); 9 | 10 | api.trace.getTracer('test'); 11 | -------------------------------------------------------------------------------- /packages/opentelemetry-context-async-hooks/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 | } 17 | -------------------------------------------------------------------------------- /packages/opentelemetry-semantic-conventions/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 | -------------------------------------------------------------------------------- /experimental/packages/api-events/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 | } 18 | -------------------------------------------------------------------------------- /experimental/packages/api-logs/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 | } 18 | -------------------------------------------------------------------------------- /.github/workflows/label-releases.yml: -------------------------------------------------------------------------------- 1 | on: 2 | pull_request_target: 3 | branches: 4 | - main 5 | 6 | jobs: 7 | label-release: 8 | if: ${{ startsWith(github.event.pull_request.title, 'release:') }} 9 | runs-on: ubuntu-latest 10 | steps: 11 | - run: echo this is a release PR 12 | - run: gh pr edit ${{ github.event.pull_request.number }} --add-label release 13 | -------------------------------------------------------------------------------- /.nycrc: -------------------------------------------------------------------------------- 1 | { 2 | "produceSourceMap": false, 3 | "extension": [ 4 | ".ts" 5 | ], 6 | "exclude": [ 7 | "**/*.d.ts", 8 | "build/**/*.*", 9 | "src/index.ts", 10 | "src/platform/**/index.ts", 11 | "src/version.ts", 12 | "test/**/*.*", 13 | ".eslintrc.js", 14 | "karma.conf.js", 15 | "webpack/*.js", 16 | "src/generated/**" 17 | ], 18 | "all": true 19 | } 20 | -------------------------------------------------------------------------------- /.gitmodules: -------------------------------------------------------------------------------- 1 | [submodule "experimental/packages/otlp-grpc-exporter-base/protos"] 2 | path = experimental/packages/otlp-grpc-exporter-base/protos 3 | url = https://github.com/open-telemetry/opentelemetry-proto.git 4 | [submodule "experimental/packages/otlp-proto-exporter-base/protos"] 5 | path = experimental/packages/otlp-proto-exporter-base/protos 6 | url = https://github.com/open-telemetry/opentelemetry-proto.git 7 | -------------------------------------------------------------------------------- /experimental/packages/api-events/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 | } 17 | -------------------------------------------------------------------------------- /experimental/packages/api-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 | } 17 | -------------------------------------------------------------------------------- /experimental/packages/opentelemetry-instrumentation-grpc/test/fixtures/buf.lock: -------------------------------------------------------------------------------- 1 | # Generated by buf. DO NOT EDIT. 2 | version: v1 3 | deps: 4 | - remote: buf.build 5 | owner: googleapis 6 | repository: googleapis 7 | commit: cc916c31859748a68fd229a3c8d7a2e8 8 | digest: shake256:469b049d0eb04203d5272062636c078decefc96fec69739159c25d85349c50c34c7706918a8b216c5c27f76939df48452148cff8c5c3ae77fa6ba5c25c1b8bf8 9 | -------------------------------------------------------------------------------- /experimental/packages/api-events/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 | } 17 | -------------------------------------------------------------------------------- /experimental/packages/api-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 | } 17 | -------------------------------------------------------------------------------- /packages/opentelemetry-context-zone-peer-dep/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../tsconfig.base.json", 3 | "compilerOptions": { 4 | "outDir": "build", 5 | "rootDir": "." 6 | }, 7 | "files": [ 8 | "node_modules/zone.js/dist/zone.js.d.ts" 9 | ], 10 | "include": [ 11 | "src/**/*.ts", 12 | "test/**/*.ts" 13 | ], 14 | "references": [ 15 | { 16 | "path": "../../api" 17 | } 18 | ] 19 | } 20 | -------------------------------------------------------------------------------- /packages/opentelemetry-propagator-b3/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 | } 21 | -------------------------------------------------------------------------------- /packages/opentelemetry-core/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-semantic-conventions" 18 | } 19 | ] 20 | } 21 | -------------------------------------------------------------------------------- /packages/opentelemetry-propagator-jaeger/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 | } 21 | -------------------------------------------------------------------------------- /examples/https/docker/docker-compose.yml: -------------------------------------------------------------------------------- 1 | version: "3.8" 2 | services: 3 | # Jaeger 4 | jaeger-all-in-one: 5 | image: jaegertracing/all-in-one:1.37.0 6 | ports: 7 | - "16686:16686" # frontend 8 | - "14268:14268" # jaeger.thrift via HTTP 9 | - "6832:6832/udp" # jaeger.thrift via UDP (binary) 10 | # Zipkin 11 | zipkin-all-in-one: 12 | image: openzipkin/zipkin:latest 13 | ports: 14 | - "9411:9411" 15 | -------------------------------------------------------------------------------- /experimental/backwards-compatibility/node14/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../../tsconfig.base.es5.json", 3 | "compilerOptions": { 4 | "rootDir": ".", 5 | "outDir": "build" 6 | }, 7 | "include": [ 8 | "index.ts" 9 | ], 10 | "references": [ 11 | { 12 | "path": "../../../packages/opentelemetry-sdk-trace-base" 13 | }, 14 | { 15 | "path": "../../packages/opentelemetry-sdk-node" 16 | } 17 | ] 18 | } 19 | -------------------------------------------------------------------------------- /experimental/backwards-compatibility/node16/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../../tsconfig.base.es5.json", 3 | "compilerOptions": { 4 | "rootDir": ".", 5 | "outDir": "build" 6 | }, 7 | "include": [ 8 | "index.ts" 9 | ], 10 | "references": [ 11 | { 12 | "path": "../../../packages/opentelemetry-sdk-trace-base" 13 | }, 14 | { 15 | "path": "../../packages/opentelemetry-sdk-node" 16 | } 17 | ] 18 | } 19 | -------------------------------------------------------------------------------- /experimental/examples/logs/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "logs-example", 3 | "version": "0.43.0", 4 | "private": true, 5 | "scripts": { 6 | "start": "ts-node index.ts" 7 | }, 8 | "dependencies": { 9 | "@opentelemetry/api": "^1.6.0", 10 | "@opentelemetry/api-logs": "0.41.0", 11 | "@opentelemetry/sdk-logs": "0.41.0" 12 | }, 13 | "devDependencies": { 14 | "@types/node": "18.6.5", 15 | "ts-node": "^10.9.1" 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /packages/opentelemetry-context-zone/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../tsconfig.base.json", 3 | "compilerOptions": { 4 | "outDir": "build", 5 | "rootDir": "." 6 | }, 7 | "files": [ 8 | "node_modules/zone.js/dist/zone.js.d.ts" 9 | ], 10 | "include": [ 11 | "src/**/*.ts", 12 | "test/**/*.ts" 13 | ], 14 | "references": [ 15 | { 16 | "path": "../opentelemetry-context-zone-peer-dep" 17 | } 18 | ] 19 | } 20 | -------------------------------------------------------------------------------- /experimental/packages/otlp-exporter-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": "../../../packages/opentelemetry-core" 18 | } 19 | ] 20 | } 21 | -------------------------------------------------------------------------------- /experimental/packages/opentelemetry-instrumentation/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/sdk-metrics" 18 | } 19 | ] 20 | } 21 | -------------------------------------------------------------------------------- /experimental/examples/logs/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../../tsconfig.base.json", 3 | "compilerOptions": { 4 | "outDir": "build", 5 | "rootDir": "." 6 | }, 7 | "include": ["./index.ts"], 8 | "references": [ 9 | { 10 | "path": "../../../api" 11 | }, 12 | { 13 | "path": "../../../experimental/packages/api-logs" 14 | }, 15 | { 16 | "path": "../../../experimental/packages/sdk-logs" 17 | } 18 | ] 19 | } 20 | -------------------------------------------------------------------------------- /packages/opentelemetry-propagator-b3/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 | } 20 | -------------------------------------------------------------------------------- /packages/opentelemetry-core/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-semantic-conventions" 17 | } 18 | ] 19 | } 20 | -------------------------------------------------------------------------------- /packages/opentelemetry-propagator-jaeger/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 | } 20 | -------------------------------------------------------------------------------- /experimental/packages/opentelemetry-instrumentation-http/test/fixtures/regenerate.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env sh 2 | # 3 | # Usage: regenerate.sh 4 | # 5 | # regenerate.sh regenerates private key and certificate used in https tests and example 6 | # 7 | 8 | EXAMPLE_DIR="../../../../examples/https" 9 | openssl req -x509 -nodes -newkey rsa -keyout server-key.pem -out server-cert.pem -days 3650 -subj "/C=CL/ST=RM/L=OpenTelemetryTest/O=Root/OU=Test/CN=ca" 10 | cp ./server-*.pem "$EXAMPLE_DIR/" 11 | -------------------------------------------------------------------------------- /lerna.json: -------------------------------------------------------------------------------- 1 | { 2 | "version": "independent", 3 | "npmClient": "npm", 4 | "packages": [ 5 | "api", 6 | "packages/*", 7 | "experimental/packages/*", 8 | "experimental/examples/*", 9 | "experimental/backwards-compatibility/*", 10 | "integration-tests/*", 11 | "selenium-tests", 12 | "examples/otlp-exporter-node", 13 | "examples/opentelemetry-web", 14 | "examples/http", 15 | "examples/https", 16 | "examples/esm-http-ts" 17 | ] 18 | } 19 | -------------------------------------------------------------------------------- /packages/opentelemetry-propagator-b3/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 | } 20 | -------------------------------------------------------------------------------- /packages/opentelemetry-context-zone-peer-dep/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": "../../api" 17 | } 18 | ] 19 | } 20 | -------------------------------------------------------------------------------- /packages/opentelemetry-core/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-semantic-conventions" 17 | } 18 | ] 19 | } 20 | -------------------------------------------------------------------------------- /packages/opentelemetry-propagator-jaeger/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 | } 20 | -------------------------------------------------------------------------------- /packages/sdk-metrics/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 | } 24 | -------------------------------------------------------------------------------- /experimental/packages/otlp-exporter-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": "../../../packages/opentelemetry-core" 17 | } 18 | ] 19 | } 20 | -------------------------------------------------------------------------------- /experimental/packages/opentelemetry-instrumentation/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/sdk-metrics" 17 | } 18 | ] 19 | } 20 | -------------------------------------------------------------------------------- /selenium-tests/webpack.production.js: -------------------------------------------------------------------------------- 1 | const { merge } = require('webpack-merge'); 2 | const common = require('./webpack.common.js'); 3 | const TerserPlugin = require('terser-webpack-plugin'); 4 | 5 | module.exports = merge(common, { 6 | mode: 'production', 7 | optimization: { 8 | minimize: true, 9 | minimizer: [new TerserPlugin({ 10 | extractComments: false, 11 | terserOptions: { 12 | ie8: true, 13 | safari10: true, 14 | }, 15 | })], 16 | }, 17 | }); -------------------------------------------------------------------------------- /packages/opentelemetry-context-zone-peer-dep/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": "../../api" 17 | } 18 | ] 19 | } 20 | -------------------------------------------------------------------------------- /selenium-tests/pages/xhr/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 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 | --------------------------------------------------------------------------------