├── packages ├── template │ ├── src │ │ └── index.ts │ ├── .eslintignore │ ├── .npmignore │ ├── README.md │ ├── .eslintrc.js │ ├── tsconfig.json │ └── karma.conf.js ├── opentelemetry-api │ ├── .eslintignore │ ├── .eslintrc.js │ ├── tsconfig.json │ ├── tsconfig.docs.json │ ├── src │ │ ├── platform │ │ │ ├── index.ts │ │ │ ├── node │ │ │ │ ├── index.ts │ │ │ │ └── globalThis.ts │ │ │ └── browser │ │ │ │ ├── index.ts │ │ │ │ └── globalThis.ts │ │ ├── version.ts │ │ ├── baggage │ │ │ └── internal │ │ │ │ └── symbol.ts │ │ ├── trace │ │ │ ├── link_context.ts │ │ │ └── trace_flags.ts │ │ └── common │ │ │ └── Time.ts │ ├── test │ │ └── index-webpack.ts │ └── karma.conf.js ├── opentelemetry-core │ ├── .eslintignore │ ├── .npmignore │ ├── test │ │ └── trace │ │ │ └── fixtures │ │ │ └── test-package │ │ │ ├── index.js │ │ │ ├── foo │ │ │ └── bar │ │ │ │ ├── internal.js │ │ │ │ └── internal.d.ts │ │ │ └── package.json │ ├── .eslintrc.js │ ├── tsconfig.json │ └── src │ │ ├── platform │ │ ├── index.ts │ │ ├── browser │ │ │ ├── performance.ts │ │ │ ├── timer-util.ts │ │ │ ├── sdk-info.ts │ │ │ └── index.ts │ │ └── node │ │ │ ├── timer-util.ts │ │ │ ├── performance.ts │ │ │ ├── sdk-info.ts │ │ │ └── index.ts │ │ ├── version.ts │ │ └── ExportResult.ts ├── opentelemetry-node │ ├── .eslintignore │ ├── .npmignore │ ├── .gitignore │ ├── .eslintrc.js │ ├── tsconfig.json │ └── src │ │ ├── index.ts │ │ └── version.ts ├── opentelemetry-web │ ├── .eslintignore │ ├── .npmignore │ ├── .eslintrc.js │ ├── src │ │ ├── version.ts │ │ └── index.ts │ ├── tsconfig.json │ └── test │ │ └── index-webpack.ts ├── opentelemetry-api-metrics │ ├── .eslintignore │ ├── .eslintrc.js │ ├── tsconfig.json │ ├── tsconfig.docs.json │ ├── src │ │ ├── platform │ │ │ ├── index.ts │ │ │ ├── browser │ │ │ │ ├── index.ts │ │ │ │ └── globalThis.ts │ │ │ └── node │ │ │ │ ├── index.ts │ │ │ │ └── globalThis.ts │ │ ├── version.ts │ │ └── types │ │ │ ├── Observation.ts │ │ │ └── ObserverResult.ts │ └── test │ │ └── index-webpack.ts ├── opentelemetry-grpc-utils │ ├── .eslintignore │ ├── .npmignore │ ├── .eslintrc.js │ ├── test │ │ ├── fixtures │ │ │ └── grpc-test.proto │ │ └── index.ts │ ├── tsconfig.json │ └── src │ │ └── version.ts ├── opentelemetry-metrics │ ├── .eslintignore │ ├── .npmignore │ ├── .eslintrc.js │ ├── tsconfig.json │ └── src │ │ ├── version.ts │ │ └── export │ │ └── aggregators │ │ └── index.ts ├── opentelemetry-plugin-grpc │ ├── .eslintignore │ ├── .npmignore │ ├── .eslintrc.js │ ├── src │ │ ├── index.ts │ │ └── version.ts │ └── tsconfig.json ├── opentelemetry-plugin-http │ ├── .eslintignore │ ├── .npmignore │ ├── .eslintrc.js │ ├── tsconfig.json │ └── src │ │ ├── index.ts │ │ └── version.ts ├── opentelemetry-resources │ ├── .eslintignore │ ├── .npmignore │ ├── .eslintrc.js │ ├── tsconfig.json │ └── src │ │ ├── platform │ │ ├── index.ts │ │ ├── browser │ │ │ └── index.ts │ │ └── node │ │ │ ├── index.ts │ │ │ └── detectors │ │ │ └── index.ts │ │ ├── version.ts │ │ ├── index.ts │ │ └── config.ts ├── opentelemetry-sdk-node │ ├── .eslintignore │ ├── .eslintrc.js │ └── src │ │ └── version.ts ├── opentelemetry-context-base │ ├── .eslintignore │ ├── .npmignore │ ├── .eslintrc.js │ ├── tsconfig.json │ └── src │ │ ├── version.ts │ │ └── index.ts ├── opentelemetry-context-zone │ ├── .eslintignore │ ├── .eslintrc.js │ ├── tsconfig.json │ └── src │ │ ├── index.ts │ │ └── version.ts ├── opentelemetry-exporter-jaeger │ ├── .eslintignore │ ├── .npmignore │ ├── .eslintrc.js │ ├── tsconfig.json │ └── src │ │ ├── index.ts │ │ └── version.ts ├── opentelemetry-exporter-zipkin │ ├── .eslintignore │ ├── .npmignore │ ├── .eslintrc.js │ ├── tsconfig.json │ └── src │ │ ├── platform │ │ ├── index.ts │ │ ├── node │ │ │ └── index.ts │ │ └── browser │ │ │ └── index.ts │ │ ├── version.ts │ │ └── index.ts ├── opentelemetry-plugin-grpc-js │ ├── .eslintignore │ ├── .npmignore │ ├── .eslintrc.js │ ├── src │ │ ├── index.ts │ │ ├── server │ │ │ └── index.ts │ │ ├── client │ │ │ └── index.ts │ │ └── version.ts │ └── tsconfig.json ├── opentelemetry-plugin-https │ ├── .eslintignore │ ├── .npmignore │ ├── .eslintrc.js │ ├── test │ │ └── fixtures │ │ │ └── server-cert.pem │ ├── src │ │ ├── index.ts │ │ └── version.ts │ └── tsconfig.json ├── opentelemetry-propagator-b3 │ ├── .eslintignore │ ├── .npmignore │ ├── .eslintrc.js │ ├── tsconfig.json │ └── src │ │ ├── version.ts │ │ ├── index.ts │ │ └── common.ts ├── opentelemetry-shim-opentracing │ ├── .eslintignore │ ├── .npmignore │ ├── .eslintrc.js │ ├── tsconfig.json │ └── src │ │ ├── index.ts │ │ └── version.ts ├── opentelemetry-tracing │ ├── .eslintignore │ ├── .npmignore │ ├── .eslintrc.js │ ├── tsconfig.json │ ├── src │ │ └── version.ts │ └── test │ │ └── index-webpack.ts ├── opentelemetry-context-async-hooks │ ├── .eslintignore │ ├── .npmignore │ ├── .eslintrc.js │ ├── tsconfig.json │ └── src │ │ ├── index.ts │ │ └── version.ts ├── opentelemetry-context-zone-peer-dep │ ├── .eslintignore │ ├── .eslintrc.js │ ├── tsconfig.json │ ├── src │ │ ├── index.ts │ │ └── version.ts │ └── test │ │ └── index-webpack.ts ├── opentelemetry-exporter-collector │ ├── .eslintignore │ ├── .npmignore │ ├── .eslintrc.js │ ├── tsconfig.json │ └── src │ │ ├── platform │ │ ├── index.ts │ │ ├── browser │ │ │ └── index.ts │ │ └── node │ │ │ └── index.ts │ │ └── version.ts ├── opentelemetry-exporter-prometheus │ ├── .eslintignore │ ├── .npmignore │ ├── .eslintrc.js │ ├── tsconfig.json │ └── src │ │ ├── index.ts │ │ └── version.ts ├── opentelemetry-instrumentation-fetch │ ├── .eslintignore │ ├── .npmignore │ ├── images │ │ ├── trace1.png │ │ ├── trace2.png │ │ └── trace3.png │ ├── .eslintrc.js │ ├── src │ │ ├── index.ts │ │ ├── version.ts │ │ └── enums │ │ │ └── AttributeNames.ts │ ├── tsconfig.json │ └── test │ │ └── index-webpack.ts ├── opentelemetry-instrumentation-grpc │ ├── .eslintignore │ ├── .npmignore │ ├── .eslintrc.js │ ├── test │ │ └── fixtures │ │ │ └── grpc-test.proto │ ├── src │ │ ├── index.ts │ │ └── version.ts │ └── tsconfig.json ├── opentelemetry-instrumentation-http │ ├── .eslintignore │ ├── .npmignore │ ├── .eslintrc.js │ ├── test │ │ └── fixtures │ │ │ └── server-cert.pem │ ├── src │ │ ├── index.ts │ │ └── version.ts │ └── tsconfig.json ├── opentelemetry-instrumentation │ ├── .eslintignore │ ├── .npmignore │ ├── .gitignore │ ├── test │ │ └── node │ │ │ └── node_modules │ │ │ ├── random-module │ │ │ ├── package.json │ │ │ └── index.js │ │ │ ├── simple-module │ │ │ ├── package.json │ │ │ └── index.js │ │ │ ├── supported-module │ │ │ ├── package.json │ │ │ └── index.js │ │ │ ├── already-require-module │ │ │ ├── package.json │ │ │ └── index.js │ │ │ ├── notsupported-module │ │ │ ├── package.json │ │ │ └── index.js │ │ │ └── @opentelemetry │ │ │ ├── plugin-http-module │ │ │ ├── package.json │ │ │ ├── index.js │ │ │ └── http-module.js │ │ │ ├── plugin-simple-module │ │ │ ├── package.json │ │ │ └── index.js │ │ │ ├── plugin-supported-module │ │ │ ├── package.json │ │ │ └── index.js │ │ │ └── plugin-notsupported-module │ │ │ ├── package.json │ │ │ └── index.js │ ├── .eslintrc.js │ ├── tsconfig.json │ └── src │ │ ├── platform │ │ ├── index.ts │ │ ├── browser │ │ │ └── index.ts │ │ └── node │ │ │ └── index.ts │ │ ├── version.ts │ │ └── index.ts ├── opentelemetry-resource-detector-aws │ ├── .eslintignore │ ├── .npmignore │ ├── .eslintrc.js │ ├── tsconfig.json │ └── src │ │ ├── index.ts │ │ ├── version.ts │ │ └── detectors │ │ └── index.ts ├── opentelemetry-resource-detector-gcp │ ├── .eslintignore │ ├── .npmignore │ ├── .eslintrc.js │ ├── tsconfig.json │ └── src │ │ ├── detectors │ │ └── index.ts │ │ ├── version.ts │ │ └── index.ts ├── opentelemetry-semantic-conventions │ ├── .eslintignore │ ├── .npmignore │ ├── tsconfig.json │ ├── .eslintrc.js │ └── src │ │ ├── index.ts │ │ ├── version.ts │ │ └── trace │ │ ├── exception.ts │ │ └── index.ts ├── opentelemetry-exporter-collector-grpc │ ├── .eslintignore │ ├── .npmignore │ ├── .eslintrc.js │ ├── tsconfig.json │ └── src │ │ ├── index.ts │ │ └── version.ts ├── opentelemetry-exporter-collector-proto │ ├── .eslintignore │ ├── .npmignore │ ├── .eslintrc.js │ ├── tsconfig.json │ └── src │ │ ├── types.ts │ │ ├── index.ts │ │ └── version.ts └── opentelemetry-instrumentation-xml-http-request │ ├── .eslintignore │ ├── .npmignore │ ├── images │ ├── cors.jpg │ ├── main.jpg │ └── request.jpg │ ├── .eslintrc.js │ ├── src │ ├── index.ts │ ├── version.ts │ └── enums │ │ └── EventNames.ts │ ├── tsconfig.json │ └── test │ └── index-webpack.ts ├── .npmignore ├── examples ├── grpc │ └── images │ │ ├── jaeger.png │ │ └── zipkin.png ├── grpc-js │ └── images │ │ ├── jaeger.png │ │ └── zipkin.png ├── http │ └── images │ │ ├── jaeger-ui.png │ │ └── zipkin-ui.png ├── https │ ├── images │ │ ├── jaeger-ui.png │ │ └── zipkin-ui.png │ ├── server-cert.pem │ └── server-key.pem ├── metrics │ └── metrics │ │ ├── observer.png │ │ ├── observer_batch.png │ │ └── observer_batch2.png ├── prometheus │ ├── images │ │ ├── prom-counter.png │ │ └── prom-updowncounter.png │ ├── prometheus.yml │ └── package.json ├── tracer-web │ ├── images │ │ ├── document-load.png │ │ └── xml-http-request.png │ ├── .eslintrc │ └── examples │ │ ├── zipkin │ │ ├── index.html │ │ └── index.js │ │ ├── fetch │ │ └── index.html │ │ └── xml-http-request │ │ └── index.html ├── opentracing-shim │ ├── images │ │ ├── jaeger-ui.png │ │ └── zipkin-ui.png │ └── utils.js ├── collector-exporter-node │ ├── images │ │ └── spans.png │ └── docker │ │ ├── prometheus.yaml │ │ ├── collector-config.yaml │ │ └── docker-compose.yaml ├── 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 ├── getting-started ├── images │ ├── zipkin.png │ ├── prometheus.png │ ├── zipkin-trace.png │ └── prometheus-graph.png ├── example │ └── package.json ├── monitored-example │ └── package.json ├── ts-example │ ├── example │ │ └── package.json │ ├── monitored-example │ │ └── package.json │ └── traced-example │ │ └── tracing.ts └── traced-example │ ├── package.json │ └── tracing.js ├── tsconfig.es5.json ├── .markdownlint.json ├── .editorconfig ├── benchmark ├── index.js └── benchmark.js ├── codecov.yml ├── backwards-compatability ├── node10 │ ├── index.ts │ ├── tsconfig.json │ └── package.json ├── node12 │ ├── index.ts │ ├── tsconfig.json │ └── package.json └── node8 │ ├── index.ts │ ├── tsconfig.json │ └── package.json ├── .nycrc ├── .gitmodules ├── renovate.json ├── integration-tests └── propagation-validation-server │ ├── tsconfig.json │ └── package.json ├── .github ├── CODEOWNERS ├── ISSUE_TEMPLATE │ ├── bug_report.md │ └── discussion.md └── PULL_REQUEST_TEMPLATE.md ├── lerna.json ├── tsconfig.base.json └── metapackages ├── plugins-web-core └── package.json └── plugins-node-core └── package.json /packages/template/src/index.ts: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /packages/template/.eslintignore: -------------------------------------------------------------------------------- 1 | build 2 | 3 | -------------------------------------------------------------------------------- /.npmignore: -------------------------------------------------------------------------------- 1 | /bin 2 | /coverage 3 | /doc 4 | /test 5 | -------------------------------------------------------------------------------- /packages/opentelemetry-api/.eslintignore: -------------------------------------------------------------------------------- 1 | build 2 | -------------------------------------------------------------------------------- /packages/opentelemetry-core/.eslintignore: -------------------------------------------------------------------------------- 1 | build 2 | -------------------------------------------------------------------------------- /packages/opentelemetry-node/.eslintignore: -------------------------------------------------------------------------------- 1 | build 2 | -------------------------------------------------------------------------------- /packages/opentelemetry-web/.eslintignore: -------------------------------------------------------------------------------- 1 | build 2 | -------------------------------------------------------------------------------- /packages/opentelemetry-api-metrics/.eslintignore: -------------------------------------------------------------------------------- 1 | build 2 | -------------------------------------------------------------------------------- /packages/opentelemetry-grpc-utils/.eslintignore: -------------------------------------------------------------------------------- 1 | build 2 | -------------------------------------------------------------------------------- /packages/opentelemetry-metrics/.eslintignore: -------------------------------------------------------------------------------- 1 | build 2 | -------------------------------------------------------------------------------- /packages/opentelemetry-plugin-grpc/.eslintignore: -------------------------------------------------------------------------------- 1 | build 2 | -------------------------------------------------------------------------------- /packages/opentelemetry-plugin-http/.eslintignore: -------------------------------------------------------------------------------- 1 | build 2 | -------------------------------------------------------------------------------- /packages/opentelemetry-resources/.eslintignore: -------------------------------------------------------------------------------- 1 | build 2 | -------------------------------------------------------------------------------- /packages/opentelemetry-sdk-node/.eslintignore: -------------------------------------------------------------------------------- 1 | build 2 | -------------------------------------------------------------------------------- /packages/opentelemetry-context-base/.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-plugin-grpc-js/.eslintignore: -------------------------------------------------------------------------------- 1 | build 2 | -------------------------------------------------------------------------------- /packages/opentelemetry-plugin-https/.eslintignore: -------------------------------------------------------------------------------- 1 | build 2 | -------------------------------------------------------------------------------- /packages/opentelemetry-propagator-b3/.eslintignore: -------------------------------------------------------------------------------- 1 | build 2 | -------------------------------------------------------------------------------- /packages/opentelemetry-shim-opentracing/.eslintignore: -------------------------------------------------------------------------------- 1 | build 2 | -------------------------------------------------------------------------------- /packages/opentelemetry-tracing/.eslintignore: -------------------------------------------------------------------------------- 1 | build 2 | 3 | -------------------------------------------------------------------------------- /packages/opentelemetry-context-async-hooks/.eslintignore: -------------------------------------------------------------------------------- 1 | build 2 | -------------------------------------------------------------------------------- /packages/opentelemetry-context-zone-peer-dep/.eslintignore: -------------------------------------------------------------------------------- 1 | build 2 | -------------------------------------------------------------------------------- /packages/opentelemetry-exporter-collector/.eslintignore: -------------------------------------------------------------------------------- 1 | build 2 | -------------------------------------------------------------------------------- /packages/opentelemetry-exporter-prometheus/.eslintignore: -------------------------------------------------------------------------------- 1 | build 2 | -------------------------------------------------------------------------------- /packages/opentelemetry-instrumentation-fetch/.eslintignore: -------------------------------------------------------------------------------- 1 | build 2 | -------------------------------------------------------------------------------- /packages/opentelemetry-instrumentation-grpc/.eslintignore: -------------------------------------------------------------------------------- 1 | build 2 | -------------------------------------------------------------------------------- /packages/opentelemetry-instrumentation-http/.eslintignore: -------------------------------------------------------------------------------- 1 | build 2 | -------------------------------------------------------------------------------- /packages/opentelemetry-instrumentation/.eslintignore: -------------------------------------------------------------------------------- 1 | build 2 | 3 | -------------------------------------------------------------------------------- /packages/opentelemetry-resource-detector-aws/.eslintignore: -------------------------------------------------------------------------------- 1 | build 2 | -------------------------------------------------------------------------------- /packages/opentelemetry-resource-detector-gcp/.eslintignore: -------------------------------------------------------------------------------- 1 | build 2 | -------------------------------------------------------------------------------- /packages/opentelemetry-semantic-conventions/.eslintignore: -------------------------------------------------------------------------------- 1 | build 2 | -------------------------------------------------------------------------------- /packages/opentelemetry-exporter-collector-grpc/.eslintignore: -------------------------------------------------------------------------------- 1 | build 2 | -------------------------------------------------------------------------------- /packages/opentelemetry-exporter-collector-proto/.eslintignore: -------------------------------------------------------------------------------- 1 | build 2 | -------------------------------------------------------------------------------- /packages/template/.npmignore: -------------------------------------------------------------------------------- 1 | /bin 2 | /coverage 3 | /doc 4 | /test 5 | -------------------------------------------------------------------------------- /packages/opentelemetry-core/.npmignore: -------------------------------------------------------------------------------- 1 | /bin 2 | /coverage 3 | /doc 4 | /test 5 | -------------------------------------------------------------------------------- /packages/opentelemetry-instrumentation-xml-http-request/.eslintignore: -------------------------------------------------------------------------------- 1 | build 2 | -------------------------------------------------------------------------------- /packages/opentelemetry-metrics/.npmignore: -------------------------------------------------------------------------------- 1 | /bin 2 | /coverage 3 | /doc 4 | /test 5 | -------------------------------------------------------------------------------- /packages/opentelemetry-node/.npmignore: -------------------------------------------------------------------------------- 1 | /bin 2 | /coverage 3 | /doc 4 | /test 5 | -------------------------------------------------------------------------------- /packages/opentelemetry-tracing/.npmignore: -------------------------------------------------------------------------------- 1 | /bin 2 | /coverage 3 | /doc 4 | /test 5 | -------------------------------------------------------------------------------- /packages/opentelemetry-web/.npmignore: -------------------------------------------------------------------------------- 1 | /bin 2 | /coverage 3 | /doc 4 | /test 5 | -------------------------------------------------------------------------------- /packages/opentelemetry-context-base/.npmignore: -------------------------------------------------------------------------------- 1 | /bin 2 | /coverage 3 | /doc 4 | /test 5 | -------------------------------------------------------------------------------- /packages/opentelemetry-grpc-utils/.npmignore: -------------------------------------------------------------------------------- 1 | /bin 2 | /coverage 3 | /doc 4 | /test 5 | -------------------------------------------------------------------------------- /packages/opentelemetry-plugin-grpc/.npmignore: -------------------------------------------------------------------------------- 1 | /bin 2 | /coverage 3 | /doc 4 | /test 5 | -------------------------------------------------------------------------------- /packages/opentelemetry-plugin-http/.npmignore: -------------------------------------------------------------------------------- 1 | /bin 2 | /coverage 3 | /doc 4 | /test 5 | -------------------------------------------------------------------------------- /packages/opentelemetry-plugin-https/.npmignore: -------------------------------------------------------------------------------- 1 | /bin 2 | /coverage 3 | /doc 4 | /test 5 | -------------------------------------------------------------------------------- /packages/opentelemetry-resources/.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-instrumentation/.npmignore: -------------------------------------------------------------------------------- 1 | /bin 2 | /coverage 3 | /doc 4 | /test 5 | -------------------------------------------------------------------------------- /packages/opentelemetry-plugin-grpc-js/.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-shim-opentracing/.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-exporter-collector/.npmignore: -------------------------------------------------------------------------------- 1 | /bin 2 | /coverage 3 | /doc 4 | /test 5 | -------------------------------------------------------------------------------- /packages/opentelemetry-exporter-prometheus/.npmignore: -------------------------------------------------------------------------------- 1 | /bin 2 | /coverage 3 | /doc 4 | /test 5 | -------------------------------------------------------------------------------- /packages/opentelemetry-instrumentation-fetch/.npmignore: -------------------------------------------------------------------------------- 1 | /bin 2 | /coverage 3 | /doc 4 | /test 5 | -------------------------------------------------------------------------------- /packages/opentelemetry-instrumentation-grpc/.npmignore: -------------------------------------------------------------------------------- 1 | /bin 2 | /coverage 3 | /doc 4 | /test 5 | -------------------------------------------------------------------------------- /packages/opentelemetry-instrumentation-http/.npmignore: -------------------------------------------------------------------------------- 1 | /bin 2 | /coverage 3 | /doc 4 | /test 5 | -------------------------------------------------------------------------------- /packages/opentelemetry-resource-detector-aws/.npmignore: -------------------------------------------------------------------------------- 1 | /bin 2 | /coverage 3 | /doc 4 | /test 5 | -------------------------------------------------------------------------------- /packages/opentelemetry-resource-detector-gcp/.npmignore: -------------------------------------------------------------------------------- 1 | /bin 2 | /coverage 3 | /doc 4 | /test 5 | -------------------------------------------------------------------------------- /packages/opentelemetry-semantic-conventions/.npmignore: -------------------------------------------------------------------------------- 1 | /bin 2 | /coverage 3 | /doc 4 | /test 5 | -------------------------------------------------------------------------------- /packages/opentelemetry-exporter-collector-grpc/.npmignore: -------------------------------------------------------------------------------- 1 | /bin 2 | /coverage 3 | /doc 4 | /test 5 | -------------------------------------------------------------------------------- /packages/opentelemetry-exporter-collector-proto/.npmignore: -------------------------------------------------------------------------------- 1 | /bin 2 | /coverage 3 | /doc 4 | /test 5 | -------------------------------------------------------------------------------- /packages/opentelemetry-instrumentation-xml-http-request/.npmignore: -------------------------------------------------------------------------------- 1 | /bin 2 | /coverage 3 | /doc 4 | /test 5 | -------------------------------------------------------------------------------- /packages/opentelemetry-instrumentation/.gitignore: -------------------------------------------------------------------------------- 1 | # Dependency directories 2 | !test/node/node_modules 3 | -------------------------------------------------------------------------------- /packages/opentelemetry-node/.gitignore: -------------------------------------------------------------------------------- 1 | # Dependency directories 2 | !test/instrumentation/node_modules 3 | -------------------------------------------------------------------------------- /examples/grpc/images/jaeger.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ualehosaini/opentelemetry-js/HEAD/examples/grpc/images/jaeger.png -------------------------------------------------------------------------------- /examples/grpc/images/zipkin.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ualehosaini/opentelemetry-js/HEAD/examples/grpc/images/zipkin.png -------------------------------------------------------------------------------- /examples/grpc-js/images/jaeger.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ualehosaini/opentelemetry-js/HEAD/examples/grpc-js/images/jaeger.png -------------------------------------------------------------------------------- /examples/grpc-js/images/zipkin.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ualehosaini/opentelemetry-js/HEAD/examples/grpc-js/images/zipkin.png -------------------------------------------------------------------------------- /examples/http/images/jaeger-ui.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ualehosaini/opentelemetry-js/HEAD/examples/http/images/jaeger-ui.png -------------------------------------------------------------------------------- /examples/http/images/zipkin-ui.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ualehosaini/opentelemetry-js/HEAD/examples/http/images/zipkin-ui.png -------------------------------------------------------------------------------- /getting-started/images/zipkin.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ualehosaini/opentelemetry-js/HEAD/getting-started/images/zipkin.png -------------------------------------------------------------------------------- /tsconfig.es5.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "./tsconfig.base.json", 3 | "compilerOptions": { 4 | "target": "es5" 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /examples/https/images/jaeger-ui.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ualehosaini/opentelemetry-js/HEAD/examples/https/images/jaeger-ui.png -------------------------------------------------------------------------------- /examples/https/images/zipkin-ui.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ualehosaini/opentelemetry-js/HEAD/examples/https/images/zipkin-ui.png -------------------------------------------------------------------------------- /examples/metrics/metrics/observer.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ualehosaini/opentelemetry-js/HEAD/examples/metrics/metrics/observer.png -------------------------------------------------------------------------------- /getting-started/images/prometheus.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ualehosaini/opentelemetry-js/HEAD/getting-started/images/prometheus.png -------------------------------------------------------------------------------- /.markdownlint.json: -------------------------------------------------------------------------------- 1 | { 2 | "MD013": false, 3 | "MD024": false, 4 | "MD033": false, 5 | "MD041": false, 6 | "MD026": false 7 | } 8 | -------------------------------------------------------------------------------- /getting-started/images/zipkin-trace.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ualehosaini/opentelemetry-js/HEAD/getting-started/images/zipkin-trace.png -------------------------------------------------------------------------------- /examples/metrics/metrics/observer_batch.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ualehosaini/opentelemetry-js/HEAD/examples/metrics/metrics/observer_batch.png -------------------------------------------------------------------------------- /examples/metrics/metrics/observer_batch2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ualehosaini/opentelemetry-js/HEAD/examples/metrics/metrics/observer_batch2.png -------------------------------------------------------------------------------- /examples/prometheus/images/prom-counter.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ualehosaini/opentelemetry-js/HEAD/examples/prometheus/images/prom-counter.png -------------------------------------------------------------------------------- /examples/tracer-web/images/document-load.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ualehosaini/opentelemetry-js/HEAD/examples/tracer-web/images/document-load.png -------------------------------------------------------------------------------- /getting-started/images/prometheus-graph.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ualehosaini/opentelemetry-js/HEAD/getting-started/images/prometheus-graph.png -------------------------------------------------------------------------------- /examples/opentracing-shim/images/jaeger-ui.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ualehosaini/opentelemetry-js/HEAD/examples/opentracing-shim/images/jaeger-ui.png -------------------------------------------------------------------------------- /examples/opentracing-shim/images/zipkin-ui.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ualehosaini/opentelemetry-js/HEAD/examples/opentracing-shim/images/zipkin-ui.png -------------------------------------------------------------------------------- /examples/tracer-web/images/xml-http-request.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ualehosaini/opentelemetry-js/HEAD/examples/tracer-web/images/xml-http-request.png -------------------------------------------------------------------------------- /packages/opentelemetry-instrumentation/test/node/node_modules/random-module/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "random-module", 3 | "version": "0.1.0" 4 | } 5 | -------------------------------------------------------------------------------- /packages/opentelemetry-instrumentation/test/node/node_modules/simple-module/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "simple-module", 3 | "version": "0.1.0" 4 | } 5 | -------------------------------------------------------------------------------- /examples/collector-exporter-node/images/spans.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ualehosaini/opentelemetry-js/HEAD/examples/collector-exporter-node/images/spans.png -------------------------------------------------------------------------------- /examples/prometheus/images/prom-updowncounter.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ualehosaini/opentelemetry-js/HEAD/examples/prometheus/images/prom-updowncounter.png -------------------------------------------------------------------------------- /packages/opentelemetry-instrumentation/test/node/node_modules/supported-module/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "supported-module", 3 | "version": "0.0.1" 4 | } 5 | -------------------------------------------------------------------------------- /examples/basic-tracer-node/images/jaeger-ui-list.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ualehosaini/opentelemetry-js/HEAD/examples/basic-tracer-node/images/jaeger-ui-list.png -------------------------------------------------------------------------------- /examples/basic-tracer-node/images/zipkin-ui-list.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ualehosaini/opentelemetry-js/HEAD/examples/basic-tracer-node/images/zipkin-ui-list.png -------------------------------------------------------------------------------- /packages/opentelemetry-instrumentation/test/node/node_modules/already-require-module/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "already-module", 3 | "version": "0.1.0" 4 | } 5 | -------------------------------------------------------------------------------- /packages/opentelemetry-instrumentation/test/node/node_modules/notsupported-module/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "notsupported-module", 3 | "version": "0.0.1" 4 | } 5 | -------------------------------------------------------------------------------- /examples/basic-tracer-node/images/jaeger-ui-detail.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ualehosaini/opentelemetry-js/HEAD/examples/basic-tracer-node/images/jaeger-ui-detail.png -------------------------------------------------------------------------------- /examples/basic-tracer-node/images/zipkin-ui-detail.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ualehosaini/opentelemetry-js/HEAD/examples/basic-tracer-node/images/zipkin-ui-detail.png -------------------------------------------------------------------------------- /packages/opentelemetry-instrumentation/test/node/node_modules/random-module/index.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | name: () => 'random-module', 3 | value: () => 0, 4 | }; 5 | -------------------------------------------------------------------------------- /packages/opentelemetry-instrumentation/test/node/node_modules/simple-module/index.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | name: () => 'simple-module', 3 | value: () => 0, 4 | }; 5 | -------------------------------------------------------------------------------- /packages/template/README.md: -------------------------------------------------------------------------------- 1 | # `@opentelemetry/template` 2 | 3 | > TODO: description 4 | 5 | ## Usage 6 | 7 | ```typescript 8 | // TODO: DEMONSTRATE API 9 | ``` 10 | -------------------------------------------------------------------------------- /packages/opentelemetry-instrumentation/test/node/node_modules/supported-module/index.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | name: () => 'supported-module', 3 | value: () => 0, 4 | }; 5 | -------------------------------------------------------------------------------- /packages/opentelemetry-instrumentation-fetch/images/trace1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ualehosaini/opentelemetry-js/HEAD/packages/opentelemetry-instrumentation-fetch/images/trace1.png -------------------------------------------------------------------------------- /packages/opentelemetry-instrumentation-fetch/images/trace2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ualehosaini/opentelemetry-js/HEAD/packages/opentelemetry-instrumentation-fetch/images/trace2.png -------------------------------------------------------------------------------- /packages/opentelemetry-instrumentation-fetch/images/trace3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ualehosaini/opentelemetry-js/HEAD/packages/opentelemetry-instrumentation-fetch/images/trace3.png -------------------------------------------------------------------------------- /packages/opentelemetry-instrumentation/test/node/node_modules/already-require-module/index.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | name: () => 'already-module', 3 | value: () => 0, 4 | }; 5 | -------------------------------------------------------------------------------- /packages/opentelemetry-instrumentation/test/node/node_modules/notsupported-module/index.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | name: () => 'notsupported-module', 3 | value: () => 0, 4 | }; 5 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /packages/opentelemetry-instrumentation/test/node/node_modules/@opentelemetry/plugin-http-module/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "@opentelemetry/plugin-http-module", 3 | "version": "0.0.1" 4 | } 5 | -------------------------------------------------------------------------------- /packages/opentelemetry-metrics/.eslintrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | "env": { 3 | "mocha": true, 4 | "node": true 5 | }, 6 | ...require('../../eslint.config.js') 7 | } 8 | -------------------------------------------------------------------------------- /packages/opentelemetry-node/.eslintrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | "env": { 3 | "mocha": true, 4 | "node": true 5 | }, 6 | ...require('../../eslint.config.js') 7 | } 8 | -------------------------------------------------------------------------------- /packages/opentelemetry-sdk-node/.eslintrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | "env": { 3 | "mocha": true, 4 | "node": true 5 | }, 6 | ...require('../../eslint.config.js') 7 | } 8 | -------------------------------------------------------------------------------- /packages/opentelemetry-context-base/.eslintrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | "env": { 3 | "mocha": true, 4 | "node": true 5 | }, 6 | ...require('../../eslint.config.js') 7 | } 8 | -------------------------------------------------------------------------------- /packages/opentelemetry-grpc-utils/.eslintrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | "env": { 3 | "mocha": true, 4 | "node": true 5 | }, 6 | ...require('../../eslint.config.js') 7 | } 8 | -------------------------------------------------------------------------------- /packages/opentelemetry-instrumentation/test/node/node_modules/@opentelemetry/plugin-simple-module/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "@opentelemetry/plugin-simple-module", 3 | "version": "0.0.1" 4 | } 5 | -------------------------------------------------------------------------------- /packages/opentelemetry-plugin-grpc/.eslintrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | "env": { 3 | "mocha": true, 4 | "node": true 5 | }, 6 | ...require('../../eslint.config.js') 7 | } 8 | -------------------------------------------------------------------------------- /packages/opentelemetry-plugin-http/.eslintrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | "env": { 3 | "mocha": true, 4 | "node": true 5 | }, 6 | ...require('../../eslint.config.js') 7 | } 8 | -------------------------------------------------------------------------------- /packages/opentelemetry-plugin-https/.eslintrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | "env": { 3 | "mocha": true, 4 | "node": true 5 | }, 6 | ...require('../../eslint.config.js') 7 | } 8 | -------------------------------------------------------------------------------- /packages/opentelemetry-context-zone/.eslintrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | "env": { 3 | "browser": true, 4 | "commonjs": true 5 | }, 6 | ...require('../../eslint.config.js') 7 | } 8 | -------------------------------------------------------------------------------- /packages/opentelemetry-exporter-jaeger/.eslintrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | "env": { 3 | "mocha": true, 4 | "node": true 5 | }, 6 | ...require('../../eslint.config.js') 7 | } 8 | -------------------------------------------------------------------------------- /packages/opentelemetry-instrumentation-xml-http-request/images/cors.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ualehosaini/opentelemetry-js/HEAD/packages/opentelemetry-instrumentation-xml-http-request/images/cors.jpg -------------------------------------------------------------------------------- /packages/opentelemetry-instrumentation-xml-http-request/images/main.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ualehosaini/opentelemetry-js/HEAD/packages/opentelemetry-instrumentation-xml-http-request/images/main.jpg -------------------------------------------------------------------------------- /packages/opentelemetry-instrumentation/test/node/node_modules/@opentelemetry/plugin-supported-module/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "@opentelemetry/plugin-supported-module", 3 | "version": "0.0.1" 4 | } 5 | -------------------------------------------------------------------------------- /packages/opentelemetry-plugin-grpc-js/.eslintrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | "env": { 3 | "mocha": true, 4 | "node": true 5 | }, 6 | ...require('../../eslint.config.js') 7 | } 8 | -------------------------------------------------------------------------------- /packages/opentelemetry-shim-opentracing/.eslintrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | "env": { 3 | "mocha": true, 4 | "node": true 5 | }, 6 | ...require('../../eslint.config.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.config.js') 7 | } 8 | -------------------------------------------------------------------------------- /packages/opentelemetry-exporter-prometheus/.eslintrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | "env": { 3 | "mocha": true, 4 | "node": true 5 | }, 6 | ...require('../../eslint.config.js') 7 | } 8 | -------------------------------------------------------------------------------- /packages/opentelemetry-instrumentation-grpc/.eslintrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | "env": { 3 | "mocha": true, 4 | "node": true 5 | }, 6 | ...require('../../eslint.config.js') 7 | } 8 | -------------------------------------------------------------------------------- /packages/opentelemetry-instrumentation-http/.eslintrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | "env": { 3 | "mocha": true, 4 | "node": true 5 | }, 6 | ...require('../../eslint.config.js') 7 | } 8 | -------------------------------------------------------------------------------- /packages/opentelemetry-instrumentation-xml-http-request/images/request.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ualehosaini/opentelemetry-js/HEAD/packages/opentelemetry-instrumentation-xml-http-request/images/request.jpg -------------------------------------------------------------------------------- /packages/opentelemetry-instrumentation/test/node/node_modules/@opentelemetry/plugin-notsupported-module/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "@opentelemetry/plugin-notsupported-module", 3 | "version": "1.0.0" 4 | } 5 | -------------------------------------------------------------------------------- /packages/opentelemetry-api/.eslintrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | "env": { 3 | "mocha": true, 4 | "commonjs": true, 5 | "shared-node-browser": true 6 | }, 7 | ...require('../../eslint.config.js') 8 | } 9 | -------------------------------------------------------------------------------- /.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 | -------------------------------------------------------------------------------- /benchmark/index.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | const execSync = require('child_process').execSync; 4 | const exec = cmd => execSync(cmd, { stdio: [0, 1, 2] }); 5 | 6 | exec('node benchmark/tracer.js'); 7 | exec('node benchmark/propagator.js'); 8 | -------------------------------------------------------------------------------- /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-api-metrics/.eslintrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | "env": { 3 | "mocha": true, 4 | "commonjs": true, 5 | "shared-node-browser": true 6 | }, 7 | ...require('../../eslint.config.js') 8 | } 9 | -------------------------------------------------------------------------------- /packages/opentelemetry-exporter-collector-grpc/.eslintrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | "env": { 3 | "mocha": true, 4 | "commonjs": true, 5 | "node": true, 6 | }, 7 | ...require('../../eslint.config.js') 8 | } 9 | -------------------------------------------------------------------------------- /packages/opentelemetry-exporter-collector-proto/.eslintrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | "env": { 3 | "mocha": true, 4 | "commonjs": true, 5 | "node": true, 6 | }, 7 | ...require('../../eslint.config.js') 8 | } 9 | -------------------------------------------------------------------------------- /packages/opentelemetry-semantic-conventions/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../tsconfig.es5.json", 3 | "compilerOptions": { 4 | "rootDir": ".", 5 | "outDir": "build" 6 | }, 7 | "include": ["src/**/*.ts", "test/**/*.ts"] 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.config.js') 9 | } 10 | -------------------------------------------------------------------------------- /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.config.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.config.js') 9 | } 10 | -------------------------------------------------------------------------------- /packages/opentelemetry-tracing/.eslintrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | "env": { 3 | "mocha": true, 4 | "commonjs": true, 5 | "node": true, 6 | "browser": true 7 | }, 8 | ...require('../../eslint.config.js') 9 | } 10 | -------------------------------------------------------------------------------- /packages/opentelemetry-web/.eslintrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | "env": { 3 | "mocha": true, 4 | "commonjs": true, 5 | "browser": true, 6 | "jquery": true 7 | }, 8 | ...require('../../eslint.config.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.config.js') 9 | } 10 | -------------------------------------------------------------------------------- /packages/opentelemetry-context-base/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../tsconfig.es5.json", 3 | "compilerOptions": { 4 | "rootDir": ".", 5 | "outDir": "build" 6 | }, 7 | "include": [ 8 | "src/**/*.ts", 9 | "test/**/*.ts" 10 | ] 11 | } 12 | -------------------------------------------------------------------------------- /packages/opentelemetry-exporter-collector/.eslintrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | "env": { 3 | "mocha": true, 4 | "commonjs": true, 5 | "node": true, 6 | "browser": true 7 | }, 8 | ...require('../../eslint.config.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.config.js') 9 | } 10 | -------------------------------------------------------------------------------- /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.config.js') 9 | } 10 | -------------------------------------------------------------------------------- /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.config.js') 9 | } 10 | -------------------------------------------------------------------------------- /packages/opentelemetry-resource-detector-aws/.eslintrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | "env": { 3 | "mocha": true, 4 | "commonjs": true, 5 | "node": true, 6 | "browser": true 7 | }, 8 | ...require('../../eslint.config.js') 9 | } 10 | -------------------------------------------------------------------------------- /packages/opentelemetry-resource-detector-gcp/.eslintrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | "env": { 3 | "mocha": true, 4 | "commonjs": true, 5 | "node": true, 6 | "browser": true 7 | }, 8 | ...require('../../eslint.config.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.config.js') 9 | } 10 | -------------------------------------------------------------------------------- /packages/opentelemetry-instrumentation-xml-http-request/.eslintrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | "env": { 3 | "mocha": true, 4 | "commonjs": true, 5 | "browser": true, 6 | "jquery": true 7 | }, 8 | ...require('../../eslint.config.js') 9 | } 10 | -------------------------------------------------------------------------------- /packages/template/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../tsconfig.base.json", 3 | "compilerOptions": { 4 | "rootDir": ".", 5 | "outDir": "build" 6 | }, 7 | "include": [ 8 | "src/**/*.ts", 9 | "test/**/*.ts" 10 | ], 11 | "references": [ 12 | ] 13 | } 14 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /packages/opentelemetry-instrumentation/test/node/node_modules/@opentelemetry/plugin-http-module/index.js: -------------------------------------------------------------------------------- 1 | function __export(m) { 2 | for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p]; 3 | } 4 | Object.defineProperty(exports, "__esModule", { value: true }); 5 | __export(require("./http-module")); 6 | -------------------------------------------------------------------------------- /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.config.js') 11 | } 12 | -------------------------------------------------------------------------------- /packages/opentelemetry-instrumentation/test/node/node_modules/@opentelemetry/plugin-simple-module/index.js: -------------------------------------------------------------------------------- 1 | function __export(m) { 2 | for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p]; 3 | } 4 | Object.defineProperty(exports, "__esModule", { value: true }); 5 | __export(require("./simple-module")); 6 | -------------------------------------------------------------------------------- /packages/opentelemetry-instrumentation/test/node/node_modules/@opentelemetry/plugin-notsupported-module/index.js: -------------------------------------------------------------------------------- 1 | function __export(m) { 2 | for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p]; 3 | } 4 | Object.defineProperty(exports, "__esModule", { value: true }); 5 | __export(require("./simple-module")); 6 | -------------------------------------------------------------------------------- /packages/opentelemetry-instrumentation/test/node/node_modules/@opentelemetry/plugin-supported-module/index.js: -------------------------------------------------------------------------------- 1 | function __export(m) { 2 | for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p]; 3 | } 4 | Object.defineProperty(exports, "__esModule", { value: true }); 5 | __export(require("./simple-module")); 6 | -------------------------------------------------------------------------------- /examples/collector-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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /backwards-compatability/node10/index.ts: -------------------------------------------------------------------------------- 1 | import {NodeSDK, api} from '@opentelemetry/sdk-node'; 2 | import {ConsoleSpanExporter} from '@opentelemetry/tracing'; 3 | 4 | const sdk = new NodeSDK({ 5 | traceExporter: new ConsoleSpanExporter(), 6 | autoDetectResources: false, 7 | }); 8 | sdk.start(); 9 | 10 | api.trace.getTracer('test'); 11 | -------------------------------------------------------------------------------- /backwards-compatability/node12/index.ts: -------------------------------------------------------------------------------- 1 | import {NodeSDK, api} from '@opentelemetry/sdk-node'; 2 | import {ConsoleSpanExporter} from '@opentelemetry/tracing'; 3 | 4 | const sdk = new NodeSDK({ 5 | traceExporter: new ConsoleSpanExporter(), 6 | autoDetectResources: false, 7 | }); 8 | sdk.start(); 9 | 10 | api.trace.getTracer('test'); 11 | -------------------------------------------------------------------------------- /backwards-compatability/node8/index.ts: -------------------------------------------------------------------------------- 1 | import {NodeSDK, api} from '@opentelemetry/sdk-node'; 2 | import {ConsoleSpanExporter} from '@opentelemetry/tracing'; 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-api-metrics/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../tsconfig.es5.json", 3 | "compilerOptions": { 4 | "rootDir": ".", 5 | "outDir": "build" 6 | }, 7 | "include": [ 8 | "src/**/*.ts", 9 | "test/**/*.ts" 10 | ], 11 | "references": [ 12 | { 13 | "path": "../opentelemetry-api" 14 | } 15 | ] 16 | } 17 | -------------------------------------------------------------------------------- /packages/opentelemetry-api/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../tsconfig.es5.json", 3 | "compilerOptions": { 4 | "rootDir": ".", 5 | "outDir": "build" 6 | }, 7 | "include": [ 8 | "src/**/*.ts", 9 | "test/**/*.ts" 10 | ], 11 | "references": [ 12 | { 13 | "path": "../opentelemetry-context-base" 14 | } 15 | ] 16 | } 17 | -------------------------------------------------------------------------------- /packages/opentelemetry-api-metrics/tsconfig.docs.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "rootDir": ".", 4 | "outDir": "build" 5 | }, 6 | "include": [ 7 | "src/**/*.ts" 8 | ], 9 | "typedocOptions": { 10 | "name": "OpenTelemetry API for JavaScript", 11 | "out": "docs/out", 12 | "mode": "file", 13 | "hideGenerator": true 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /.nycrc: -------------------------------------------------------------------------------- 1 | { 2 | "extension": [ 3 | ".ts" 4 | ], 5 | "exclude": [ 6 | "**/*.d.ts", 7 | "build/**/*.*", 8 | "src/index.ts", 9 | "src/platform/**/index.ts", 10 | "src/platform/browser/*.ts", 11 | "src/version.ts", 12 | "test/**/*.*", 13 | ".eslintrc.js", 14 | "karma.conf.js", 15 | "webpack/*.js" 16 | ], 17 | "all": true 18 | } 19 | -------------------------------------------------------------------------------- /packages/opentelemetry-context-async-hooks/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../tsconfig.base.json", 3 | "compilerOptions": { 4 | "rootDir": ".", 5 | "outDir": "build" 6 | }, 7 | "include": [ 8 | "src/**/*.ts", 9 | "test/**/*.ts" 10 | ], 11 | "references": [ 12 | { 13 | "path": "../opentelemetry-context-base" 14 | } 15 | ] 16 | } 17 | -------------------------------------------------------------------------------- /packages/opentelemetry-api/tsconfig.docs.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "rootDir": ".", 4 | "outDir": "build" 5 | }, 6 | "include": [ 7 | "src/**/*.ts" 8 | ], 9 | "typedocOptions": { 10 | "name": "OpenTelemetry API for JavaScript", 11 | "out": "docs/out", 12 | "entryPoints": ["./src/index.ts"], 13 | "hideGenerator": true 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /.gitmodules: -------------------------------------------------------------------------------- 1 | [submodule "packages/opentelemetry-exporter-collector-grpc/protos"] 2 | path = packages/opentelemetry-exporter-collector-grpc/protos 3 | url = https://github.com/open-telemetry/opentelemetry-proto.git 4 | [submodule "packages/opentelemetry-exporter-collector-proto/protos"] 5 | path = packages/opentelemetry-exporter-collector-proto/protos 6 | url = https://github.com/open-telemetry/opentelemetry-proto.git 7 | -------------------------------------------------------------------------------- /backwards-compatability/node10/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../tsconfig.es5.json", 3 | "compilerOptions": { 4 | "rootDir": ".", 5 | "outDir": "build" 6 | }, 7 | "include": [ 8 | "index.ts" 9 | ], 10 | "references": [ 11 | { 12 | "path": "../../packages/opentelemetry-sdk-node" 13 | }, 14 | { 15 | "path": "../../packages/opentelemetry-tracing" 16 | } 17 | ] 18 | } 19 | -------------------------------------------------------------------------------- /backwards-compatability/node12/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../tsconfig.es5.json", 3 | "compilerOptions": { 4 | "rootDir": ".", 5 | "outDir": "build" 6 | }, 7 | "include": [ 8 | "index.ts" 9 | ], 10 | "references": [ 11 | { 12 | "path": "../../packages/opentelemetry-sdk-node" 13 | }, 14 | { 15 | "path": "../../packages/opentelemetry-tracing" 16 | } 17 | ] 18 | } 19 | -------------------------------------------------------------------------------- /backwards-compatability/node8/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../tsconfig.es5.json", 3 | "compilerOptions": { 4 | "rootDir": ".", 5 | "outDir": "build" 6 | }, 7 | "include": [ 8 | "index.ts" 9 | ], 10 | "references": [ 11 | { 12 | "path": "../../packages/opentelemetry-sdk-node" 13 | }, 14 | { 15 | "path": "../../packages/opentelemetry-tracing" 16 | } 17 | ] 18 | } 19 | -------------------------------------------------------------------------------- /packages/opentelemetry-resources/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../tsconfig.base.json", 3 | "compilerOptions": { 4 | "rootDir": ".", 5 | "outDir": "build" 6 | }, 7 | "include": [ 8 | "src/**/*.ts", 9 | "test/**/*.ts" 10 | ], 11 | "references": [ 12 | { 13 | "path": "../opentelemetry-api" 14 | }, 15 | { 16 | "path": "../opentelemetry-core" 17 | } 18 | ] 19 | } 20 | -------------------------------------------------------------------------------- /examples/basic-tracer-node/docker/ot/collector-config.yaml: -------------------------------------------------------------------------------- 1 | receivers: 2 | opencensus: 3 | endpoint: 0.0.0.0:55678 4 | 5 | exporters: 6 | zipkin: 7 | url: "http://zipkin-all-in-one:9411/api/v2/spans" 8 | 9 | processors: 10 | batch: 11 | queued_retry: 12 | 13 | service: 14 | pipelines: 15 | traces: 16 | receivers: [opencensus] 17 | exporters: [zipkin] 18 | processors: [batch, queued_retry] 19 | -------------------------------------------------------------------------------- /examples/tracer-web/.eslintrc: -------------------------------------------------------------------------------- 1 | { 2 | "env": { 3 | "node": true 4 | }, 5 | "extends": "airbnb-base", 6 | "parserOptions": { 7 | "sourceType": "module" 8 | }, 9 | "rules": { 10 | "strict": ["error", "global"], 11 | "no-use-before-define": ["error", "nofunc"], 12 | "no-console": "off", 13 | "import/no-unresolved": "off", 14 | "no-unused-vars": ["error", { "argsIgnorePattern": "^_" }] 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /packages/opentelemetry-instrumentation/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../tsconfig.base.json", 3 | "compilerOptions": { 4 | "rootDir": ".", 5 | "outDir": "build" 6 | }, 7 | "include": [ 8 | "src/**/*.ts", 9 | "test/**/*.ts" 10 | ], 11 | "references": [ 12 | { 13 | "path": "../opentelemetry-api" 14 | }, 15 | { 16 | "path": "../opentelemetry-api-metrics" 17 | } 18 | ] 19 | } 20 | -------------------------------------------------------------------------------- /packages/opentelemetry-propagator-b3/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../tsconfig.base.json", 3 | "compilerOptions": { 4 | "rootDir": ".", 5 | "outDir": "build" 6 | }, 7 | "include": [ 8 | "src/**/*.ts", 9 | "test/**/*.ts" 10 | ], 11 | "references": [ 12 | { 13 | "path": "../opentelemetry-api" 14 | }, 15 | { 16 | "path": "../opentelemetry-context-base" 17 | } 18 | ] 19 | } 20 | -------------------------------------------------------------------------------- /examples/.eslintrc: -------------------------------------------------------------------------------- 1 | { 2 | "env": { 3 | "node": true 4 | }, 5 | "extends": "airbnb-base", 6 | "parserOptions": { 7 | "sourceType": "script" 8 | }, 9 | "rules": { 10 | "strict": ["error", "global"], 11 | "no-use-before-define": ["error", "nofunc"], 12 | "no-console": "off", 13 | "import/no-unresolved": "off", 14 | "no-unused-vars": ["error", { "argsIgnorePattern": "^_" }] 15 | }, 16 | "ignorePatterns": "**/*_pb.js" 17 | } 18 | -------------------------------------------------------------------------------- /packages/opentelemetry-context-zone-peer-dep/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../tsconfig.base.json", 3 | "compilerOptions": { 4 | "rootDir": ".", 5 | "outDir": "build", 6 | "skipLibCheck": true 7 | }, 8 | "files": [ 9 | "node_modules/zone.js/dist/zone.js.d.ts" 10 | ], 11 | "include": [ 12 | "src/**/*.ts", 13 | "test/**/*.ts" 14 | ], 15 | "references": [ 16 | { 17 | "path": "../opentelemetry-context-base" 18 | } 19 | ] 20 | } 21 | -------------------------------------------------------------------------------- /packages/opentelemetry-context-zone/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../tsconfig.base.json", 3 | "compilerOptions": { 4 | "rootDir": ".", 5 | "outDir": "build", 6 | "skipLibCheck": true 7 | }, 8 | "files": [ 9 | "node_modules/zone.js/dist/zone.js.d.ts" 10 | ], 11 | "include": [ 12 | "src/**/*.ts", 13 | "test/**/*.ts" 14 | ], 15 | "references": [ 16 | { 17 | "path": "../opentelemetry-context-zone-peer-dep" 18 | } 19 | ] 20 | } 21 | -------------------------------------------------------------------------------- /getting-started/example/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "@opentelemetry/getting-started-example", 3 | "version": "0.17.0", 4 | "description": "This repository provides everything required to follow the OpenTelemetry Getting Started Guide", 5 | "main": "app.js", 6 | "scripts": { 7 | "start": "node app.js" 8 | }, 9 | "author": "OpenTelemetry Authors", 10 | "license": "Apache-2.0", 11 | "dependencies": { 12 | "axios": "^0.21.0", 13 | "express": "^4.17.1" 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /packages/opentelemetry-shim-opentracing/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../tsconfig.base.json", 3 | "compilerOptions": { 4 | "rootDir": ".", 5 | "outDir": "build" 6 | }, 7 | "include": [ 8 | "src/**/*.ts", 9 | "test/**/*.ts" 10 | ], 11 | "references": [ 12 | { 13 | "path": "../opentelemetry-api" 14 | }, 15 | { 16 | "path": "../opentelemetry-core" 17 | }, 18 | { 19 | "path": "../opentelemetry-tracing" 20 | } 21 | ] 22 | } 23 | -------------------------------------------------------------------------------- /packages/opentelemetry-core/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../tsconfig.base.json", 3 | "compilerOptions": { 4 | "rootDir": ".", 5 | "outDir": "build" 6 | }, 7 | "include": [ 8 | "src/**/*.ts", 9 | "test/**/*.ts" 10 | ], 11 | "references": [ 12 | { 13 | "path": "../opentelemetry-api" 14 | }, 15 | { 16 | "path": "../opentelemetry-context-base" 17 | }, 18 | { 19 | "path": "../opentelemetry-propagator-b3" 20 | } 21 | ] 22 | } 23 | -------------------------------------------------------------------------------- /examples/prometheus/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "prometheus-example", 3 | "version": "0.17.0", 4 | "description": "Example of using @opentelemetry/metrics and @opentelemetry/exporter-prometheus", 5 | "main": "index.js", 6 | "scripts": { 7 | "start": "node index.js" 8 | }, 9 | "author": "OpenTelemetry Authors", 10 | "license": "Apache-2.0", 11 | "dependencies": { 12 | "@opentelemetry/exporter-prometheus": "^0.17.0", 13 | "@opentelemetry/metrics": "^0.17.0" 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /packages/opentelemetry-resource-detector-aws/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../tsconfig.base.json", 3 | "compilerOptions": { 4 | "rootDir": ".", 5 | "outDir": "build" 6 | }, 7 | "include": [ 8 | "src/**/*.ts", 9 | "test/**/*.ts" 10 | ], 11 | "references": [ 12 | { 13 | "path": "../opentelemetry-api" 14 | }, 15 | { 16 | "path": "../opentelemetry-core" 17 | }, 18 | { 19 | "path": "../opentelemetry-resources" 20 | } 21 | ] 22 | } 23 | -------------------------------------------------------------------------------- /packages/opentelemetry-resource-detector-gcp/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../tsconfig.base.json", 3 | "compilerOptions": { 4 | "rootDir": ".", 5 | "outDir": "build" 6 | }, 7 | "include": [ 8 | "src/**/*.ts", 9 | "test/**/*.ts" 10 | ], 11 | "references": [ 12 | { 13 | "path": "../opentelemetry-api" 14 | }, 15 | { 16 | "path": "../opentelemetry-core" 17 | }, 18 | { 19 | "path": "../opentelemetry-resources" 20 | } 21 | ] 22 | } 23 | -------------------------------------------------------------------------------- /examples/basic-tracer-node/docker/ot/docker-compose.yaml: -------------------------------------------------------------------------------- 1 | version: "2" 2 | services: 3 | 4 | # Collector 5 | collector: 6 | image: otelcol:latest 7 | command: ["--config=/conf/collector-config.yaml", "--log-level=DEBUG"] 8 | volumes: 9 | - ./collector-config.yaml:/conf/collector-config.yaml 10 | ports: 11 | - "55678:55678" 12 | depends_on: 13 | - zipkin-all-in-one 14 | 15 | # Zipkin 16 | zipkin-all-in-one: 17 | image: openzipkin/zipkin:latest 18 | ports: 19 | - "9411:9411" 20 | -------------------------------------------------------------------------------- /examples/tracer-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 | -------------------------------------------------------------------------------- /renovate.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": [ 3 | "config:base" 4 | ], 5 | "packageRules": [ 6 | { 7 | "groupName": "all non-major dependencies", 8 | "updateTypes": ["patch", "minor"], 9 | "groupSlug": "all-minor-patch" 10 | } 11 | ], 12 | "ignoreDeps": [ 13 | "gcp-metadata", 14 | "got", 15 | "mocha" 16 | ], 17 | "assignees": [ 18 | "@dyladan", 19 | "@mayurkale22", 20 | "@obecny" 21 | ], 22 | "schedule": [ 23 | "before 3am on Friday" 24 | ], 25 | "labels": ["dependencies"] 26 | } 27 | -------------------------------------------------------------------------------- /examples/tracer-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 | -------------------------------------------------------------------------------- /packages/opentelemetry-exporter-jaeger/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../tsconfig.base.json", 3 | "compilerOptions": { 4 | "rootDir": ".", 5 | "outDir": "build" 6 | }, 7 | "include": [ 8 | "src/**/*.ts", 9 | "test/**/*.ts" 10 | ], 11 | "references": [ 12 | { 13 | "path": "../opentelemetry-api" 14 | }, 15 | { 16 | "path": "../opentelemetry-core" 17 | }, 18 | { 19 | "path": "../opentelemetry-resources" 20 | }, 21 | { 22 | "path": "../opentelemetry-tracing" 23 | } 24 | ] 25 | } 26 | -------------------------------------------------------------------------------- /packages/opentelemetry-exporter-zipkin/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../tsconfig.base.json", 3 | "compilerOptions": { 4 | "rootDir": ".", 5 | "outDir": "build" 6 | }, 7 | "include": [ 8 | "src/**/*.ts", 9 | "test/**/*.ts" 10 | ], 11 | "references": [ 12 | { 13 | "path": "../opentelemetry-api" 14 | }, 15 | { 16 | "path": "../opentelemetry-core" 17 | }, 18 | { 19 | "path": "../opentelemetry-resources" 20 | }, 21 | { 22 | "path": "../opentelemetry-tracing" 23 | } 24 | ] 25 | } 26 | -------------------------------------------------------------------------------- /packages/opentelemetry-metrics/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../tsconfig.base.json", 3 | "compilerOptions": { 4 | "rootDir": ".", 5 | "outDir": "build" 6 | }, 7 | "include": [ 8 | "src/**/*.ts", 9 | "test/**/*.ts" 10 | ], 11 | "references": [ 12 | { 13 | "path": "../opentelemetry-api" 14 | }, 15 | { 16 | "path": "../opentelemetry-api-metrics" 17 | }, 18 | { 19 | "path": "../opentelemetry-core" 20 | }, 21 | { 22 | "path": "../opentelemetry-resources" 23 | } 24 | ] 25 | } 26 | -------------------------------------------------------------------------------- /packages/opentelemetry-exporter-prometheus/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../tsconfig.base.json", 3 | "compilerOptions": { 4 | "rootDir": ".", 5 | "outDir": "build" 6 | }, 7 | "include": [ 8 | "src/**/*.ts", 9 | "test/**/*.ts" 10 | ], 11 | "references": [ 12 | { 13 | "path": "../opentelemetry-api" 14 | }, 15 | { 16 | "path": "../opentelemetry-api-metrics" 17 | }, 18 | { 19 | "path": "../opentelemetry-core" 20 | }, 21 | { 22 | "path": "../opentelemetry-metrics" 23 | } 24 | ] 25 | } 26 | -------------------------------------------------------------------------------- /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": "../../packages/opentelemetry-api" 11 | }, 12 | { 13 | "path": "../../packages/opentelemetry-context-async-hooks" 14 | }, 15 | { 16 | "path": "../../packages/opentelemetry-core" 17 | }, 18 | { 19 | "path": "../../packages/opentelemetry-tracing" 20 | } 21 | ] 22 | } 23 | -------------------------------------------------------------------------------- /benchmark/benchmark.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | const Benchmark = require('benchmark'); 4 | const benchmarks = require('beautify-benchmark'); 5 | 6 | Benchmark.options.maxTime = 0; 7 | 8 | module.exports = (minSamples) => { 9 | Benchmark.options.minSamples = minSamples; 10 | const suite = new Benchmark.Suite(); 11 | 12 | return suite 13 | .on('cycle', event => { 14 | benchmarks.add(event.target); 15 | }) 16 | .on('error', event => { 17 | throw event.target.error; 18 | }) 19 | .on('complete', function () { 20 | benchmarks.log(); 21 | }); 22 | }; 23 | -------------------------------------------------------------------------------- /examples/tracer-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 | -------------------------------------------------------------------------------- /.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 | * @dyladan @mayurkale22 @OlivierAlbertini @vmarchaud @markwolff @obecny @mwear @naseemkullah @legendecas @Flarna @johnbley 16 | -------------------------------------------------------------------------------- /packages/opentelemetry-grpc-utils/test/fixtures/grpc-test.proto: -------------------------------------------------------------------------------- 1 | syntax = "proto3"; 2 | 3 | package pkg_test; 4 | 5 | service GrpcTester { 6 | rpc UnaryMethod (TestRequest) returns (TestReply) {} 7 | rpc camelCaseMethod (TestRequest) returns (TestReply) {} 8 | rpc ClientStreamMethod (stream TestRequest) returns (TestReply) {} 9 | rpc ServerStreamMethod (TestRequest) returns (stream TestReply) {} 10 | rpc BidiStreamMethod (stream TestRequest) returns (stream TestReply) {} 11 | } 12 | 13 | message TestRequest { 14 | int32 num = 1; 15 | } 16 | 17 | message TestReply { 18 | int32 num = 1; 19 | } 20 | -------------------------------------------------------------------------------- /getting-started/monitored-example/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "@opentelemetry/getting-started-monitored-example", 3 | "version": "0.17.0", 4 | "description": "This repository provides everything required to follow the OpenTelemetry Getting Started Guide", 5 | "main": "app.js", 6 | "scripts": { 7 | "start": "node app.js" 8 | }, 9 | "author": "OpenTelemetry Authors", 10 | "license": "Apache-2.0", 11 | "dependencies": { 12 | "@opentelemetry/exporter-prometheus": "^0.17.0", 13 | "@opentelemetry/metrics": "^0.17.0", 14 | "axios": "^0.21.0", 15 | "express": "^4.17.1" 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /packages/opentelemetry-instrumentation-grpc/test/fixtures/grpc-test.proto: -------------------------------------------------------------------------------- 1 | syntax = "proto3"; 2 | 3 | package pkg_test; 4 | 5 | service GrpcTester { 6 | rpc UnaryMethod (TestRequest) returns (TestReply) {} 7 | rpc camelCaseMethod (TestRequest) returns (TestReply) {} 8 | rpc ClientStreamMethod (stream TestRequest) returns (TestReply) {} 9 | rpc ServerStreamMethod (TestRequest) returns (stream TestReply) {} 10 | rpc BidiStreamMethod (stream TestRequest) returns (stream TestReply) {} 11 | } 12 | 13 | message TestRequest { 14 | int32 num = 1; 15 | } 16 | 17 | message TestReply { 18 | int32 num = 1; 19 | } 20 | -------------------------------------------------------------------------------- /backwards-compatability/node10/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "backcompat-node10", 3 | "version": "0.17.0", 4 | "private": true, 5 | "description": "Backwards compatability app for node8 types and the OpenTelemetry Node.js SDK", 6 | "main": "index.js", 7 | "scripts": { 8 | "test:backcompat": "tsc --noEmit index.ts" 9 | }, 10 | "dependencies": { 11 | "@opentelemetry/sdk-node": "^0.17.0", 12 | "@opentelemetry/tracing": "^0.17.0" 13 | }, 14 | "devDependencies": { 15 | "@types/node": "10.17.50", 16 | "typescript": "4.1.3" 17 | }, 18 | "author": "OpenTelemetry Authors", 19 | "license": "Apache-2.0" 20 | } 21 | -------------------------------------------------------------------------------- /backwards-compatability/node12/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "backcompat-node12", 3 | "version": "0.17.0", 4 | "private": true, 5 | "description": "Backwards compatability app for node8 types and the OpenTelemetry Node.js SDK", 6 | "main": "index.js", 7 | "scripts": { 8 | "test:backcompat": "tsc --noEmit index.ts" 9 | }, 10 | "dependencies": { 11 | "@opentelemetry/sdk-node": "^0.17.0", 12 | "@opentelemetry/tracing": "^0.17.0" 13 | }, 14 | "devDependencies": { 15 | "@types/node": "12.19.13", 16 | "typescript": "4.1.3" 17 | }, 18 | "author": "OpenTelemetry Authors", 19 | "license": "Apache-2.0" 20 | } 21 | -------------------------------------------------------------------------------- /backwards-compatability/node8/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "backcompat-node8", 3 | "version": "0.17.0", 4 | "private": true, 5 | "description": "Backwards compatability app for node8 types and the OpenTelemetry Node.js SDK", 6 | "main": "index.js", 7 | "scripts": { 8 | "test:backcompat": "tsc --noEmit index.ts" 9 | }, 10 | "dependencies": { 11 | "@opentelemetry/sdk-node": "^0.17.0", 12 | "@opentelemetry/tracing": "^0.17.0" 13 | }, 14 | "devDependencies": { 15 | "@types/node": "8.10.66", 16 | "typescript": "4.1.3" 17 | }, 18 | "author": "OpenTelemetry Authors", 19 | "license": "Apache-2.0" 20 | } 21 | -------------------------------------------------------------------------------- /packages/opentelemetry-tracing/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../tsconfig.base.json", 3 | "compilerOptions": { 4 | "rootDir": ".", 5 | "outDir": "build" 6 | }, 7 | "include": [ 8 | "src/**/*.ts", 9 | "test/**/*.ts" 10 | ], 11 | "references": [ 12 | { 13 | "path": "../opentelemetry-api" 14 | }, 15 | { 16 | "path": "../opentelemetry-context-base" 17 | }, 18 | { 19 | "path": "../opentelemetry-core" 20 | }, 21 | { 22 | "path": "../opentelemetry-resources" 23 | }, 24 | { 25 | "path": "../opentelemetry-semantic-conventions" 26 | } 27 | ] 28 | } 29 | -------------------------------------------------------------------------------- /getting-started/ts-example/example/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "@opentelemetry/getting-started-ts-example", 3 | "version": "0.15.0", 4 | "description": "This repository provides everything required to follow the OpenTelemetry Getting Started Guide", 5 | "main": "app.ts", 6 | "scripts": { 7 | "start": "ts-node app.ts" 8 | }, 9 | "author": "OpenTelemetry Authors", 10 | "license": "Apache-2.0", 11 | "devDependencies": { 12 | "@types/express": "4.17.11", 13 | "@types/node": "14.14.20", 14 | "ts-node": "8.10.2" 15 | }, 16 | "dependencies": { 17 | "axios": "^0.21.0", 18 | "express": "^4.17.1" 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/bug_report.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: Bug report 3 | about: Create a report to help us improve 4 | labels: bug 5 | --- 6 | 7 | Please answer these questions before submitting a bug report. 8 | 9 | ### What version of OpenTelemetry are you using? 10 | 11 | ### What version of Node are you using? 12 | 13 | ### Please provide the code you used to setup the OpenTelemetry SDK 14 | 15 | ### What did you do? 16 | 17 | If possible, provide a recipe for reproducing the error. 18 | 19 | ### What did you expect to see? 20 | 21 | ### What did you see instead? 22 | 23 | ### Additional context 24 | 25 | Add any other context about the problem here. 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 | -------------------------------------------------------------------------------- /lerna.json: -------------------------------------------------------------------------------- 1 | { 2 | "lerna": "3.13.4", 3 | "npmClient": "npm", 4 | "packages": [ 5 | "benchmark/*", 6 | "backwards-compatability/*", 7 | "metapackages/*", 8 | "packages/*", 9 | "integration-tests/*" 10 | ], 11 | "version": "0.17.0", 12 | "changelog": { 13 | "repo": "open-telemetry/opentelemetry-js", 14 | "labels": { 15 | "breaking": ":boom: Breaking Change", 16 | "enhancement": ":rocket: (Enhancement)", 17 | "bug": ":bug: (Bug Fix)", 18 | "core": ":wrench: Core", 19 | "document": ":books: (Refine Doc)", 20 | "feature-request": ":sparkles: (Feature)" 21 | }, 22 | "cacheDir": ".changelog" 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /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 | "module": "commonjs", 10 | "noEmitOnError": true, 11 | "noFallthroughCasesInSwitch": true, 12 | "noImplicitReturns": true, 13 | "noUnusedLocals": true, 14 | "pretty": true, 15 | "sourceMap": true, 16 | "strict": true, 17 | "strictNullChecks": true, 18 | "target": "es2017", 19 | "incremental": true, 20 | "newLine": "LF" 21 | }, 22 | "exclude": [ 23 | "node_modules" 24 | ] 25 | } 26 | -------------------------------------------------------------------------------- /examples/collector-exporter-node/docker/collector-config.yaml: -------------------------------------------------------------------------------- 1 | receivers: 2 | otlp: 3 | protocols: 4 | grpc: 5 | http: 6 | cors_allowed_origins: 7 | - http://* 8 | - https://* 9 | 10 | exporters: 11 | zipkin: 12 | endpoint: "http://zipkin-all-in-one:9411/api/v2/spans" 13 | prometheus: 14 | endpoint: "0.0.0.0:9464" 15 | 16 | processors: 17 | batch: 18 | queued_retry: 19 | 20 | service: 21 | pipelines: 22 | traces: 23 | receivers: [otlp] 24 | exporters: [zipkin] 25 | processors: [batch, queued_retry] 26 | metrics: 27 | receivers: [otlp] 28 | exporters: [prometheus] 29 | processors: [batch, queued_retry] 30 | -------------------------------------------------------------------------------- /examples/https/server-cert.pem: -------------------------------------------------------------------------------- 1 | -----BEGIN CERTIFICATE----- 2 | MIIBqzCCARQCCQDLcUeJsLDL5jANBgkqhkiG9w0BAQUFADAaMQswCQYDVQQGEwJD 3 | QTELMAkGA1UECAwCUUMwHhcNMTkwOTI5MjIwMDI2WhcNMTkxMDI5MjIwMDI2WjAa 4 | MQswCQYDVQQGEwJDQTELMAkGA1UECAwCUUMwgZ8wDQYJKoZIhvcNAQEBBQADgY0A 5 | MIGJAoGBALhfi1dwIyC1Jha4N/j/VtlPPi+j+SZQGZqLNVVgzzGY7+cc3VkCySZD 6 | yXh3Z+/ftp9DDKdHRutJQE0R4peSDussC/IQDJKzuKN/O9S6tnNlgUr5YZLRENxL 7 | FSJIY5cIkty50IrEhlN5QeDJP8p4yrYq9J6M0yzyfdqIWI3CBqbzAgMBAAEwDQYJ 8 | KoZIhvcNAQEFBQADgYEArnOeXmXXJTK39Ma25elHxlYUZiYOBu/truy5zmx4umyS 9 | GyehAv+jRIanoCRWtOBnrjS5CY/6cC64aIVLMoqXEFIL7q/GD0wEM/DS8rN7KTcp 10 | w+nIX98srYaAFeQZScPioS6WpXz5AjbTVhvAwkIm2/s6dOlX31+1zu6Zu6ASSuQ= 11 | -----END CERTIFICATE----- 12 | -------------------------------------------------------------------------------- /packages/opentelemetry-exporter-collector/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../tsconfig.base.json", 3 | "compilerOptions": { 4 | "rootDir": ".", 5 | "outDir": "build" 6 | }, 7 | "include": [ 8 | "src/**/*.ts", 9 | "test/**/*.ts" 10 | ], 11 | "references": [ 12 | { 13 | "path": "../opentelemetry-api" 14 | }, 15 | { 16 | "path": "../opentelemetry-api-metrics" 17 | }, 18 | { 19 | "path": "../opentelemetry-core" 20 | }, 21 | { 22 | "path": "../opentelemetry-metrics" 23 | }, 24 | { 25 | "path": "../opentelemetry-resources" 26 | }, 27 | { 28 | "path": "../opentelemetry-tracing" 29 | } 30 | ] 31 | } 32 | -------------------------------------------------------------------------------- /packages/opentelemetry-node/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../tsconfig.base.json", 3 | "compilerOptions": { 4 | "rootDir": ".", 5 | "outDir": "build" 6 | }, 7 | "include": [ 8 | "src/**/*.ts", 9 | "test/**/*.ts" 10 | ], 11 | "references": [ 12 | { 13 | "path": "../opentelemetry-api" 14 | }, 15 | { 16 | "path": "../opentelemetry-context-async-hooks" 17 | }, 18 | { 19 | "path": "../opentelemetry-context-base" 20 | }, 21 | { 22 | "path": "../opentelemetry-core" 23 | }, 24 | { 25 | "path": "../opentelemetry-resources" 26 | }, 27 | { 28 | "path": "../opentelemetry-tracing" 29 | } 30 | ] 31 | } 32 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /packages/opentelemetry-plugin-https/test/fixtures/server-cert.pem: -------------------------------------------------------------------------------- 1 | -----BEGIN CERTIFICATE----- 2 | MIIBqzCCARQCCQDLcUeJsLDL5jANBgkqhkiG9w0BAQUFADAaMQswCQYDVQQGEwJD 3 | QTELMAkGA1UECAwCUUMwHhcNMTkwOTI5MjIwMDI2WhcNMTkxMDI5MjIwMDI2WjAa 4 | MQswCQYDVQQGEwJDQTELMAkGA1UECAwCUUMwgZ8wDQYJKoZIhvcNAQEBBQADgY0A 5 | MIGJAoGBALhfi1dwIyC1Jha4N/j/VtlPPi+j+SZQGZqLNVVgzzGY7+cc3VkCySZD 6 | yXh3Z+/ftp9DDKdHRutJQE0R4peSDussC/IQDJKzuKN/O9S6tnNlgUr5YZLRENxL 7 | FSJIY5cIkty50IrEhlN5QeDJP8p4yrYq9J6M0yzyfdqIWI3CBqbzAgMBAAEwDQYJ 8 | KoZIhvcNAQEFBQADgYEArnOeXmXXJTK39Ma25elHxlYUZiYOBu/truy5zmx4umyS 9 | GyehAv+jRIanoCRWtOBnrjS5CY/6cC64aIVLMoqXEFIL7q/GD0wEM/DS8rN7KTcp 10 | w+nIX98srYaAFeQZScPioS6WpXz5AjbTVhvAwkIm2/s6dOlX31+1zu6Zu6ASSuQ= 11 | -----END CERTIFICATE----- 12 | -------------------------------------------------------------------------------- /packages/opentelemetry-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-grpc-utils/test/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 './grpcUtils.test'; 17 | -------------------------------------------------------------------------------- /packages/opentelemetry-instrumentation-http/test/fixtures/server-cert.pem: -------------------------------------------------------------------------------- 1 | -----BEGIN CERTIFICATE----- 2 | MIIBqzCCARQCCQDLcUeJsLDL5jANBgkqhkiG9w0BAQUFADAaMQswCQYDVQQGEwJD 3 | QTELMAkGA1UECAwCUUMwHhcNMTkwOTI5MjIwMDI2WhcNMTkxMDI5MjIwMDI2WjAa 4 | MQswCQYDVQQGEwJDQTELMAkGA1UECAwCUUMwgZ8wDQYJKoZIhvcNAQEBBQADgY0A 5 | MIGJAoGBALhfi1dwIyC1Jha4N/j/VtlPPi+j+SZQGZqLNVVgzzGY7+cc3VkCySZD 6 | yXh3Z+/ftp9DDKdHRutJQE0R4peSDussC/IQDJKzuKN/O9S6tnNlgUr5YZLRENxL 7 | FSJIY5cIkty50IrEhlN5QeDJP8p4yrYq9J6M0yzyfdqIWI3CBqbzAgMBAAEwDQYJ 8 | KoZIhvcNAQEFBQADgYEArnOeXmXXJTK39Ma25elHxlYUZiYOBu/truy5zmx4umyS 9 | GyehAv+jRIanoCRWtOBnrjS5CY/6cC64aIVLMoqXEFIL7q/GD0wEM/DS8rN7KTcp 10 | w+nIX98srYaAFeQZScPioS6WpXz5AjbTVhvAwkIm2/s6dOlX31+1zu6Zu6ASSuQ= 11 | -----END CERTIFICATE----- 12 | -------------------------------------------------------------------------------- /packages/opentelemetry-plugin-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 './grpc'; 18 | -------------------------------------------------------------------------------- /packages/opentelemetry-plugin-https/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 './https'; 18 | -------------------------------------------------------------------------------- /packages/opentelemetry-api-metrics/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-plugin-grpc-js/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 './grpcJs'; 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 | -------------------------------------------------------------------------------- /packages/opentelemetry-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 | -------------------------------------------------------------------------------- /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-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-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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /packages/opentelemetry-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 | -------------------------------------------------------------------------------- /packages/opentelemetry-exporter-collector/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-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-plugin-grpc-js/src/server/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 './patchServer'; 18 | -------------------------------------------------------------------------------- /packages/opentelemetry-resource-detector-aws/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 './detectors'; 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 | -------------------------------------------------------------------------------- /packages/opentelemetry-api-metrics/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 | -------------------------------------------------------------------------------- /packages/opentelemetry-api-metrics/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 | -------------------------------------------------------------------------------- /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-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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /getting-started/ts-example/monitored-example/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "@opentelemetry/getting-started-monitored-ts-example", 3 | "version": "0.17.0", 4 | "description": "This repository provides everything required to follow the OpenTelemetry Getting Started Guide", 5 | "main": "app.ts", 6 | "scripts": { 7 | "start": "ts-node app.ts" 8 | }, 9 | "author": "OpenTelemetry Authors", 10 | "license": "Apache-2.0", 11 | "devDependencies": { 12 | "@types/express": "4.17.11", 13 | "@types/node": "14.14.20", 14 | "ts-node": "8.10.2" 15 | }, 16 | "dependencies": { 17 | "@opentelemetry/exporter-prometheus": "^0.17.0", 18 | "@opentelemetry/metrics": "^0.17.0", 19 | "axios": "^0.21.0", 20 | "express": "^4.17.1" 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /packages/opentelemetry-resource-detector-gcp/src/detectors/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 './GcpDetector'; 18 | -------------------------------------------------------------------------------- /packages/opentelemetry-resources/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 './detect-resources'; 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-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 | -------------------------------------------------------------------------------- /packages/opentelemetry-exporter-collector-grpc/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../tsconfig.base.json", 3 | "compilerOptions": { 4 | "rootDir": ".", 5 | "outDir": "build" 6 | }, 7 | "include": [ 8 | "src/**/*.ts", 9 | "test/**/*.ts" 10 | ], 11 | "references": [ 12 | { 13 | "path": "../opentelemetry-api" 14 | }, 15 | { 16 | "path": "../opentelemetry-api-metrics" 17 | }, 18 | { 19 | "path": "../opentelemetry-core" 20 | }, 21 | { 22 | "path": "../opentelemetry-exporter-collector" 23 | }, 24 | { 25 | "path": "../opentelemetry-metrics" 26 | }, 27 | { 28 | "path": "../opentelemetry-resources" 29 | }, 30 | { 31 | "path": "../opentelemetry-tracing" 32 | } 33 | ] 34 | } 35 | -------------------------------------------------------------------------------- /packages/opentelemetry-grpc-utils/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../tsconfig.base.json", 3 | "compilerOptions": { 4 | "rootDir": ".", 5 | "outDir": "build" 6 | }, 7 | "include": [ 8 | "src/**/*.ts", 9 | "test/**/*.ts" 10 | ], 11 | "references": [ 12 | { 13 | "path": "../opentelemetry-api" 14 | }, 15 | { 16 | "path": "../opentelemetry-context-async-hooks" 17 | }, 18 | { 19 | "path": "../opentelemetry-context-base" 20 | }, 21 | { 22 | "path": "../opentelemetry-core" 23 | }, 24 | { 25 | "path": "../opentelemetry-node" 26 | }, 27 | { 28 | "path": "../opentelemetry-semantic-conventions" 29 | }, 30 | { 31 | "path": "../opentelemetry-tracing" 32 | } 33 | ] 34 | } 35 | -------------------------------------------------------------------------------- /packages/opentelemetry-plugin-http/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../tsconfig.base.json", 3 | "compilerOptions": { 4 | "rootDir": ".", 5 | "outDir": "build" 6 | }, 7 | "include": [ 8 | "src/**/*.ts", 9 | "test/**/*.ts" 10 | ], 11 | "references": [ 12 | { 13 | "path": "../opentelemetry-api" 14 | }, 15 | { 16 | "path": "../opentelemetry-context-async-hooks" 17 | }, 18 | { 19 | "path": "../opentelemetry-context-base" 20 | }, 21 | { 22 | "path": "../opentelemetry-core" 23 | }, 24 | { 25 | "path": "../opentelemetry-node" 26 | }, 27 | { 28 | "path": "../opentelemetry-semantic-conventions" 29 | }, 30 | { 31 | "path": "../opentelemetry-tracing" 32 | } 33 | ] 34 | } 35 | -------------------------------------------------------------------------------- /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-collector-proto/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../tsconfig.base.json", 3 | "compilerOptions": { 4 | "rootDir": ".", 5 | "outDir": "build" 6 | }, 7 | "include": [ 8 | "src/**/*.ts", 9 | "test/**/*.ts" 10 | ], 11 | "references": [ 12 | { 13 | "path": "../opentelemetry-api" 14 | }, 15 | { 16 | "path": "../opentelemetry-api-metrics" 17 | }, 18 | { 19 | "path": "../opentelemetry-core" 20 | }, 21 | { 22 | "path": "../opentelemetry-exporter-collector" 23 | }, 24 | { 25 | "path": "../opentelemetry-metrics" 26 | }, 27 | { 28 | "path": "../opentelemetry-resources" 29 | }, 30 | { 31 | "path": "../opentelemetry-tracing" 32 | } 33 | ] 34 | } 35 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /packages/opentelemetry-instrumentation/test/node/node_modules/@opentelemetry/plugin-http-module/http-module.js: -------------------------------------------------------------------------------- 1 | Object.defineProperty(exports, "__esModule", { value: true }); 2 | const { BasePlugin } = require('../../../BasePlugin'); 3 | const shimmer = require("shimmer"); 4 | 5 | class HttpModulePlugin extends BasePlugin { 6 | constructor() { 7 | super(); 8 | this.moduleName = 'http'; 9 | } 10 | 11 | patch() { 12 | shimmer.wrap(this._moduleExports, 'get', orig => () => 'patched'); 13 | return this._moduleExports; 14 | } 15 | 16 | unpatch() { 17 | shimmer.unwrap(this._moduleExports, 'get'); 18 | } 19 | } 20 | exports.HttpModulePlugin = HttpModulePlugin; 21 | const plugin = new HttpModulePlugin(); 22 | exports.plugin = plugin; 23 | -------------------------------------------------------------------------------- /packages/opentelemetry-exporter-collector-proto/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 enum ServiceClientType { 18 | SPANS, 19 | METRICS, 20 | } 21 | -------------------------------------------------------------------------------- /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 './export/types'; 19 | -------------------------------------------------------------------------------- /packages/opentelemetry-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 | -------------------------------------------------------------------------------- /packages/opentelemetry-resources/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 './detect-resources'; 18 | export * from './detectors'; 19 | -------------------------------------------------------------------------------- /metapackages/plugins-web-core/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "@opentelemetry/plugins-web-core", 3 | "version": "0.17.0", 4 | "description": "Metapackage which bundles all opentelemetry web core plugins", 5 | "author": "OpenTelemetry Authors", 6 | "homepage": "https://github.com/open-telemetry/opentelemetry-js#readme", 7 | "license": "Apache-2.0", 8 | "publishConfig": { 9 | "access": "public" 10 | }, 11 | "repository": { 12 | "type": "git", 13 | "url": "git+https://github.com/open-telemetry/opentelemetry-js.git" 14 | }, 15 | "bugs": { 16 | "url": "https://github.com/open-telemetry/opentelemetry-js/issues" 17 | }, 18 | "dependencies": { 19 | "@opentelemetry/instrumentation-xml-http-request": "^0.17.0" 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /packages/opentelemetry-plugin-grpc-js/src/client/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 './loadPackageDefinition'; 18 | export * from './patchClient'; 19 | -------------------------------------------------------------------------------- /packages/opentelemetry-plugin-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-api/src/version.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 | // this is autogenerated file, see scripts/version-update.js 18 | export const VERSION = '0.17.0'; 19 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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-resources/src/platform/node/detectors/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 './EnvDetector'; 18 | export * from './ProcessDetector'; 19 | -------------------------------------------------------------------------------- /packages/opentelemetry-web/src/version.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 | // this is autogenerated file, see scripts/version-update.js 18 | export const VERSION = '0.17.0'; 19 | -------------------------------------------------------------------------------- /integration-tests/propagation-validation-server/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "propagation-validation-server", 3 | "version": "0.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": "^0.17.0", 15 | "@opentelemetry/context-async-hooks": "^0.17.0", 16 | "@opentelemetry/core": "^0.17.0", 17 | "@opentelemetry/tracing": "^0.17.0", 18 | "axios": "0.21.1", 19 | "body-parser": "1.19.0", 20 | "express": "4.17.1" 21 | }, 22 | "devDependencies": { 23 | "typescript": "4.1.3" 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /packages/opentelemetry-core/src/version.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 | // this is autogenerated file, see scripts/version-update.js 18 | export const VERSION = '0.17.0'; 19 | -------------------------------------------------------------------------------- /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 | export * from './old/autoLoader'; 19 | -------------------------------------------------------------------------------- /packages/opentelemetry-metrics/src/version.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 | // this is autogenerated file, see scripts/version-update.js 18 | export const VERSION = '0.17.0'; 19 | -------------------------------------------------------------------------------- /packages/opentelemetry-node/src/version.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 | // this is autogenerated file, see scripts/version-update.js 18 | export const VERSION = '0.17.0'; 19 | -------------------------------------------------------------------------------- /packages/opentelemetry-sdk-node/src/version.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 | // this is autogenerated file, see scripts/version-update.js 18 | export const VERSION = '0.17.0'; 19 | -------------------------------------------------------------------------------- /packages/opentelemetry-tracing/src/version.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 | // this is autogenerated file, see scripts/version-update.js 18 | export const VERSION = '0.17.0'; 19 | -------------------------------------------------------------------------------- /packages/opentelemetry-api-metrics/src/version.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 | // this is autogenerated file, see scripts/version-update.js 18 | export const VERSION = '0.17.0'; 19 | -------------------------------------------------------------------------------- /packages/opentelemetry-context-base/src/version.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 | // this is autogenerated file, see scripts/version-update.js 18 | export const VERSION = '0.17.0'; 19 | -------------------------------------------------------------------------------- /packages/opentelemetry-context-zone/src/version.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 | // this is autogenerated file, see scripts/version-update.js 18 | export const VERSION = '0.17.0'; 19 | -------------------------------------------------------------------------------- /packages/opentelemetry-exporter-collector-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 './CollectorTraceExporter'; 18 | export * from './CollectorMetricExporter'; 19 | -------------------------------------------------------------------------------- /packages/opentelemetry-exporter-collector-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 './CollectorTraceExporter'; 18 | export * from './CollectorMetricExporter'; 19 | -------------------------------------------------------------------------------- /packages/opentelemetry-grpc-utils/src/version.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 | // this is autogenerated file, see scripts/version-update.js 18 | export const VERSION = '0.17.0'; 19 | -------------------------------------------------------------------------------- /packages/opentelemetry-plugin-grpc/src/version.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 | // this is autogenerated file, see scripts/version-update.js 18 | export const VERSION = '0.17.0'; 19 | -------------------------------------------------------------------------------- /packages/opentelemetry-plugin-http/src/version.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 | // this is autogenerated file, see scripts/version-update.js 18 | export const VERSION = '0.17.0'; 19 | -------------------------------------------------------------------------------- /packages/opentelemetry-plugin-https/src/version.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 | // this is autogenerated file, see scripts/version-update.js 18 | export const VERSION = '0.17.0'; 19 | -------------------------------------------------------------------------------- /packages/opentelemetry-propagator-b3/src/version.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 | // this is autogenerated file, see scripts/version-update.js 18 | export const VERSION = '0.17.0'; 19 | -------------------------------------------------------------------------------- /packages/opentelemetry-resources/src/version.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 | // this is autogenerated file, see scripts/version-update.js 18 | export const VERSION = '0.17.0'; 19 | -------------------------------------------------------------------------------- /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-exporter-collector/src/version.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 | // this is autogenerated file, see scripts/version-update.js 18 | export const VERSION = '0.17.0'; 19 | -------------------------------------------------------------------------------- /packages/opentelemetry-exporter-jaeger/src/version.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 | // this is autogenerated file, see scripts/version-update.js 18 | export const VERSION = '0.17.0'; 19 | -------------------------------------------------------------------------------- /packages/opentelemetry-exporter-zipkin/src/version.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 | // this is autogenerated file, see scripts/version-update.js 18 | export const VERSION = '0.17.0'; 19 | -------------------------------------------------------------------------------- /packages/opentelemetry-instrumentation/src/version.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 | // this is autogenerated file, see scripts/version-update.js 18 | export const VERSION = '0.17.0'; 19 | -------------------------------------------------------------------------------- /packages/opentelemetry-metrics/src/export/aggregators/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 './Histogram'; 18 | export * from './LastValue'; 19 | export * from './Sum'; 20 | -------------------------------------------------------------------------------- /packages/opentelemetry-plugin-grpc-js/src/version.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 | // this is autogenerated file, see scripts/version-update.js 18 | export const VERSION = '0.17.0'; 19 | -------------------------------------------------------------------------------- /packages/opentelemetry-shim-opentracing/src/version.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 | // this is autogenerated file, see scripts/version-update.js 18 | export const VERSION = '0.17.0'; 19 | -------------------------------------------------------------------------------- /packages/opentelemetry-context-async-hooks/src/version.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 | // this is autogenerated file, see scripts/version-update.js 18 | export const VERSION = '0.17.0'; 19 | -------------------------------------------------------------------------------- /packages/opentelemetry-context-zone-peer-dep/src/version.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 | // this is autogenerated file, see scripts/version-update.js 18 | export const VERSION = '0.17.0'; 19 | -------------------------------------------------------------------------------- /packages/opentelemetry-exporter-collector-grpc/src/version.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 | // this is autogenerated file, see scripts/version-update.js 18 | export const VERSION = '0.17.0'; 19 | -------------------------------------------------------------------------------- /packages/opentelemetry-exporter-prometheus/src/version.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 | // this is autogenerated file, see scripts/version-update.js 18 | export const VERSION = '0.17.0'; 19 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /packages/opentelemetry-instrumentation-fetch/src/version.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 | // this is autogenerated file, see scripts/version-update.js 18 | export const VERSION = '0.17.0'; 19 | -------------------------------------------------------------------------------- /packages/opentelemetry-instrumentation-grpc/src/version.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 | // this is autogenerated file, see scripts/version-update.js 18 | export const VERSION = '0.17.0'; 19 | -------------------------------------------------------------------------------- /packages/opentelemetry-instrumentation-http/src/version.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 | // this is autogenerated file, see scripts/version-update.js 18 | export const VERSION = '0.17.0'; 19 | -------------------------------------------------------------------------------- /packages/opentelemetry-resource-detector-aws/src/version.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 | // this is autogenerated file, see scripts/version-update.js 18 | export const VERSION = '0.17.0'; 19 | -------------------------------------------------------------------------------- /packages/opentelemetry-resource-detector-gcp/src/version.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 | // this is autogenerated file, see scripts/version-update.js 18 | export const VERSION = '0.17.0'; 19 | -------------------------------------------------------------------------------- /packages/opentelemetry-semantic-conventions/src/version.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 | // this is autogenerated file, see scripts/version-update.js 18 | export const VERSION = '0.17.0'; 19 | -------------------------------------------------------------------------------- /packages/opentelemetry-exporter-collector-proto/src/version.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 | // this is autogenerated file, see scripts/version-update.js 18 | export const VERSION = '0.17.0'; 19 | -------------------------------------------------------------------------------- /packages/opentelemetry-exporter-collector/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 './CollectorTraceExporter'; 18 | export * from './CollectorMetricExporter'; 19 | -------------------------------------------------------------------------------- /packages/opentelemetry-instrumentation-xml-http-request/src/version.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 | // this is autogenerated file, see scripts/version-update.js 18 | export const VERSION = '0.17.0'; 19 | -------------------------------------------------------------------------------- /packages/opentelemetry-context-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 | 17 | export { createContextKey, ROOT_CONTEXT } from './context'; 18 | export * from './NoopContextManager'; 19 | export * from './types'; 20 | -------------------------------------------------------------------------------- /packages/opentelemetry-plugin-grpc/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../tsconfig.base.json", 3 | "compilerOptions": { 4 | "rootDir": ".", 5 | "outDir": "build" 6 | }, 7 | "include": [ 8 | "src/**/*.ts", 9 | "test/**/*.ts" 10 | ], 11 | "references": [ 12 | { 13 | "path": "../opentelemetry-api" 14 | }, 15 | { 16 | "path": "../opentelemetry-context-async-hooks" 17 | }, 18 | { 19 | "path": "../opentelemetry-context-base" 20 | }, 21 | { 22 | "path": "../opentelemetry-core" 23 | }, 24 | { 25 | "path": "../opentelemetry-grpc-utils" 26 | }, 27 | { 28 | "path": "../opentelemetry-node" 29 | }, 30 | { 31 | "path": "../opentelemetry-semantic-conventions" 32 | }, 33 | { 34 | "path": "../opentelemetry-tracing" 35 | } 36 | ] 37 | } 38 | -------------------------------------------------------------------------------- /packages/opentelemetry-resource-detector-gcp/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 './detectors'; 18 | 19 | // Internal - used for tests only 20 | export { resetIsAvailableCache } from 'gcp-metadata'; 21 | -------------------------------------------------------------------------------- /packages/opentelemetry-plugin-grpc-js/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../tsconfig.base.json", 3 | "compilerOptions": { 4 | "rootDir": ".", 5 | "outDir": "build" 6 | }, 7 | "include": [ 8 | "src/**/*.ts", 9 | "test/**/*.ts" 10 | ], 11 | "references": [ 12 | { 13 | "path": "../opentelemetry-api" 14 | }, 15 | { 16 | "path": "../opentelemetry-context-async-hooks" 17 | }, 18 | { 19 | "path": "../opentelemetry-context-base" 20 | }, 21 | { 22 | "path": "../opentelemetry-core" 23 | }, 24 | { 25 | "path": "../opentelemetry-grpc-utils" 26 | }, 27 | { 28 | "path": "../opentelemetry-node" 29 | }, 30 | { 31 | "path": "../opentelemetry-semantic-conventions" 32 | }, 33 | { 34 | "path": "../opentelemetry-tracing" 35 | } 36 | ] 37 | } 38 | -------------------------------------------------------------------------------- /packages/opentelemetry-plugin-https/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../tsconfig.base.json", 3 | "compilerOptions": { 4 | "rootDir": ".", 5 | "outDir": "build" 6 | }, 7 | "include": [ 8 | "src/**/*.ts", 9 | "test/**/*.ts" 10 | ], 11 | "references": [ 12 | { 13 | "path": "../opentelemetry-api" 14 | }, 15 | { 16 | "path": "../opentelemetry-context-async-hooks" 17 | }, 18 | { 19 | "path": "../opentelemetry-context-base" 20 | }, 21 | { 22 | "path": "../opentelemetry-core" 23 | }, 24 | { 25 | "path": "../opentelemetry-node" 26 | }, 27 | { 28 | "path": "../opentelemetry-plugin-http" 29 | }, 30 | { 31 | "path": "../opentelemetry-semantic-conventions" 32 | }, 33 | { 34 | "path": "../opentelemetry-tracing" 35 | } 36 | ] 37 | } 38 | -------------------------------------------------------------------------------- /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 './B3SinglePropagator'; 19 | export * from './B3MultiPropagator'; 20 | export * from './types'; 21 | -------------------------------------------------------------------------------- /packages/opentelemetry-instrumentation-http/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../tsconfig.base.json", 3 | "compilerOptions": { 4 | "rootDir": ".", 5 | "outDir": "build" 6 | }, 7 | "include": [ 8 | "src/**/*.ts", 9 | "test/**/*.ts" 10 | ], 11 | "references": [ 12 | { 13 | "path": "../opentelemetry-api" 14 | }, 15 | { 16 | "path": "../opentelemetry-context-async-hooks" 17 | }, 18 | { 19 | "path": "../opentelemetry-context-base" 20 | }, 21 | { 22 | "path": "../opentelemetry-core" 23 | }, 24 | { 25 | "path": "../opentelemetry-instrumentation" 26 | }, 27 | { 28 | "path": "../opentelemetry-node" 29 | }, 30 | { 31 | "path": "../opentelemetry-semantic-conventions" 32 | }, 33 | { 34 | "path": "../opentelemetry-tracing" 35 | } 36 | ] 37 | } 38 | -------------------------------------------------------------------------------- /packages/opentelemetry-resources/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 './Resource'; 18 | export * from './platform'; 19 | export * from './constants'; 20 | export * from './types'; 21 | export * from './config'; 22 | -------------------------------------------------------------------------------- /packages/opentelemetry-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 | -------------------------------------------------------------------------------- /packages/opentelemetry-web/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../tsconfig.base.json", 3 | "compilerOptions": { 4 | "rootDir": ".", 5 | "outDir": "build", 6 | "skipLibCheck": true 7 | }, 8 | "include": [ 9 | "src/**/*.ts", 10 | "test/**/*.ts" 11 | ], 12 | "references": [ 13 | { 14 | "path": "../opentelemetry-api" 15 | }, 16 | { 17 | "path": "../opentelemetry-context-base" 18 | }, 19 | { 20 | "path": "../opentelemetry-context-zone" 21 | }, 22 | { 23 | "path": "../opentelemetry-core" 24 | }, 25 | { 26 | "path": "../opentelemetry-propagator-b3" 27 | }, 28 | { 29 | "path": "../opentelemetry-resources" 30 | }, 31 | { 32 | "path": "../opentelemetry-semantic-conventions" 33 | }, 34 | { 35 | "path": "../opentelemetry-tracing" 36 | } 37 | ] 38 | } 39 | -------------------------------------------------------------------------------- /packages/opentelemetry-core/src/ExportResult.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 ExportResult { 18 | code: ExportResultCode; 19 | error?: Error; 20 | } 21 | 22 | export enum ExportResultCode { 23 | SUCCESS, 24 | FAILED, 25 | } 26 | -------------------------------------------------------------------------------- /packages/opentelemetry-instrumentation/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 './autoLoader'; 18 | export * from './platform/index'; 19 | export * from './types'; 20 | export * from './types_internal'; 21 | export * from './utils'; 22 | -------------------------------------------------------------------------------- /examples/collector-exporter-node/docker/docker-compose.yaml: -------------------------------------------------------------------------------- 1 | version: "3" 2 | services: 3 | # Collector 4 | collector: 5 | image: otel/opentelemetry-collector:0.16.0 6 | # image: otel/opentelemetry-collector:latest 7 | command: ["--config=/conf/collector-config.yaml", "--log-level=DEBUG"] 8 | volumes: 9 | - ./collector-config.yaml:/conf/collector-config.yaml 10 | ports: 11 | - "9464:9464" 12 | - "4317:4317" 13 | - "55681:55681" 14 | depends_on: 15 | - zipkin-all-in-one 16 | 17 | # Zipkin 18 | zipkin-all-in-one: 19 | image: openzipkin/zipkin:latest 20 | ports: 21 | - "9411:9411" 22 | 23 | # Prometheus 24 | prometheus: 25 | container_name: prometheus 26 | image: prom/prometheus:latest 27 | volumes: 28 | - ./prometheus.yaml:/etc/prometheus/prometheus.yml 29 | ports: 30 | - "9090:9090" 31 | -------------------------------------------------------------------------------- /packages/opentelemetry-resource-detector-aws/src/detectors/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 './AwsEc2Detector'; 18 | export * from './AwsBeanstalkDetector'; 19 | export * from './AwsEcsDetector'; 20 | export * from './AwsEksDetector'; 21 | -------------------------------------------------------------------------------- /examples/tracer-web/examples/zipkin/index.js: -------------------------------------------------------------------------------- 1 | import { ConsoleSpanExporter, SimpleSpanProcessor } from '@opentelemetry/tracing'; 2 | import { WebTracerProvider } from '@opentelemetry/web'; 3 | import { ZipkinExporter } from '@opentelemetry/exporter-zipkin'; 4 | 5 | const provider = new WebTracerProvider(); 6 | provider.addSpanProcessor(new SimpleSpanProcessor(new ConsoleSpanExporter())); 7 | provider.addSpanProcessor(new SimpleSpanProcessor(new ZipkinExporter())); 8 | 9 | provider.register(); 10 | 11 | const tracer = provider.getTracer('example-tracer-web'); 12 | 13 | const prepareClickEvent = () => { 14 | const element = document.getElementById('button1'); 15 | 16 | const onClick = () => { 17 | const span = tracer.startSpan('foo'); 18 | span.end(); 19 | }; 20 | element.addEventListener('click', onClick); 21 | }; 22 | 23 | window.addEventListener('load', prepareClickEvent); 24 | -------------------------------------------------------------------------------- /packages/opentelemetry-api/src/trace/link_context.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 { SpanContext } from './span_context'; 18 | 19 | /** 20 | * A pointer to another span. 21 | */ 22 | export type LinkContext = Pick; 23 | -------------------------------------------------------------------------------- /packages/opentelemetry-instrumentation-fetch/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../tsconfig.base.json", 3 | "compilerOptions": { 4 | "rootDir": ".", 5 | "outDir": "build", 6 | "skipLibCheck": true 7 | }, 8 | "include": [ 9 | "src/**/*.ts", 10 | "test/**/*.ts" 11 | ], 12 | "references": [ 13 | { 14 | "path": "../opentelemetry-api" 15 | }, 16 | { 17 | "path": "../opentelemetry-context-zone" 18 | }, 19 | { 20 | "path": "../opentelemetry-core" 21 | }, 22 | { 23 | "path": "../opentelemetry-instrumentation" 24 | }, 25 | { 26 | "path": "../opentelemetry-propagator-b3" 27 | }, 28 | { 29 | "path": "../opentelemetry-semantic-conventions" 30 | }, 31 | { 32 | "path": "../opentelemetry-tracing" 33 | }, 34 | { 35 | "path": "../opentelemetry-web" 36 | } 37 | ] 38 | } 39 | -------------------------------------------------------------------------------- /packages/opentelemetry-api/src/trace/trace_flags.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 enum TraceFlags { 17 | /** Represents no flag set. */ 18 | NONE = 0x0, 19 | /** Bit to represent whether trace is sampled in trace flags. */ 20 | SAMPLED = 0x1 << 0, 21 | } 22 | -------------------------------------------------------------------------------- /packages/opentelemetry-web/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 './WebTracerProvider'; 18 | export * from './StackContextManager'; 19 | export * from './enums/PerformanceTimingNames'; 20 | export * from './types'; 21 | export * from './utils'; 22 | -------------------------------------------------------------------------------- /packages/opentelemetry-instrumentation-xml-http-request/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../tsconfig.base.json", 3 | "compilerOptions": { 4 | "rootDir": ".", 5 | "outDir": "build", 6 | "skipLibCheck": true 7 | }, 8 | "include": [ 9 | "src/**/*.ts", 10 | "test/**/*.ts" 11 | ], 12 | "references": [ 13 | { 14 | "path": "../opentelemetry-api" 15 | }, 16 | { 17 | "path": "../opentelemetry-context-zone" 18 | }, 19 | { 20 | "path": "../opentelemetry-core" 21 | }, 22 | { 23 | "path": "../opentelemetry-instrumentation" 24 | }, 25 | { 26 | "path": "../opentelemetry-propagator-b3" 27 | }, 28 | { 29 | "path": "../opentelemetry-semantic-conventions" 30 | }, 31 | { 32 | "path": "../opentelemetry-tracing" 33 | }, 34 | { 35 | "path": "../opentelemetry-web" 36 | } 37 | ] 38 | } 39 | -------------------------------------------------------------------------------- /getting-started/traced-example/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "@opentelemetry/getting-started-traced-example", 3 | "version": "0.17.0", 4 | "description": "This repository provides everything required to follow the OpenTelemetry Getting Started Guide", 5 | "main": "app.js", 6 | "scripts": { 7 | "start": "node -r ./tracing.js app.js" 8 | }, 9 | "author": "OpenTelemetry Authors", 10 | "license": "Apache-2.0", 11 | "dependencies": { 12 | "@opentelemetry/core": "^0.14.0", 13 | "@opentelemetry/exporter-zipkin": "^0.14.0", 14 | "@opentelemetry/node": "^0.14.0", 15 | "@opentelemetry/instrumentation": "^0.17.0", 16 | "@opentelemetry/plugin-express": "^0.12.1", 17 | "@opentelemetry/plugin-http": "^0.14.0", 18 | "@opentelemetry/plugin-https": "^0.14.0", 19 | "@opentelemetry/tracing": "^0.14.0", 20 | "axios": "^0.21.0", 21 | "express": "^4.17.1" 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /packages/opentelemetry-api/src/common/Time.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 type HrTime = [number, number]; 17 | 18 | /** 19 | * Defines TimeInput. 20 | * 21 | * hrtime, epoch milliseconds, performance.now() or Date 22 | */ 23 | export type TimeInput = HrTime | number | Date; 24 | -------------------------------------------------------------------------------- /getting-started/traced-example/tracing.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | 3 | const { NodeTracerProvider } = require("@opentelemetry/node"); 4 | const { SimpleSpanProcessor } = require("@opentelemetry/tracing"); 5 | const { ZipkinExporter } = require("@opentelemetry/exporter-zipkin"); 6 | const { registerInstrumentations } = require('@opentelemetry/instrumentation'); 7 | 8 | const provider = new NodeTracerProvider(); 9 | 10 | provider.addSpanProcessor( 11 | new SimpleSpanProcessor( 12 | new ZipkinExporter({ 13 | serviceName: "getting-started" 14 | // If you are running your tracing backend on another host, 15 | // you can point to it using the `url` parameter of the 16 | // exporter config. 17 | }) 18 | ) 19 | ); 20 | 21 | provider.register(); 22 | 23 | // load old default plugins 24 | registerInstrumentations({ 25 | tracerProvider: provider, 26 | }); 27 | 28 | console.log("tracing initialized"); 29 | -------------------------------------------------------------------------------- /packages/opentelemetry-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 | const testsContext = require.context('.', true, /test$/); 17 | testsContext.keys().forEach(testsContext); 18 | 19 | const srcContext = require.context('.', true, /src$/); 20 | srcContext.keys().forEach(srcContext); 21 | -------------------------------------------------------------------------------- /packages/opentelemetry-web/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 | const testsContext = require.context('.', true, /test$/); 17 | testsContext.keys().forEach(testsContext); 18 | 19 | const srcContext = require.context('.', true, /src$/); 20 | srcContext.keys().forEach(srcContext); 21 | -------------------------------------------------------------------------------- /.github/PULL_REQUEST_TEMPLATE.md: -------------------------------------------------------------------------------- 1 | 15 | 16 | ## Which problem is this PR solving? 17 | 18 | - 19 | 20 | ## Short description of the changes 21 | 22 | - 23 | -------------------------------------------------------------------------------- /packages/opentelemetry-tracing/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 | const testsContext = require.context('.', true, /test$/); 17 | testsContext.keys().forEach(testsContext); 18 | 19 | const srcContext = require.context('.', true, /src$/); 20 | srcContext.keys().forEach(srcContext); 21 | -------------------------------------------------------------------------------- /packages/opentelemetry-api-metrics/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 | const testsContext = require.context('.', true, /test$/); 17 | testsContext.keys().forEach(testsContext); 18 | 19 | const srcContext = require.context('.', true, /src$/); 20 | srcContext.keys().forEach(srcContext); 21 | -------------------------------------------------------------------------------- /packages/opentelemetry-exporter-collector/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 './CollectorTraceExporter'; 18 | export * from './CollectorMetricExporter'; 19 | export * from './CollectorExporterNodeBase'; 20 | export * from './util'; 21 | export * from './types'; 22 | -------------------------------------------------------------------------------- /getting-started/ts-example/traced-example/tracing.ts: -------------------------------------------------------------------------------- 1 | import { NodeTracerProvider } from '@opentelemetry/node'; 2 | 3 | import { SimpleSpanProcessor } from '@opentelemetry/tracing'; 4 | import { ZipkinExporter } from '@opentelemetry/exporter-zipkin'; 5 | // For Jaeger, use the following line instead: 6 | // import { JaegerExporter } from '@opentelemetry/exporter-jaeger'; 7 | 8 | const provider: NodeTracerProvider = new NodeTracerProvider(); 9 | 10 | provider.register(); 11 | 12 | provider.addSpanProcessor( 13 | new SimpleSpanProcessor( 14 | new ZipkinExporter({ 15 | // For Jaeger, use the following line instead: 16 | // new JaegerExporter({ 17 | serviceName: 'getting-started', 18 | // If you are running your tracing backend on another host, 19 | // you can point to it using the `url` parameter of the 20 | // exporter config. 21 | }), 22 | ), 23 | ); 24 | 25 | console.log('tracing initialized'); 26 | -------------------------------------------------------------------------------- /packages/opentelemetry-context-zone-peer-dep/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 | const testsContext = require.context('.', true, /test$/); 17 | testsContext.keys().forEach(testsContext); 18 | 19 | const srcContext = require.context('.', true, /src$/); 20 | srcContext.keys().forEach(srcContext); 21 | -------------------------------------------------------------------------------- /packages/opentelemetry-instrumentation-fetch/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 | const testsContext = require.context('.', true, /test$/); 17 | testsContext.keys().forEach(testsContext); 18 | 19 | const srcContext = require.context('.', true, /src$/); 20 | srcContext.keys().forEach(srcContext); 21 | -------------------------------------------------------------------------------- /packages/opentelemetry-instrumentation-grpc/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../tsconfig.base.json", 3 | "compilerOptions": { 4 | "rootDir": ".", 5 | "outDir": "build" 6 | }, 7 | "include": [ 8 | "src/**/*.ts", 9 | "test/**/*.ts" 10 | ], 11 | "references": [ 12 | { 13 | "path": "../opentelemetry-api" 14 | }, 15 | { 16 | "path": "../opentelemetry-api-metrics" 17 | }, 18 | { 19 | "path": "../opentelemetry-context-async-hooks" 20 | }, 21 | { 22 | "path": "../opentelemetry-context-base" 23 | }, 24 | { 25 | "path": "../opentelemetry-core" 26 | }, 27 | { 28 | "path": "../opentelemetry-instrumentation" 29 | }, 30 | { 31 | "path": "../opentelemetry-node" 32 | }, 33 | { 34 | "path": "../opentelemetry-semantic-conventions" 35 | }, 36 | { 37 | "path": "../opentelemetry-tracing" 38 | } 39 | ] 40 | } 41 | -------------------------------------------------------------------------------- /packages/opentelemetry-instrumentation/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 | export * from './instrumentation'; 17 | export * from './instrumentationNodeModuleDefinition'; 18 | export * from './instrumentationNodeModuleFile'; 19 | export * from './old/autoLoader'; 20 | export * from './types'; 21 | -------------------------------------------------------------------------------- /packages/opentelemetry-semantic-conventions/src/trace/exception.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 ExceptionAttribute = { 18 | MESSAGE: 'exception.message', 19 | STACKTRACE: 'exception.stacktrace', 20 | TYPE: 'exception.type', 21 | }; 22 | 23 | export const ExceptionEventName = 'exception'; 24 | -------------------------------------------------------------------------------- /metapackages/plugins-node-core/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "@opentelemetry/plugins-node-core", 3 | "version": "0.17.0", 4 | "description": "Metapackage which bundles all opentelemetry node core plugins", 5 | "author": "OpenTelemetry Authors", 6 | "homepage": "https://github.com/open-telemetry/opentelemetry-js#readme", 7 | "license": "Apache-2.0", 8 | "publishConfig": { 9 | "access": "public" 10 | }, 11 | "repository": { 12 | "type": "git", 13 | "url": "git+https://github.com/open-telemetry/opentelemetry-js.git" 14 | }, 15 | "bugs": { 16 | "url": "https://github.com/open-telemetry/opentelemetry-js/issues" 17 | }, 18 | "dependencies": { 19 | "@opentelemetry/plugin-grpc": "^0.17.0", 20 | "@opentelemetry/plugin-grpc-js": "^0.17.0", 21 | "@opentelemetry/plugin-http": "^0.17.0", 22 | "@opentelemetry/plugin-https": "^0.17.0" 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /packages/opentelemetry-api-metrics/src/types/Observation.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 { BaseObserver } from './Metric'; 18 | 19 | /** 20 | * Interface for updating value of certain value observer 21 | */ 22 | export interface Observation { 23 | observer: BaseObserver; 24 | value: number; 25 | } 26 | -------------------------------------------------------------------------------- /packages/opentelemetry-api/src/platform/node/globalThis.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 | /** only globals that common to node and browsers are allowed */ 18 | // eslint-disable-next-line node/no-unsupported-features/es-builtins 19 | export const _globalThis = typeof globalThis === 'object' ? globalThis : global; 20 | -------------------------------------------------------------------------------- /packages/opentelemetry-instrumentation-fetch/src/enums/AttributeNames.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 | * https://github.com/open-telemetry/opentelemetry-specification/blob/master/specification/trace/semantic_conventions/http.md 19 | */ 20 | export enum AttributeNames { 21 | COMPONENT = 'component', 22 | } 23 | -------------------------------------------------------------------------------- /packages/opentelemetry-instrumentation-xml-http-request/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 | const testsContext = require.context('.', true, /test$/); 17 | testsContext.keys().forEach(testsContext); 18 | 19 | const srcContext = require.context('.', true, /src$/); 20 | srcContext.keys().forEach(srcContext); 21 | -------------------------------------------------------------------------------- /packages/opentelemetry-propagator-b3/src/common.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 { createContextKey } from '@opentelemetry/api'; 18 | 19 | /** shared context for storing an extracted b3 debug flag */ 20 | export const B3_DEBUG_FLAG_KEY = createContextKey( 21 | 'OpenTelemetry Context Key B3 Debug Flag' 22 | ); 23 | -------------------------------------------------------------------------------- /packages/opentelemetry-api-metrics/src/platform/node/globalThis.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 | /** only globals that common to node and browsers are allowed */ 18 | // eslint-disable-next-line node/no-unsupported-features/es-builtins 19 | export const _globalThis = typeof globalThis === 'object' ? globalThis : global; 20 | -------------------------------------------------------------------------------- /packages/opentelemetry-instrumentation-xml-http-request/src/enums/EventNames.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 EventNames { 18 | METHOD_OPEN = 'open', 19 | METHOD_SEND = 'send', 20 | EVENT_ABORT = 'abort', 21 | EVENT_ERROR = 'error', 22 | EVENT_LOAD = 'loaded', 23 | EVENT_TIMEOUT = 'timeout', 24 | } 25 | -------------------------------------------------------------------------------- /examples/https/server-key.pem: -------------------------------------------------------------------------------- 1 | -----BEGIN RSA PRIVATE KEY----- 2 | MIICXQIBAAKBgQC4X4tXcCMgtSYWuDf4/1bZTz4vo/kmUBmaizVVYM8xmO/nHN1Z 3 | AskmQ8l4d2fv37afQwynR0brSUBNEeKXkg7rLAvyEAySs7ijfzvUurZzZYFK+WGS 4 | 0RDcSxUiSGOXCJLcudCKxIZTeUHgyT/KeMq2KvSejNMs8n3aiFiNwgam8wIDAQAB 5 | AoGBAKBztcYQduGeBFm9VCjDvgc8KTg4kTlAeCfAglec+nOFTzJoMlGmVPuR/qFx 6 | +OgOXtXW+goRw6w7gVQQ/os9tvCCp7awSC5UCfPejHh6bW2B0BF2lZJ6B9y+u5Fa 7 | /p8oKoJGcC4eagVnDojuoYJHSqWBf7d7V/U54NpxwgBTsHAhAkEA8PJROgWzjMl2 8 | Gs5j8oBldEqzrC/d4K1uMEvCTb4RJ+t6jWq+Ug/vqvCfIcLfxHbOmTbOHTfhpv/d 9 | NUf9eDyBGwJBAMPkZaHP5vPDd900MqypLVasollzxgPnMUg35EEQJLAbb/5xG3X9 10 | ZbaVDTRtLQYNFvDZLlTpRpCPxZCgrn9hJwkCQQDPEVChLrkpqxFm5CydAZ8vG+vh 11 | dJmYNzPVKaZorYmM5yBBXJUHbU6pd3UqzJEGBJx0q9bi4V156bYvzhiVNlo1AkBu 12 | 1hbvFCwPtoRmg3c8nEhL50fApzHd2XzX6M/cRF8Nyah3ZdXsz6AyS2l6RV+ZMeTO 13 | B4QghRDpEH/vUgsJhZXJAkB5GQZPJh6/kozc5+Ffc60ThN/58SX0KEFeKnWRlzfr 14 | vfBXwcmaz1oNXN+kcWdLnKbr/tx+3UQ6weRRmeYX/hOi 15 | -----END RSA PRIVATE KEY----- 16 | -------------------------------------------------------------------------------- /packages/opentelemetry-api-metrics/src/types/ObserverResult.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 { Labels } from './Metric'; 18 | 19 | /** 20 | * Interface that is being used in callback function for Observer Metric 21 | */ 22 | export interface ObserverResult { 23 | observe(value: number, labels: Labels): void; 24 | } 25 | -------------------------------------------------------------------------------- /packages/opentelemetry-api/src/platform/browser/globalThis.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 | /** only globals that common to node and browsers are allowed */ 18 | // eslint-disable-next-line node/no-unsupported-features/es-builtins, no-undef 19 | export const _globalThis = typeof globalThis === 'object' ? globalThis : window; 20 | -------------------------------------------------------------------------------- /packages/opentelemetry-core/src/platform/node/sdk-info.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 { VERSION } from '../../version'; 18 | 19 | /** Constants describing the SDK in use */ 20 | export const SDK_INFO = { 21 | NAME: 'opentelemetry', 22 | RUNTIME: 'node', 23 | LANGUAGE: 'nodejs', 24 | VERSION: VERSION, 25 | }; 26 | -------------------------------------------------------------------------------- /packages/opentelemetry-resources/src/config.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 type { Detector } from './types'; 18 | 19 | /** 20 | * ResourceDetectionConfig provides an interface for configuring resource auto-detection. 21 | */ 22 | export interface ResourceDetectionConfig { 23 | detectors?: Array; 24 | } 25 | -------------------------------------------------------------------------------- /packages/opentelemetry-api-metrics/src/platform/browser/globalThis.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 | /** only globals that common to node and browsers are allowed */ 18 | // eslint-disable-next-line node/no-unsupported-features/es-builtins, no-undef 19 | export const _globalThis = typeof globalThis === 'object' ? globalThis : window; 20 | -------------------------------------------------------------------------------- /packages/opentelemetry-core/src/platform/browser/sdk-info.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 { VERSION } from '../../version'; 18 | 19 | /** Constants describing the SDK in use */ 20 | export const SDK_INFO = { 21 | NAME: 'opentelemetry', 22 | RUNTIME: 'browser', 23 | LANGUAGE: 'webjs', 24 | VERSION: VERSION, 25 | }; 26 | -------------------------------------------------------------------------------- /packages/opentelemetry-core/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 './BasePlugin'; 18 | export * from './environment'; 19 | export * from './hex-to-base64'; 20 | export * from './RandomIdGenerator'; 21 | export * from './performance'; 22 | export * from './sdk-info'; 23 | export * from './timer-util'; 24 | -------------------------------------------------------------------------------- /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 | 17 | export * from './database'; 18 | export * from './exception'; 19 | export * from './general'; 20 | export * from './http'; 21 | export * from './os'; 22 | export * from './rpc'; 23 | export * from './faas'; 24 | export * from './messaging'; 25 | -------------------------------------------------------------------------------- /packages/template/karma.conf.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 | * http://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 karmaWebpackConfig = require('../../karma.webpack'); 18 | const karmaBaseConfig = require('../../karma.base'); 19 | 20 | module.exports = (config) => { 21 | config.set(Object.assign({}, karmaBaseConfig, { 22 | webpack: karmaWebpackConfig 23 | })) 24 | }; 25 | -------------------------------------------------------------------------------- /packages/opentelemetry-api/karma.conf.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 | * http://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 karmaWebpackConfig = require('../../karma.webpack'); 18 | const karmaBaseConfig = require('../../karma.base'); 19 | 20 | module.exports = (config) => { 21 | config.set(Object.assign({}, karmaBaseConfig, { 22 | webpack: karmaWebpackConfig 23 | })) 24 | }; 25 | -------------------------------------------------------------------------------- /packages/opentelemetry-core/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 './BasePlugin'; 18 | export * from './environment'; 19 | export * from './hex-to-base64'; 20 | export * from './RandomIdGenerator'; 21 | export * from './performance'; 22 | export * from './sdk-info'; 23 | export * from './timer-util'; 24 | --------------------------------------------------------------------------------