├── .commitlintrc.yml ├── .editorconfig ├── .gitattributes ├── .github ├── CODEOWNERS ├── ISSUE_TEMPLATE │ ├── bug_report.yaml │ ├── discussion.md │ ├── feature_request.md │ └── request_for_instrumentation.md ├── PULL_REQUEST_TEMPLATE.md ├── repository-settings.md └── workflows │ ├── benchmark.yml │ ├── changelog.yml │ ├── close-stale.yml │ ├── codeql-analysis.yml │ ├── create-or-update-release-pr.yml │ ├── docs.yaml │ ├── e2e.yml │ ├── fossa.yml │ ├── label-releases.yml │ ├── lint.yml │ ├── ossf-scorecard.yml │ ├── peer-api.yml │ ├── publish-to-npm.yml │ ├── sbom.yml │ ├── survey-on-merged-pr.yml │ ├── unit-test.yml │ └── w3c-integration-test.yml ├── .gitignore ├── .gitmodules ├── .markdownlint-cli2.jsonc ├── .mocharc.yml ├── .npmignore ├── .npmrc ├── .nycrc ├── CHANGELOG.md ├── CONTRIBUTING.md ├── LICENSE ├── README.md ├── api ├── .eslintignore ├── .eslintrc.js ├── CHANGELOG.md ├── LICENSE ├── README.md ├── karma.conf.js ├── karma.worker.js ├── package.json ├── src │ ├── api │ │ ├── context.ts │ │ ├── diag.ts │ │ ├── metrics.ts │ │ ├── propagation.ts │ │ └── trace.ts │ ├── baggage │ │ ├── context-helpers.ts │ │ ├── internal │ │ │ ├── baggage-impl.ts │ │ │ └── symbol.ts │ │ ├── types.ts │ │ └── utils.ts │ ├── common │ │ ├── Attributes.ts │ │ ├── Exception.ts │ │ └── Time.ts │ ├── context-api.ts │ ├── context │ │ ├── NoopContextManager.ts │ │ ├── context.ts │ │ └── types.ts │ ├── diag-api.ts │ ├── diag │ │ ├── ComponentLogger.ts │ │ ├── consoleLogger.ts │ │ ├── internal │ │ │ ├── logLevelLogger.ts │ │ │ └── noopLogger.ts │ │ └── types.ts │ ├── experimental │ │ ├── index.ts │ │ └── trace │ │ │ ├── SugaredOptions.ts │ │ │ └── SugaredTracer.ts │ ├── index.ts │ ├── internal │ │ ├── global-utils.ts │ │ └── semver.ts │ ├── metrics-api.ts │ ├── metrics │ │ ├── Meter.ts │ │ ├── MeterProvider.ts │ │ ├── Metric.ts │ │ ├── NoopMeter.ts │ │ ├── NoopMeterProvider.ts │ │ └── ObservableResult.ts │ ├── platform │ │ ├── browser │ │ │ ├── globalThis.ts │ │ │ └── index.ts │ │ ├── index.ts │ │ └── node │ │ │ ├── globalThis.ts │ │ │ └── index.ts │ ├── propagation-api.ts │ ├── propagation │ │ ├── NoopTextMapPropagator.ts │ │ └── TextMapPropagator.ts │ ├── trace-api.ts │ └── trace │ │ ├── NonRecordingSpan.ts │ │ ├── NoopTracer.ts │ │ ├── NoopTracerProvider.ts │ │ ├── ProxyTracer.ts │ │ ├── ProxyTracerProvider.ts │ │ ├── Sampler.ts │ │ ├── SamplingResult.ts │ │ ├── SpanOptions.ts │ │ ├── attributes.ts │ │ ├── context-utils.ts │ │ ├── internal │ │ ├── tracestate-impl.ts │ │ ├── tracestate-validators.ts │ │ └── utils.ts │ │ ├── invalid-span-constants.ts │ │ ├── link.ts │ │ ├── span.ts │ │ ├── span_context.ts │ │ ├── span_kind.ts │ │ ├── spancontext-utils.ts │ │ ├── status.ts │ │ ├── trace_flags.ts │ │ ├── trace_state.ts │ │ ├── tracer.ts │ │ ├── tracer_options.ts │ │ └── tracer_provider.ts ├── test │ ├── common │ │ ├── api │ │ │ └── api.test.ts │ │ ├── baggage │ │ │ └── Baggage.test.ts │ │ ├── context │ │ │ └── NoopContextManager.test.ts │ │ ├── diag │ │ │ ├── ComponentLogger.test.ts │ │ │ ├── consoleLogger.test.ts │ │ │ ├── logLevel.test.ts │ │ │ └── logger.test.ts │ │ ├── experimental │ │ │ └── trace │ │ │ │ └── SugaredTracer.test.ts │ │ ├── internal │ │ │ ├── global.test.ts │ │ │ ├── semver.test.ts │ │ │ └── version.test.ts │ │ ├── metrics │ │ │ └── Metric.test.ts │ │ ├── noop-implementations │ │ │ ├── noop-meter.test.ts │ │ │ ├── noop-span.test.ts │ │ │ ├── noop-tracer-provider.test.ts │ │ │ └── noop-tracer.test.ts │ │ ├── proxy-implementations │ │ │ └── proxy-tracer.test.ts │ │ └── trace │ │ │ ├── spancontext-utils.test.ts │ │ │ ├── tracestate-validators.test.ts │ │ │ └── tracestate.test.ts │ ├── index-webpack.ts │ ├── index-webpack.worker.ts │ └── tree-shaking │ │ └── tree-shaking.test.ts ├── tsconfig.esm.json ├── tsconfig.esnext.json ├── tsconfig.json └── typedoc.json ├── codecov.yml ├── doc ├── context.md ├── contributing │ ├── benchmark-tests.md │ ├── bug_triage.md │ ├── dependencies.md │ ├── npm_workspaces.md │ ├── releasing.md │ ├── style.md │ └── web-api.md ├── esm-support.md ├── exporter-guide.md ├── frequently-asked-questions.md ├── instrumentation-guide.md ├── metrics.md ├── propagation.md ├── sdk-registration.md ├── tracing.md └── upgrade-to-2.x.md ├── e2e-tests ├── .eslintrc.js ├── .gitignore ├── README.md ├── collector-config.yaml ├── package.json ├── test.mjs └── verify.mjs ├── eslint.base.js ├── examples ├── .eslintrc.js ├── README.md ├── basic-tracer-node │ ├── README.md │ ├── docker │ │ └── ot │ │ │ ├── collector-config.yaml │ │ │ └── docker-compose.yaml │ ├── images │ │ ├── jaeger-ui-detail.png │ │ ├── jaeger-ui-list.png │ │ ├── zipkin-ui-detail.png │ │ └── zipkin-ui-list.png │ ├── index.js │ └── package.json ├── esm-http-ts │ ├── README.md │ ├── index.ts │ ├── package.json │ └── tsconfig.json ├── grpc-js │ ├── README.md │ ├── client.js │ ├── helloworld_grpc_pb.js │ ├── helloworld_pb.js │ ├── images │ │ ├── jaeger.png │ │ └── zipkin.png │ ├── package.json │ ├── server.js │ └── tracer.js ├── http │ ├── README.md │ ├── client.js │ ├── images │ │ ├── jaeger-ui.png │ │ └── zipkin-ui.png │ ├── package.json │ ├── server.js │ └── tracer.js ├── https │ ├── README.md │ ├── client.js │ ├── docker │ │ └── docker-compose.yml │ ├── images │ │ ├── jaeger-ui.png │ │ └── zipkin-ui.png │ ├── package.json │ ├── server-cert.pem │ ├── server-key.pem │ ├── server.js │ └── tracer.js ├── opentelemetry-web │ ├── .eslintrc.js │ ├── README.md │ ├── docker │ │ ├── collector-config.yaml │ │ ├── docker-compose.yaml │ │ └── prometheus.yaml │ ├── examples │ │ ├── fetch-proto │ │ │ ├── index.html │ │ │ └── index.js │ │ ├── fetch │ │ │ ├── index.html │ │ │ └── index.js │ │ ├── fetchXhr │ │ │ ├── index.html │ │ │ └── index.js │ │ ├── fetchXhrB3 │ │ │ ├── index.html │ │ │ └── index.js │ │ ├── metrics │ │ │ ├── index.html │ │ │ └── index.js │ │ ├── xml-http-request │ │ │ ├── index.html │ │ │ └── index.js │ │ └── zipkin │ │ │ ├── index.html │ │ │ └── index.js │ ├── images │ │ └── xml-http-request.png │ ├── package.json │ ├── webpack.dev.config.js │ └── webpack.prod.config.js ├── opentracing-shim │ ├── README.md │ ├── client.js │ ├── images │ │ ├── jaeger-ui.png │ │ └── zipkin-ui.png │ ├── package.json │ ├── server.js │ ├── shim.js │ └── utils.js └── otlp-exporter-node │ ├── README.md │ ├── docker │ ├── collector-config.yaml │ ├── docker-compose.yaml │ └── prometheus.yaml │ ├── images │ └── spans.png │ ├── metrics.js │ ├── package.json │ └── tracing.js ├── experimental ├── CHANGELOG.md ├── backwards-compatibility │ ├── node14 │ │ ├── index.ts │ │ ├── package.json │ │ └── tsconfig.json │ └── node16 │ │ ├── index.ts │ │ ├── package.json │ │ └── tsconfig.json ├── examples │ ├── .eslintrc.js │ ├── README.md │ ├── logs │ │ ├── README.md │ │ ├── index.ts │ │ ├── package.json │ │ └── tsconfig.json │ ├── opencensus-shim │ │ ├── README.md │ │ ├── client.js │ │ ├── images │ │ │ ├── jaeger-trace.png │ │ │ └── prom-metrics.png │ │ ├── package.json │ │ ├── server.js │ │ ├── setup.js │ │ └── utils.js │ └── prometheus │ │ ├── README.md │ │ ├── docker-compose.yaml │ │ ├── images │ │ ├── prom-counter.png │ │ ├── prom-gauge.png │ │ └── prom-updowncounter.png │ │ ├── index.js │ │ ├── package.json │ │ ├── prometheus.docker.yml │ │ └── prometheus.yml └── packages │ ├── api-logs │ ├── .eslintignore │ ├── .eslintrc.js │ ├── LICENSE │ ├── README.md │ ├── karma.conf.js │ ├── package.json │ ├── src │ │ ├── NoopLogger.ts │ │ ├── NoopLoggerProvider.ts │ │ ├── ProxyLogger.ts │ │ ├── ProxyLoggerProvider.ts │ │ ├── api │ │ │ └── logs.ts │ │ ├── index.ts │ │ ├── internal │ │ │ └── global-utils.ts │ │ ├── platform │ │ │ ├── browser │ │ │ │ ├── globalThis.ts │ │ │ │ └── index.ts │ │ │ ├── index.ts │ │ │ └── node │ │ │ │ ├── globalThis.ts │ │ │ │ └── index.ts │ │ └── types │ │ │ ├── AnyValue.ts │ │ │ ├── LogRecord.ts │ │ │ ├── Logger.ts │ │ │ ├── LoggerOptions.ts │ │ │ └── LoggerProvider.ts │ ├── test │ │ ├── api │ │ │ └── api.test.ts │ │ ├── index-webpack.ts │ │ ├── internal │ │ │ └── global.test.ts │ │ ├── noop-implementations │ │ │ ├── noop-logger-provider.test.ts │ │ │ └── noop-logger.test.ts │ │ └── proxy-implementations │ │ │ └── proxy-logger.test.ts │ ├── tsconfig.esm.json │ ├── tsconfig.esnext.json │ └── tsconfig.json │ ├── exporter-logs-otlp-grpc │ ├── .eslintignore │ ├── .eslintrc.js │ ├── .npmignore │ ├── LICENSE │ ├── README.md │ ├── package.json │ ├── src │ │ ├── OTLPLogExporter.ts │ │ └── index.ts │ ├── test │ │ ├── OTLPLogExporter.test.ts │ │ └── utils.ts │ └── tsconfig.json │ ├── exporter-logs-otlp-http │ ├── .eslintignore │ ├── .eslintrc.js │ ├── .npmignore │ ├── LICENSE │ ├── README.md │ ├── karma.conf.js │ ├── package.json │ ├── src │ │ ├── index.ts │ │ └── platform │ │ │ ├── browser │ │ │ ├── OTLPLogExporter.ts │ │ │ └── index.ts │ │ │ ├── index.ts │ │ │ └── node │ │ │ ├── OTLPLogExporter.ts │ │ │ └── index.ts │ ├── test │ │ ├── browser │ │ │ ├── OTLPLogExporter.test.ts │ │ │ └── index-webpack.ts │ │ └── node │ │ │ └── OTLPLogExporter.test.ts │ ├── tsconfig.esm.json │ ├── tsconfig.esnext.json │ └── tsconfig.json │ ├── exporter-logs-otlp-proto │ ├── .eslintignore │ ├── .eslintrc.js │ ├── .npmignore │ ├── LICENSE │ ├── README.md │ ├── karma.conf.js │ ├── package.json │ ├── src │ │ ├── index.ts │ │ └── platform │ │ │ ├── browser │ │ │ ├── OTLPLogExporter.ts │ │ │ └── index.ts │ │ │ ├── index.ts │ │ │ └── node │ │ │ ├── OTLPLogExporter.ts │ │ │ └── index.ts │ ├── test │ │ ├── browser │ │ │ ├── OTLPLogExporter.test.ts │ │ │ └── index-webpack.ts │ │ └── node │ │ │ └── OTLPLogExporter.test.ts │ ├── tsconfig.esm.json │ ├── tsconfig.esnext.json │ └── tsconfig.json │ ├── exporter-trace-otlp-grpc │ ├── .eslintignore │ ├── .eslintrc.js │ ├── .npmignore │ ├── LICENSE │ ├── README.md │ ├── package.json │ ├── src │ │ ├── OTLPTraceExporter.ts │ │ └── index.ts │ ├── test │ │ ├── OTLPTraceExporter.test.ts │ │ └── utils.ts │ └── tsconfig.json │ ├── exporter-trace-otlp-http │ ├── .eslintignore │ ├── .eslintrc.js │ ├── .npmignore │ ├── LICENSE │ ├── README.md │ ├── karma.conf.js │ ├── package.json │ ├── src │ │ ├── index.ts │ │ └── platform │ │ │ ├── browser │ │ │ ├── OTLPTraceExporter.ts │ │ │ └── index.ts │ │ │ ├── index.ts │ │ │ └── node │ │ │ ├── OTLPTraceExporter.ts │ │ │ └── index.ts │ ├── test │ │ ├── browser │ │ │ ├── OTLPTraceExporter.test.ts │ │ │ └── index-webpack.ts │ │ └── node │ │ │ └── OTLPTraceExporter.test.ts │ ├── tsconfig.esm.json │ ├── tsconfig.esnext.json │ └── tsconfig.json │ ├── exporter-trace-otlp-proto │ ├── .eslintignore │ ├── .eslintrc.js │ ├── .npmignore │ ├── LICENSE │ ├── README.md │ ├── karma.conf.js │ ├── package.json │ ├── src │ │ ├── index.ts │ │ └── platform │ │ │ ├── browser │ │ │ ├── OTLPTraceExporter.ts │ │ │ └── index.ts │ │ │ ├── index.ts │ │ │ └── node │ │ │ ├── OTLPTraceExporter.ts │ │ │ └── index.ts │ ├── test │ │ ├── browser │ │ │ ├── OTLPTraceExporter.test.ts │ │ │ └── index-webpack.ts │ │ └── node │ │ │ └── OTLPTraceExporter.test.ts │ ├── tsconfig.esm.json │ ├── tsconfig.esnext.json │ └── tsconfig.json │ ├── opentelemetry-browser-detector │ ├── .eslintignore │ ├── .eslintrc.js │ ├── .npmignore │ ├── LICENSE │ ├── README.md │ ├── karma.conf.js │ ├── package.json │ ├── src │ │ ├── BrowserDetector.ts │ │ ├── index.ts │ │ └── types.ts │ ├── test │ │ ├── BrowserDetector.test.ts │ │ ├── index-webpack.ts │ │ └── util.ts │ ├── tsconfig.esm.json │ ├── tsconfig.esnext.json │ └── tsconfig.json │ ├── opentelemetry-exporter-metrics-otlp-grpc │ ├── .eslintignore │ ├── .eslintrc.js │ ├── .npmignore │ ├── LICENSE │ ├── README.md │ ├── package.json │ ├── src │ │ ├── OTLPMetricExporter.ts │ │ └── index.ts │ ├── test │ │ ├── OTLPMetricExporter.test.ts │ │ └── utils.ts │ └── tsconfig.json │ ├── opentelemetry-exporter-metrics-otlp-http │ ├── .eslintignore │ ├── .eslintrc.js │ ├── .npmignore │ ├── LICENSE │ ├── README.md │ ├── karma.conf.js │ ├── package.json │ ├── src │ │ ├── OTLPMetricExporterBase.ts │ │ ├── OTLPMetricExporterOptions.ts │ │ ├── index.ts │ │ └── platform │ │ │ ├── browser │ │ │ ├── OTLPMetricExporter.ts │ │ │ └── index.ts │ │ │ ├── index.ts │ │ │ └── node │ │ │ ├── OTLPMetricExporter.ts │ │ │ └── index.ts │ ├── test │ │ ├── browser │ │ │ ├── OTLPMetricExporter.test.ts │ │ │ └── index-webpack.ts │ │ └── node │ │ │ └── OTLPMetricExporter.test.ts │ ├── tsconfig.esm.json │ ├── tsconfig.esnext.json │ └── tsconfig.json │ ├── opentelemetry-exporter-metrics-otlp-proto │ ├── .eslintignore │ ├── .eslintrc.js │ ├── .npmignore │ ├── LICENSE │ ├── README.md │ ├── karma.conf.js │ ├── package.json │ ├── src │ │ ├── index.ts │ │ └── platform │ │ │ ├── browser │ │ │ ├── OTLPMetricExporter.ts │ │ │ └── index.ts │ │ │ ├── index.ts │ │ │ └── node │ │ │ ├── OTLPMetricExporter.ts │ │ │ └── index.ts │ ├── test │ │ ├── browser │ │ │ ├── OTLPMetricExporter.test.ts │ │ │ └── index-webpack.ts │ │ └── node │ │ │ └── OTLPMetricExporter.test.ts │ ├── tsconfig.esm.json │ ├── tsconfig.esnext.json │ └── tsconfig.json │ ├── opentelemetry-exporter-prometheus │ ├── .eslintignore │ ├── .eslintrc.js │ ├── .npmignore │ ├── LICENSE │ ├── README.md │ ├── package.json │ ├── src │ │ ├── PrometheusExporter.ts │ │ ├── PrometheusSerializer.ts │ │ ├── export │ │ │ └── types.ts │ │ └── index.ts │ ├── test │ │ ├── PrometheusExporter.test.ts │ │ ├── PrometheusSerializer.test.ts │ │ └── util.ts │ └── tsconfig.json │ ├── opentelemetry-instrumentation-fetch │ ├── .eslintignore │ ├── .eslintrc.js │ ├── .npmignore │ ├── LICENSE │ ├── README.md │ ├── images │ │ ├── trace1.png │ │ ├── trace2.png │ │ └── trace3.png │ ├── karma.conf.js │ ├── package.json │ ├── src │ │ ├── enums │ │ │ └── AttributeNames.ts │ │ ├── fetch.ts │ │ ├── index.ts │ │ ├── semconv.ts │ │ ├── types.ts │ │ └── utils.ts │ ├── test │ │ ├── fetch.test.ts │ │ ├── index-webpack.ts │ │ ├── mockServiceWorker.js │ │ └── utils.test.ts │ ├── tsconfig.esm.json │ ├── tsconfig.esnext.json │ └── tsconfig.json │ ├── opentelemetry-instrumentation-grpc │ ├── .eslintignore │ ├── .eslintrc.js │ ├── .npmignore │ ├── LICENSE │ ├── README.md │ ├── package.json │ ├── src │ │ ├── clientUtils.ts │ │ ├── enums │ │ │ ├── AttributeNames.ts │ │ │ └── AttributeValues.ts │ │ ├── index.ts │ │ ├── instrumentation.ts │ │ ├── internal-types.ts │ │ ├── semconv.ts │ │ ├── serverUtils.ts │ │ ├── types.ts │ │ └── utils.ts │ ├── test │ │ ├── .gitignore │ │ ├── fixtures │ │ │ ├── buf.gen.yaml │ │ │ ├── buf.lock │ │ │ ├── buf.yaml │ │ │ └── grpc-test.proto │ │ ├── grpc-js.test.ts │ │ ├── grpc-protobuf-ts.test.ts │ │ ├── helper.ts │ │ ├── protobuf-ts-utils.ts │ │ └── utils │ │ │ ├── assertionUtils.ts │ │ │ └── extractMethodAndServiceUtils.ts │ └── tsconfig.json │ ├── opentelemetry-instrumentation-http │ ├── .eslintignore │ ├── .eslintrc.js │ ├── .npmignore │ ├── LICENSE │ ├── README.md │ ├── package.json │ ├── src │ │ ├── enums │ │ │ └── AttributeNames.ts │ │ ├── http.ts │ │ ├── index.ts │ │ ├── internal-types.ts │ │ ├── semconv.ts │ │ ├── types.ts │ │ └── utils.ts │ ├── test │ │ ├── fixtures │ │ │ ├── google-http.json │ │ │ ├── google-https.json │ │ │ ├── regenerate.sh │ │ │ ├── server-cert.pem │ │ │ └── server-key.pem │ │ ├── functionals │ │ │ ├── http-disable.test.ts │ │ │ ├── http-enable.test.ts │ │ │ ├── http-metrics.test.ts │ │ │ ├── http-package.test.ts │ │ │ ├── https-disable.test.ts │ │ │ ├── https-enable.test.ts │ │ │ ├── https-package.test.ts │ │ │ └── utils.test.ts │ │ ├── integrations │ │ │ ├── esm.test.mjs │ │ │ ├── http-enable.test.ts │ │ │ └── https-enable.test.ts │ │ └── utils │ │ │ ├── DummyPropagation.ts │ │ │ ├── TestMetricReader.ts │ │ │ ├── assertSpan.ts │ │ │ ├── httpRequest.ts │ │ │ ├── httpsRequest.ts │ │ │ ├── rawRequest.ts │ │ │ └── utils.ts │ └── tsconfig.json │ ├── opentelemetry-instrumentation-xml-http-request │ ├── .eslintignore │ ├── .eslintrc.js │ ├── .npmignore │ ├── LICENSE │ ├── README.md │ ├── images │ │ ├── cors.jpg │ │ ├── main.jpg │ │ └── request.jpg │ ├── karma.conf.js │ ├── package.json │ ├── src │ │ ├── enums │ │ │ ├── AttributeNames.ts │ │ │ └── EventNames.ts │ │ ├── index.ts │ │ ├── semconv.ts │ │ ├── types.ts │ │ ├── utils.ts │ │ └── xhr.ts │ ├── test │ │ ├── index-webpack.ts │ │ ├── unmocked.test.ts │ │ ├── utils.test.ts │ │ └── xhr.test.ts │ ├── tsconfig.esm.json │ ├── tsconfig.esnext.json │ └── tsconfig.json │ ├── opentelemetry-instrumentation │ ├── .eslintignore │ ├── .eslintrc.js │ ├── .gitignore │ ├── .npmignore │ ├── LICENSE │ ├── LICENSES │ │ └── shimmer │ │ │ └── LICENSE │ ├── README.md │ ├── hook.mjs │ ├── karma.conf.js │ ├── package.json │ ├── src │ │ ├── autoLoader.ts │ │ ├── autoLoaderUtils.ts │ │ ├── index.ts │ │ ├── instrumentation.ts │ │ ├── instrumentationNodeModuleDefinition.ts │ │ ├── instrumentationNodeModuleFile.ts │ │ ├── platform │ │ │ ├── browser │ │ │ │ ├── index.ts │ │ │ │ ├── instrumentation.ts │ │ │ │ └── noop-normalize.ts │ │ │ ├── index.ts │ │ │ └── node │ │ │ │ ├── ModuleNameTrie.ts │ │ │ │ ├── RequireInTheMiddleSingleton.ts │ │ │ │ ├── index.ts │ │ │ │ ├── instrumentation.ts │ │ │ │ └── normalize.ts │ │ ├── semconvStability.ts │ │ ├── semver.ts │ │ ├── shimmer.ts │ │ ├── types.ts │ │ ├── types_internal.ts │ │ └── utils.ts │ ├── test │ │ ├── browser │ │ │ ├── index-webpack.ts │ │ │ └── noop-normalize.test.ts │ │ ├── common │ │ │ ├── Instrumentation.test.ts │ │ │ ├── autoLoader.test.ts │ │ │ ├── semconvStability.test.ts │ │ │ ├── semver.test.ts │ │ │ ├── shimmer.test.ts │ │ │ ├── third-party │ │ │ │ └── node-semver │ │ │ │ │ ├── LICENSE │ │ │ │ │ ├── range-exclude.js │ │ │ │ │ └── range-include.js │ │ │ └── utils.test.ts │ │ └── node │ │ │ ├── EsmInstrumentation.test.mjs │ │ │ ├── InstrumentationBase.test.ts │ │ │ ├── InstrumentationNodeModuleFile.test.ts │ │ │ ├── ModuleNameTrie.test.ts │ │ │ ├── RequireInTheMiddleSingleton.test.ts │ │ │ ├── esm │ │ │ └── test.mjs │ │ │ ├── fixtures │ │ │ └── absolutePathTestFixture.js │ │ │ ├── node_modules │ │ │ ├── .gitkeep │ │ │ ├── @opentelemetry │ │ │ │ └── scoped-test-module │ │ │ │ │ ├── package.json │ │ │ │ │ └── src │ │ │ │ │ ├── index.js │ │ │ │ │ └── internal.js │ │ │ ├── test-esm-module │ │ │ │ ├── package.json │ │ │ │ └── src │ │ │ │ │ └── index.js │ │ │ └── test-non-core-module │ │ │ │ ├── lib │ │ │ │ ├── copy-sync.js │ │ │ │ └── index.js │ │ │ │ └── package.json │ │ │ └── scoped-package-instrumentation.test.ts │ ├── tsconfig.esm.json │ ├── tsconfig.esnext.json │ └── tsconfig.json │ ├── opentelemetry-sdk-node │ ├── .eslintignore │ ├── .eslintrc.js │ ├── LICENSE │ ├── README.md │ ├── package.json │ ├── src │ │ ├── index.ts │ │ ├── sdk.ts │ │ ├── types.ts │ │ └── utils.ts │ ├── test │ │ ├── sdk.test.ts │ │ ├── semconv.ts │ │ ├── util │ │ │ └── resource-assertions.ts │ │ └── utils.test.ts │ └── tsconfig.json │ ├── otlp-exporter-base │ ├── .eslintignore │ ├── .eslintrc.js │ ├── .npmignore │ ├── LICENSE │ ├── README.md │ ├── karma.conf.js │ ├── package.json │ ├── src │ │ ├── OTLPExporterBase.ts │ │ ├── bounded-queue-export-promise-handler.ts │ │ ├── configuration │ │ │ ├── convert-legacy-browser-http-options.ts │ │ │ ├── convert-legacy-node-http-options.ts │ │ │ ├── create-legacy-browser-delegate.ts │ │ │ ├── legacy-base-configuration.ts │ │ │ ├── legacy-node-configuration.ts │ │ │ ├── otlp-http-configuration.ts │ │ │ ├── otlp-http-env-configuration.ts │ │ │ ├── shared-configuration.ts │ │ │ └── shared-env-configuration.ts │ │ ├── export-response.ts │ │ ├── exporter-transport.ts │ │ ├── index-browser-http.ts │ │ ├── index-node-http.ts │ │ ├── index.ts │ │ ├── is-export-retryable.ts │ │ ├── logging-response-handler.ts │ │ ├── otlp-browser-http-export-delegate.ts │ │ ├── otlp-export-delegate.ts │ │ ├── otlp-http-export-delegate.ts │ │ ├── otlp-network-export-delegate.ts │ │ ├── response-handler.ts │ │ ├── retrying-transport.ts │ │ ├── transport │ │ │ ├── http-exporter-transport.ts │ │ │ ├── http-transport-types.ts │ │ │ ├── http-transport-utils.ts │ │ │ ├── send-beacon-transport.ts │ │ │ └── xhr-transport.ts │ │ ├── types.ts │ │ └── util.ts │ ├── test │ │ ├── browser │ │ │ ├── index-webpack.ts │ │ │ ├── send-beacon-transport.test.ts │ │ │ └── xhr-transport.test.ts │ │ ├── common │ │ │ ├── OTLPExporterBase.test.ts │ │ │ ├── bounded-queue-export-promise-handler.test.ts │ │ │ ├── configuration │ │ │ │ ├── otlp-http-configuration.test.ts │ │ │ │ └── shared-configuration.test.ts │ │ │ ├── is-export-retryable.test.ts │ │ │ ├── logging-response-handler.test.ts │ │ │ ├── otlp-export-delegate.test.ts │ │ │ ├── retrying-transport.test.ts │ │ │ ├── test-utils.ts │ │ │ └── util.test.ts │ │ ├── node │ │ │ ├── configuration │ │ │ │ ├── convert-legacy-node-otlp-http-options.test.ts │ │ │ │ ├── otlp-http-env-configuration.test.ts │ │ │ │ └── shared-env-configuration.test.ts │ │ │ ├── http-exporter-transport.test.ts │ │ │ ├── http-transport-utils.test.ts │ │ │ └── otlp-http-export-delegate.test.ts │ │ └── testHelper.ts │ ├── tsconfig.esm.json │ ├── tsconfig.esnext.json │ └── tsconfig.json │ ├── otlp-grpc-exporter-base │ ├── .eslintignore │ ├── .eslintrc.js │ ├── .npmignore │ ├── LICENSE │ ├── README.md │ ├── package.json │ ├── src │ │ ├── configuration │ │ │ ├── convert-legacy-otlp-grpc-options.ts │ │ │ ├── otlp-grpc-configuration.ts │ │ │ └── otlp-grpc-env-configuration.ts │ │ ├── create-service-client-constructor.ts │ │ ├── grpc-exporter-transport.ts │ │ ├── index.ts │ │ ├── otlp-grpc-export-delegate.ts │ │ └── types.ts │ ├── test │ │ ├── certs │ │ │ ├── ca.crt │ │ │ ├── ca.key │ │ │ ├── client.crt │ │ │ ├── client.csr │ │ │ ├── client.key │ │ │ ├── regenerate.sh │ │ │ ├── server.crt │ │ │ ├── server.csr │ │ │ └── server.key │ │ ├── configuration │ │ │ ├── otlp-grpc-configuration.test.ts │ │ │ └── otlp-grpc-env-configuration.test.ts │ │ ├── grpc-exporter-transport.test.ts │ │ └── otlp-grpc-configuration.test.ts │ └── tsconfig.json │ ├── otlp-transformer │ ├── .eslintignore │ ├── .eslintrc.js │ ├── .gitignore │ ├── README.md │ ├── karma.conf.js │ ├── package.json │ ├── src │ │ ├── common │ │ │ ├── hex-to-binary.ts │ │ │ ├── internal-types.ts │ │ │ ├── internal.ts │ │ │ ├── protobuf │ │ │ │ └── protobuf-export-type.ts │ │ │ └── utils.ts │ │ ├── generated │ │ │ └── .gitkeep │ │ ├── i-serializer.ts │ │ ├── index.ts │ │ ├── logs │ │ │ ├── export-response.ts │ │ │ ├── index.ts │ │ │ ├── internal-types.ts │ │ │ ├── internal.ts │ │ │ ├── json │ │ │ │ ├── index.ts │ │ │ │ └── logs.ts │ │ │ └── protobuf │ │ │ │ ├── index.ts │ │ │ │ └── logs.ts │ │ ├── metrics │ │ │ ├── export-response.ts │ │ │ ├── index.ts │ │ │ ├── internal-types.ts │ │ │ ├── internal.ts │ │ │ ├── json │ │ │ │ ├── index.ts │ │ │ │ └── metrics.ts │ │ │ └── protobuf │ │ │ │ ├── index.ts │ │ │ │ └── metrics.ts │ │ └── trace │ │ │ ├── export-response.ts │ │ │ ├── index.ts │ │ │ ├── internal-types.ts │ │ │ ├── internal.ts │ │ │ ├── json │ │ │ ├── index.ts │ │ │ └── trace.ts │ │ │ └── protobuf │ │ │ ├── index.ts │ │ │ └── trace.ts │ ├── submodule.md │ ├── test │ │ ├── common.test.ts │ │ ├── index-webpack.ts │ │ ├── logs.test.ts │ │ ├── metrics.test.ts │ │ ├── performance │ │ │ └── benchmark │ │ │ │ └── index.js │ │ ├── trace.test.ts │ │ └── utils.ts │ ├── tsconfig.esm.json │ ├── tsconfig.esnext.json │ └── tsconfig.json │ ├── sampler-jaeger-remote │ ├── .eslintignore │ ├── .eslintrc.js │ ├── .npmignore │ ├── LICENSE │ ├── README.md │ ├── package.json │ ├── src │ │ ├── JaegerRemoteSampler.ts │ │ ├── PerOperationSampler.ts │ │ ├── index.ts │ │ └── types.ts │ ├── test │ │ ├── JaegerRemoteSampler.test.ts │ │ ├── PerOperationSampler.test.ts │ │ └── utils.ts │ └── tsconfig.json │ ├── sdk-logs │ ├── .eslintignore │ ├── .eslintrc.js │ ├── .npmignore │ ├── LICENSE │ ├── README.md │ ├── karma.conf.js │ ├── package.json │ ├── src │ │ ├── LogRecordImpl.ts │ │ ├── LogRecordProcessor.ts │ │ ├── Logger.ts │ │ ├── LoggerProvider.ts │ │ ├── MultiLogRecordProcessor.ts │ │ ├── config.ts │ │ ├── export │ │ │ ├── BatchLogRecordProcessorBase.ts │ │ │ ├── ConsoleLogRecordExporter.ts │ │ │ ├── InMemoryLogRecordExporter.ts │ │ │ ├── LogRecordExporter.ts │ │ │ ├── NoopLogRecordProcessor.ts │ │ │ ├── ReadableLogRecord.ts │ │ │ ├── SdkLogRecord.ts │ │ │ └── SimpleLogRecordProcessor.ts │ │ ├── index.ts │ │ ├── internal │ │ │ └── LoggerProviderSharedState.ts │ │ ├── platform │ │ │ ├── browser │ │ │ │ ├── export │ │ │ │ │ └── BatchLogRecordProcessor.ts │ │ │ │ └── index.ts │ │ │ ├── index.ts │ │ │ └── node │ │ │ │ ├── export │ │ │ │ └── BatchLogRecordProcessor.ts │ │ │ │ └── index.ts │ │ └── types.ts │ ├── test │ │ ├── browser │ │ │ ├── export │ │ │ │ └── BatchLogRecordProcessor.test.ts │ │ │ ├── index-webpack.ts │ │ │ └── index-webpack.worker.ts │ │ ├── common │ │ │ ├── LogRecord.test.ts │ │ │ ├── Logger.test.ts │ │ │ ├── LoggerProvider.test.ts │ │ │ ├── MultiLogRecordProcessor.test.ts │ │ │ ├── export │ │ │ │ ├── BatchLogRecordProcessor.test.ts │ │ │ │ ├── ConsoleLogRecordExporter.test.ts │ │ │ │ ├── InMemoryLogRecordExporter.test.ts │ │ │ │ ├── SimpleLogRecordProcessor.test.ts │ │ │ │ └── TestExporterWithDelay.ts │ │ │ └── utils.ts │ │ └── node │ │ │ └── LoggerProvider.test.ts │ ├── tsconfig.esm.json │ ├── tsconfig.esnext.json │ └── tsconfig.json │ ├── shim-opencensus │ ├── .eslintignore │ ├── .eslintrc.js │ ├── .npmignore │ ├── LICENSE │ ├── README.md │ ├── package.json │ ├── src │ │ ├── OpenCensusMetricProducer.ts │ │ ├── ShimSpan.ts │ │ ├── ShimTracer.ts │ │ ├── index.ts │ │ ├── metric-transform.ts │ │ ├── propagation.ts │ │ ├── register.ts │ │ ├── shim.ts │ │ └── trace-transform.ts │ ├── test │ │ ├── OpenCensusMetricProducer.test.ts │ │ ├── ShimSpan.test.ts │ │ ├── ShimTracer.test.ts │ │ ├── metric-transform.test.ts │ │ ├── otel-sandwich.test.ts │ │ ├── propagation.test.ts │ │ ├── shim.test.ts │ │ ├── trace-transform.test.ts │ │ └── util.ts │ └── tsconfig.json │ └── web-common │ ├── .eslintignore │ ├── .eslintrc.js │ ├── .npmignore │ ├── LICENSE │ ├── README.md │ ├── karma.conf.js │ ├── package.json │ ├── src │ ├── SessionLogRecordProcessor.ts │ ├── SessionSpanProcessor.ts │ ├── index.ts │ ├── semconv.ts │ ├── types │ │ └── SessionProvider.ts │ └── utils.ts │ ├── test │ ├── SessionLogRecordProcessor.test.ts │ ├── SessionSpanProcessor.test.ts │ ├── index-webpack.ts │ └── utils.test.ts │ ├── tsconfig.esm.json │ ├── tsconfig.esnext.json │ └── tsconfig.json ├── integration-tests ├── api │ ├── .eslintrc.js │ ├── README.md │ ├── package.json │ └── test │ │ └── api-entries.test.js ├── propagation-validation-server │ ├── package.json │ ├── tsconfig.json │ └── validation-server.js └── tracecontext-integration-test.sh ├── karma.base.js ├── karma.webpack.js ├── karma.worker.js ├── lerna.json ├── package-lock.json ├── package.json ├── packages ├── opentelemetry-context-async-hooks │ ├── .eslintignore │ ├── .eslintrc.js │ ├── .npmignore │ ├── LICENSE │ ├── README.md │ ├── package.json │ ├── src │ │ ├── AbstractAsyncHooksContextManager.ts │ │ ├── AsyncHooksContextManager.ts │ │ ├── AsyncLocalStorageContextManager.ts │ │ └── index.ts │ ├── test │ │ └── AsyncHooksContextManager.test.ts │ └── tsconfig.json ├── opentelemetry-context-zone-peer-dep │ ├── .eslintignore │ ├── .eslintrc.js │ ├── LICENSE │ ├── README.md │ ├── karma.conf.js │ ├── package.json │ ├── src │ │ ├── ZoneContextManager.ts │ │ ├── index.ts │ │ ├── types.ts │ │ └── util.ts │ ├── test │ │ ├── ZoneContextManager.test.ts │ │ ├── index-webpack.ts │ │ └── utils.test.ts │ ├── tsconfig.esm.json │ ├── tsconfig.esnext.json │ └── tsconfig.json ├── opentelemetry-context-zone │ ├── .eslintignore │ ├── .eslintrc.js │ ├── LICENSE │ ├── README.md │ ├── package.json │ ├── src │ │ └── index.ts │ ├── tsconfig.esm.json │ ├── tsconfig.esnext.json │ └── tsconfig.json ├── opentelemetry-core │ ├── .eslintignore │ ├── .eslintrc.js │ ├── .npmignore │ ├── LICENSE │ ├── README.md │ ├── karma.conf.js │ ├── package.json │ ├── src │ │ ├── ExportResult.ts │ │ ├── baggage │ │ │ ├── constants.ts │ │ │ ├── propagation │ │ │ │ └── W3CBaggagePropagator.ts │ │ │ └── utils.ts │ │ ├── common │ │ │ ├── anchored-clock.ts │ │ │ ├── attributes.ts │ │ │ ├── global-error-handler.ts │ │ │ ├── logging-error-handler.ts │ │ │ ├── time.ts │ │ │ └── types.ts │ │ ├── index.ts │ │ ├── internal │ │ │ ├── exporter.ts │ │ │ └── validators.ts │ │ ├── platform │ │ │ ├── browser │ │ │ │ ├── environment.ts │ │ │ │ ├── globalThis.ts │ │ │ │ ├── index.ts │ │ │ │ ├── performance.ts │ │ │ │ ├── sdk-info.ts │ │ │ │ └── timer-util.ts │ │ │ ├── index.ts │ │ │ └── node │ │ │ │ ├── environment.ts │ │ │ │ ├── globalThis.ts │ │ │ │ ├── index.ts │ │ │ │ ├── performance.ts │ │ │ │ ├── sdk-info.ts │ │ │ │ └── timer-util.ts │ │ ├── propagation │ │ │ └── composite.ts │ │ ├── semconv.ts │ │ ├── trace │ │ │ ├── TraceState.ts │ │ │ ├── W3CTraceContextPropagator.ts │ │ │ ├── rpc-metadata.ts │ │ │ └── suppress-tracing.ts │ │ └── utils │ │ │ ├── callback.ts │ │ │ ├── configuration.ts │ │ │ ├── lodash.merge.ts │ │ │ ├── merge.ts │ │ │ ├── promise.ts │ │ │ ├── sampling.ts │ │ │ ├── timeout.ts │ │ │ └── url.ts │ ├── test │ │ ├── browser │ │ │ └── index-webpack.ts │ │ ├── common │ │ │ ├── anchored-clock.test.ts │ │ │ ├── attributes.test.ts │ │ │ ├── baggage │ │ │ │ ├── W3CBaggagePropagator.test.ts │ │ │ │ └── utils.test.ts │ │ │ ├── global-error-handler.test.ts │ │ │ ├── internal │ │ │ │ ├── exporter.test.ts │ │ │ │ └── validators.test.ts │ │ │ ├── logging-error-handler.test.ts │ │ │ ├── propagation │ │ │ │ └── composite.test.ts │ │ │ ├── time.test.ts │ │ │ ├── trace │ │ │ │ ├── W3CTraceContextPropagator.test.ts │ │ │ │ └── tracestate.test.ts │ │ │ └── utils │ │ │ │ ├── callback.test.ts │ │ │ │ ├── configuration.test.ts │ │ │ │ ├── merge.test.ts │ │ │ │ ├── promise.test.ts │ │ │ │ └── url.test.ts │ │ └── node │ │ │ └── environment.test.ts │ ├── tsconfig.esm.json │ ├── tsconfig.esnext.json │ └── tsconfig.json ├── opentelemetry-exporter-jaeger │ ├── .eslintignore │ ├── .eslintrc.js │ ├── .npmignore │ ├── LICENSE │ ├── README.md │ ├── package.json │ ├── src │ │ ├── index.ts │ │ ├── jaeger.ts │ │ ├── transform.ts │ │ └── types.ts │ ├── test │ │ ├── jaeger.test.ts │ │ └── transform.test.ts │ └── tsconfig.json ├── opentelemetry-exporter-zipkin │ ├── .eslintignore │ ├── .eslintrc.js │ ├── .npmignore │ ├── LICENSE │ ├── README.md │ ├── karma.conf.js │ ├── package.json │ ├── src │ │ ├── index.ts │ │ ├── platform │ │ │ ├── browser │ │ │ │ ├── index.ts │ │ │ │ └── util.ts │ │ │ ├── index.ts │ │ │ └── node │ │ │ │ ├── index.ts │ │ │ │ └── util.ts │ │ ├── transform.ts │ │ ├── types.ts │ │ ├── utils.ts │ │ └── zipkin.ts │ ├── test │ │ ├── browser │ │ │ ├── index-webpack.ts │ │ │ └── zipkin.test.ts │ │ ├── common │ │ │ ├── transform.test.ts │ │ │ └── zipkin.test.ts │ │ ├── helper.ts │ │ └── node │ │ │ └── zipkin.test.ts │ ├── tsconfig.esm.json │ ├── tsconfig.esnext.json │ └── tsconfig.json ├── opentelemetry-propagator-b3 │ ├── .eslintignore │ ├── .eslintrc.js │ ├── .npmignore │ ├── LICENSE │ ├── README.md │ ├── package.json │ ├── src │ │ ├── B3MultiPropagator.ts │ │ ├── B3Propagator.ts │ │ ├── B3SinglePropagator.ts │ │ ├── common.ts │ │ ├── constants.ts │ │ ├── index.ts │ │ └── types.ts │ ├── test │ │ ├── B3MultiPropagator.test.ts │ │ ├── B3Propagator.test.ts │ │ └── B3SinglePropagator.test.ts │ ├── tsconfig.esm.json │ ├── tsconfig.esnext.json │ └── tsconfig.json ├── opentelemetry-propagator-jaeger │ ├── .eslintignore │ ├── .eslintrc.js │ ├── LICENSE │ ├── README.md │ ├── jaeger-tracing.png │ ├── karma.conf.js │ ├── package.json │ ├── src │ │ ├── JaegerPropagator.ts │ │ ├── index.ts │ │ └── types.ts │ ├── test │ │ ├── JaegerPropagator.test.ts │ │ └── index-webpack.ts │ ├── tsconfig.esm.json │ ├── tsconfig.esnext.json │ └── tsconfig.json ├── opentelemetry-resources │ ├── .eslintignore │ ├── .eslintrc.js │ ├── .npmignore │ ├── LICENSE │ ├── README.md │ ├── karma.conf.js │ ├── karma.worker.js │ ├── package.json │ ├── src │ │ ├── Resource.ts │ │ ├── ResourceImpl.ts │ │ ├── config.ts │ │ ├── detect-resources.ts │ │ ├── detectors │ │ │ ├── EnvDetector.ts │ │ │ ├── NoopDetector.ts │ │ │ ├── index.ts │ │ │ └── platform │ │ │ │ ├── browser │ │ │ │ ├── HostDetector.ts │ │ │ │ ├── OSDetector.ts │ │ │ │ ├── ProcessDetector.ts │ │ │ │ ├── ServiceInstanceIdDetector.ts │ │ │ │ └── index.ts │ │ │ │ ├── index.ts │ │ │ │ └── node │ │ │ │ ├── HostDetector.ts │ │ │ │ ├── OSDetector.ts │ │ │ │ ├── ProcessDetector.ts │ │ │ │ ├── ServiceInstanceIdDetector.ts │ │ │ │ ├── index.ts │ │ │ │ ├── machine-id │ │ │ │ ├── execAsync.ts │ │ │ │ ├── getMachineId-bsd.ts │ │ │ │ ├── getMachineId-darwin.ts │ │ │ │ ├── getMachineId-linux.ts │ │ │ │ ├── getMachineId-unsupported.ts │ │ │ │ ├── getMachineId-win.ts │ │ │ │ └── getMachineId.ts │ │ │ │ └── utils.ts │ │ ├── index.ts │ │ ├── platform │ │ │ ├── browser │ │ │ │ ├── default-service-name.ts │ │ │ │ └── index.ts │ │ │ ├── index.ts │ │ │ └── node │ │ │ │ ├── default-service-name.ts │ │ │ │ └── index.ts │ │ ├── semconv.ts │ │ ├── types.ts │ │ └── utils.ts │ ├── test │ │ ├── Resource.test.ts │ │ ├── detect-resources.test.ts │ │ ├── detectors │ │ │ ├── browser │ │ │ │ ├── EnvDetector.test.ts │ │ │ │ ├── HostDetector.test.ts │ │ │ │ ├── OSDetector.test.ts │ │ │ │ └── ProcessDetector.test.ts │ │ │ └── node │ │ │ │ ├── EnvDetector.test.ts │ │ │ │ ├── HostDetector.test.ts │ │ │ │ ├── OSDetector.test.ts │ │ │ │ ├── ProcessDetector.test.ts │ │ │ │ └── machine-id │ │ │ │ ├── getMachineId-bsd.test.ts │ │ │ │ ├── getMachineId-darwin.test.ts │ │ │ │ ├── getMachineId-linux.test.ts │ │ │ │ └── getMachineId-win.test.ts │ │ ├── index-webpack.ts │ │ ├── index-webpack.worker.ts │ │ ├── resource-assertions.test.ts │ │ ├── util.ts │ │ └── util │ │ │ ├── resource-assertions.ts │ │ │ └── sample-detector.ts │ ├── tsconfig.esm.json │ ├── tsconfig.esnext.json │ └── tsconfig.json ├── opentelemetry-sdk-trace-base │ ├── .eslintignore │ ├── .eslintrc.js │ ├── .npmignore │ ├── LICENSE │ ├── README.md │ ├── karma.conf.js │ ├── karma.worker.js │ ├── package.json │ ├── src │ │ ├── BasicTracerProvider.ts │ │ ├── IdGenerator.ts │ │ ├── MultiSpanProcessor.ts │ │ ├── Sampler.ts │ │ ├── Span.ts │ │ ├── SpanProcessor.ts │ │ ├── TimedEvent.ts │ │ ├── Tracer.ts │ │ ├── config.ts │ │ ├── enums.ts │ │ ├── export │ │ │ ├── BatchSpanProcessorBase.ts │ │ │ ├── ConsoleSpanExporter.ts │ │ │ ├── InMemorySpanExporter.ts │ │ │ ├── NoopSpanProcessor.ts │ │ │ ├── ReadableSpan.ts │ │ │ ├── SimpleSpanProcessor.ts │ │ │ └── SpanExporter.ts │ │ ├── index.ts │ │ ├── platform │ │ │ ├── browser │ │ │ │ ├── RandomIdGenerator.ts │ │ │ │ ├── export │ │ │ │ │ └── BatchSpanProcessor.ts │ │ │ │ └── index.ts │ │ │ ├── index.ts │ │ │ └── node │ │ │ │ ├── RandomIdGenerator.ts │ │ │ │ ├── export │ │ │ │ └── BatchSpanProcessor.ts │ │ │ │ └── index.ts │ │ ├── sampler │ │ │ ├── AlwaysOffSampler.ts │ │ │ ├── AlwaysOnSampler.ts │ │ │ ├── ParentBasedSampler.ts │ │ │ └── TraceIdRatioBasedSampler.ts │ │ ├── types.ts │ │ └── utility.ts │ ├── test │ │ ├── browser │ │ │ ├── export │ │ │ │ └── BatchSpanProcessor.test.ts │ │ │ ├── index-webpack.ts │ │ │ └── index-webpack.worker.ts │ │ ├── common │ │ │ ├── BasicTracerProvider.test.ts │ │ │ ├── MultiSpanProcessor.test.ts │ │ │ ├── Sampler.test.ts │ │ │ ├── Span.test.ts │ │ │ ├── Tracer.test.ts │ │ │ ├── export │ │ │ │ ├── BatchSpanProcessorBase.test.ts │ │ │ │ ├── ConsoleSpanExporter.test.ts │ │ │ │ ├── InMemorySpanExporter.test.ts │ │ │ │ ├── SimpleSpanProcessor.test.ts │ │ │ │ ├── TestExporterWithDelay.ts │ │ │ │ ├── TestRecordOnlySampler.ts │ │ │ │ ├── TestStackContextManager.ts │ │ │ │ └── TestTracingSpanExporter.ts │ │ │ ├── platform │ │ │ │ └── RandomIdGenerator.test.ts │ │ │ ├── sampler │ │ │ │ ├── AlwaysOffSampler.test.ts │ │ │ │ ├── AlwaysOnSampler.test.ts │ │ │ │ ├── ParentBasedSampler.test.ts │ │ │ │ └── TraceIdRatioBasedSampler.test.ts │ │ │ └── util.ts │ │ ├── node │ │ │ ├── BasicTracerProvider.test.ts │ │ │ ├── Tracer.test.ts │ │ │ ├── config.test.ts │ │ │ └── export │ │ │ │ └── BatchSpanProcessorBase.test.ts │ │ └── performance │ │ │ └── benchmark │ │ │ ├── BatchSpanProcessor.js │ │ │ ├── index.js │ │ │ └── span.js │ ├── tsconfig.esm.json │ ├── tsconfig.esnext.json │ └── tsconfig.json ├── opentelemetry-sdk-trace-node │ ├── .eslintignore │ ├── .eslintrc.js │ ├── .gitignore │ ├── .npmignore │ ├── LICENSE │ ├── README.md │ ├── package.json │ ├── src │ │ ├── NodeTracerProvider.ts │ │ ├── config.ts │ │ └── index.ts │ ├── test │ │ ├── NodeTracerProvider.test.ts │ │ └── registration.test.ts │ └── tsconfig.json ├── opentelemetry-sdk-trace-web │ ├── .eslintignore │ ├── .eslintrc.js │ ├── .npmignore │ ├── LICENSE │ ├── README.md │ ├── karma.conf.js │ ├── karma.worker.js │ ├── package.json │ ├── src │ │ ├── StackContextManager.ts │ │ ├── WebTracerProvider.ts │ │ ├── enums │ │ │ └── PerformanceTimingNames.ts │ │ ├── index.ts │ │ ├── semconv.ts │ │ ├── types.ts │ │ └── utils.ts │ ├── test │ │ ├── NodeGlobalsFoolProofing.test.ts │ │ ├── StackContextManager.test.ts │ │ ├── WebTracerProvider.test.ts │ │ ├── index-webpack.ts │ │ ├── index-webpack.worker.ts │ │ ├── registration.test.ts │ │ ├── utils.test.ts │ │ └── window │ │ │ └── utils.test.ts │ ├── tsconfig.esm.json │ ├── tsconfig.esnext.json │ └── tsconfig.json ├── opentelemetry-shim-opentracing │ ├── .eslintignore │ ├── .eslintrc.js │ ├── .npmignore │ ├── LICENSE │ ├── README.md │ ├── package.json │ ├── src │ │ ├── index.ts │ │ └── shim.ts │ ├── test │ │ └── Shim.test.ts │ └── tsconfig.json ├── sdk-metrics │ ├── .eslintignore │ ├── .eslintrc.js │ ├── .npmignore │ ├── LICENSE │ ├── README.md │ ├── karma.conf.js │ ├── package.json │ ├── src │ │ ├── InstrumentDescriptor.ts │ │ ├── Instruments.ts │ │ ├── Meter.ts │ │ ├── MeterProvider.ts │ │ ├── ObservableResult.ts │ │ ├── aggregator │ │ │ ├── Drop.ts │ │ │ ├── ExponentialHistogram.ts │ │ │ ├── Histogram.ts │ │ │ ├── LastValue.ts │ │ │ ├── Sum.ts │ │ │ ├── exponential-histogram │ │ │ │ ├── Buckets.ts │ │ │ │ ├── mapping │ │ │ │ │ ├── ExponentMapping.ts │ │ │ │ │ ├── LogarithmMapping.ts │ │ │ │ │ ├── getMapping.ts │ │ │ │ │ ├── ieee754.ts │ │ │ │ │ └── types.ts │ │ │ │ └── util.ts │ │ │ ├── index.ts │ │ │ └── types.ts │ │ ├── exemplar │ │ │ ├── AlignedHistogramBucketExemplarReservoir.ts │ │ │ ├── AlwaysSampleExemplarFilter.ts │ │ │ ├── Exemplar.ts │ │ │ ├── ExemplarFilter.ts │ │ │ ├── ExemplarReservoir.ts │ │ │ ├── NeverSampleExemplarFilter.ts │ │ │ ├── SimpleFixedSizeExemplarReservoir.ts │ │ │ ├── WithTraceExemplarFilter.ts │ │ │ └── index.ts │ │ ├── export │ │ │ ├── AggregationSelector.ts │ │ │ ├── AggregationTemporality.ts │ │ │ ├── CardinalitySelector.ts │ │ │ ├── ConsoleMetricExporter.ts │ │ │ ├── InMemoryMetricExporter.ts │ │ │ ├── MetricData.ts │ │ │ ├── MetricExporter.ts │ │ │ ├── MetricProducer.ts │ │ │ ├── MetricReader.ts │ │ │ └── PeriodicExportingMetricReader.ts │ │ ├── index.ts │ │ ├── state │ │ │ ├── AsyncMetricStorage.ts │ │ │ ├── DeltaMetricProcessor.ts │ │ │ ├── HashMap.ts │ │ │ ├── MeterProviderSharedState.ts │ │ │ ├── MeterSharedState.ts │ │ │ ├── MetricCollector.ts │ │ │ ├── MetricStorage.ts │ │ │ ├── MetricStorageRegistry.ts │ │ │ ├── MultiWritableMetricStorage.ts │ │ │ ├── ObservableRegistry.ts │ │ │ ├── SyncMetricStorage.ts │ │ │ ├── TemporalMetricProcessor.ts │ │ │ └── WritableMetricStorage.ts │ │ ├── types.ts │ │ ├── utils.ts │ │ └── view │ │ │ ├── Aggregation.ts │ │ │ ├── AggregationOption.ts │ │ │ ├── AttributesProcessor.ts │ │ │ ├── InstrumentSelector.ts │ │ │ ├── MeterSelector.ts │ │ │ ├── Predicate.ts │ │ │ ├── RegistrationConflicts.ts │ │ │ ├── View.ts │ │ │ └── ViewRegistry.ts │ ├── test │ │ ├── ExemplarFilter.test.ts │ │ ├── ExemplarReservoir.test.ts │ │ ├── InstrumentDescriptor.test.ts │ │ ├── Instruments.test.ts │ │ ├── Meter.test.ts │ │ ├── MeterProvider.test.ts │ │ ├── ObservableResult.test.ts │ │ ├── aggregator │ │ │ ├── Drop.test.ts │ │ │ ├── ExponentialHistogram.test.ts │ │ │ ├── Histogram.test.ts │ │ │ ├── LastValue.test.ts │ │ │ ├── Sum.test.ts │ │ │ └── exponential-histogram │ │ │ │ ├── ExponentMapping.test.ts │ │ │ │ ├── LogarithmMapping.test.ts │ │ │ │ ├── getMapping.test.ts │ │ │ │ ├── helpers.ts │ │ │ │ └── ieee754.test.ts │ │ ├── export │ │ │ ├── ConsoleMetricExporter.test.ts │ │ │ ├── InMemoryMetricExporter.test.ts │ │ │ ├── MetricReader.test.ts │ │ │ ├── PeriodicExportingMetricReader.test.ts │ │ │ ├── TestMetricExporter.ts │ │ │ ├── TestMetricProducer.ts │ │ │ ├── TestMetricReader.ts │ │ │ └── utils.ts │ │ ├── index-webpack.ts │ │ ├── regression │ │ │ ├── cumulative-exponential-histogram.test.ts │ │ │ ├── histogram-recording-nan.test.ts │ │ │ └── two-metric-readers-async-instrument.test.ts │ │ ├── state │ │ │ ├── AsyncMetricStorage.test.ts │ │ │ ├── DeltaMetricProcessor.test.ts │ │ │ ├── HashMap.test.ts │ │ │ ├── MeterSharedState.test.ts │ │ │ ├── MetricCollector.test.ts │ │ │ ├── MetricStorageRegistry.test.ts │ │ │ ├── MultiWritableMetricStorage.test.ts │ │ │ ├── ObservableRegistry.test.ts │ │ │ ├── SyncMetricStorage.test.ts │ │ │ └── TemporalMetricProcessor.test.ts │ │ ├── util.ts │ │ ├── utils.test.ts │ │ └── view │ │ │ ├── Aggregation.test.ts │ │ │ ├── AttributesProcessor.test.ts │ │ │ ├── Predicate.test.ts │ │ │ ├── View.test.ts │ │ │ └── ViewRegistry.test.ts │ ├── tsconfig.esm.json │ ├── tsconfig.esnext.json │ └── tsconfig.json └── template │ ├── .eslintignore │ ├── .eslintrc.js │ ├── .npmignore │ ├── LICENSE │ ├── README.md │ ├── karma.conf.js │ ├── package.json │ ├── src │ └── index.ts │ ├── tsconfig.esm.json │ ├── tsconfig.esnext.json │ └── tsconfig.json ├── prettier.config.js ├── renovate.json ├── scripts ├── align-api-deps.js ├── extract-latest-release-notes.js ├── generate-protos.js ├── get-version.js ├── lint-semconv-deps.mjs ├── peer-api-check.js ├── semconv │ ├── .gitignore │ ├── changelog-gen.js │ ├── generate.sh │ └── templates │ │ └── registry │ │ ├── ts-experimental │ │ ├── attributes.ts.j2 │ │ ├── docstring.ts.j2 │ │ ├── metrics.ts.j2 │ │ └── weaver.yaml │ │ └── ts-stable │ │ ├── attributes.ts.j2 │ │ ├── docstring.ts.j2 │ │ ├── metrics.ts.j2 │ │ └── weaver.yaml ├── update-changelog.js ├── update-ts-configs-constants.js ├── update-ts-configs.js └── version-update.js ├── semantic-conventions ├── .eslintignore ├── .eslintrc.js ├── .npmignore ├── CHANGELOG.md ├── LICENSE ├── README.md ├── package.json ├── src │ ├── experimental_attributes.ts │ ├── experimental_metrics.ts │ ├── index-incubating.ts │ ├── index.ts │ ├── internal │ │ └── utils.ts │ ├── resource │ │ ├── SemanticResourceAttributes.ts │ │ └── index.ts │ ├── stable_attributes.ts │ ├── stable_metrics.ts │ └── trace │ │ ├── SemanticAttributes.ts │ │ └── index.ts ├── test │ ├── helpers │ │ └── autoImports.ts │ └── sizeLimit.test.ts ├── tsconfig.esm.json ├── tsconfig.esnext.json └── tsconfig.json ├── tsconfig.base.esm.json ├── tsconfig.base.esnext.json ├── tsconfig.base.json ├── tsconfig.esm.json ├── tsconfig.esnext.json └── tsconfig.json /.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 | -------------------------------------------------------------------------------- /.github/CODEOWNERS: -------------------------------------------------------------------------------- 1 | ##################################################### 2 | # 3 | # List of approvers for OpenTelemetry JS SDK 4 | # 5 | ##################################################### 6 | # 7 | # Learn about membership in OpenTelemetry community: 8 | # https://github.com/open-telemetry/community/blob/master/community-membership.md 9 | # 10 | # 11 | # Learn about CODEOWNERS file format: 12 | # https://help.github.com/en/articles/about-code-owners 13 | # 14 | 15 | * @open-telemetry/javascript-approvers 16 | -------------------------------------------------------------------------------- /.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 | -------------------------------------------------------------------------------- /.github/workflows/codeql-analysis.yml: -------------------------------------------------------------------------------- 1 | name: "CodeQL Analysis" 2 | 3 | on: 4 | workflow_dispatch: 5 | push: 6 | branches: [ main ] 7 | pull_request: 8 | 9 | jobs: 10 | CodeQL-Build: 11 | runs-on: ubuntu-latest 12 | 13 | steps: 14 | - name: Checkout repository 15 | uses: actions/checkout@v4 16 | 17 | # Initializes the CodeQL tools for scanning. 18 | - name: Initialize CodeQL 19 | uses: github/codeql-action/init@v3 20 | with: 21 | languages: javascript 22 | 23 | - name: Autobuild 24 | uses: github/codeql-action/autobuild@v3 25 | 26 | - name: Perform CodeQL Analysis 27 | uses: github/codeql-action/analyze@v3 28 | -------------------------------------------------------------------------------- /.github/workflows/fossa.yml: -------------------------------------------------------------------------------- 1 | name: FOSSA scanning 2 | 3 | on: 4 | push: 5 | branches: 6 | - main 7 | 8 | permissions: 9 | contents: read 10 | 11 | jobs: 12 | fossa: 13 | runs-on: ubuntu-latest 14 | steps: 15 | - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 16 | 17 | - uses: fossas/fossa-action@93a52ecf7c3ac7eb40f5de77fd69b1a19524de94 # v1.5.0 18 | with: 19 | api-key: ${{secrets.FOSSA_API_KEY}} 20 | team: OpenTelemetry 21 | -------------------------------------------------------------------------------- /.github/workflows/label-releases.yml: -------------------------------------------------------------------------------- 1 | on: 2 | pull_request_target: 3 | branches: 4 | - main 5 | 6 | jobs: 7 | label-release: 8 | if: ${{ startsWith(github.event.pull_request.title, 'release:') }} 9 | runs-on: ubuntu-latest 10 | steps: 11 | - run: echo this is a release PR 12 | - run: gh pr edit ${{ github.event.pull_request.number }} --add-label release 13 | -------------------------------------------------------------------------------- /.github/workflows/lint.yml: -------------------------------------------------------------------------------- 1 | name: Lint 2 | 3 | on: 4 | push: 5 | branches: 6 | - main 7 | pull_request: 8 | merge_group: 9 | 10 | jobs: 11 | build: 12 | runs-on: ubuntu-latest 13 | 14 | steps: 15 | - name: Checkout 16 | uses: actions/checkout@v4 17 | - uses: actions/setup-node@v4 18 | with: 19 | cache: 'npm' 20 | cache-dependency-path: | 21 | package-lock.json 22 | node-version: '22' 23 | 24 | - name: Bootstrap 25 | run: npm ci 26 | 27 | - name: Lint 28 | run: | 29 | npm run lint 30 | npm run lint:examples 31 | 32 | - name: Lint doc files 33 | run: | 34 | npm run compile 35 | NODE_OPTIONS=--max-old-space-size=6144 npm run docs 36 | npm run docs:test 37 | -------------------------------------------------------------------------------- /.github/workflows/peer-api.yml: -------------------------------------------------------------------------------- 1 | name: Ensure API Peer Dependency 2 | 3 | on: 4 | push: 5 | branches: 6 | - main 7 | pull_request: 8 | merge_group: 9 | 10 | jobs: 11 | peer-api-check: 12 | runs-on: ubuntu-latest 13 | container: 14 | image: node:22 15 | steps: 16 | - name: Checkout 17 | uses: actions/checkout@v4 18 | 19 | - name: Install lerna 20 | run: npm install -g lerna@6.6.2 21 | 22 | - name: Install semver 23 | run: npm install -g semver 24 | 25 | - name: Check API dependency semantics 26 | working-directory: packages 27 | run: lerna run peer-api-check 28 | -------------------------------------------------------------------------------- /.gitmodules: -------------------------------------------------------------------------------- 1 | [submodule "experimental/packages/otlp-transformer/protos"] 2 | path = experimental/packages/otlp-transformer/protos 3 | url = https://github.com/open-telemetry/opentelemetry-proto.git 4 | -------------------------------------------------------------------------------- /.markdownlint-cli2.jsonc: -------------------------------------------------------------------------------- 1 | // https://github.com/DavidAnson/markdownlint-cli2#markdownlint-cli2jsonc 2 | { 3 | "config": { 4 | // https://github.com/DavidAnson/markdownlint/blob/main/README.md#rules--aliases 5 | "MD013": false, 6 | "MD024": false, 7 | "MD033": false, 8 | "MD041": false, 9 | "MD026": false, 10 | "MD004": { "style": "dash" } // ul-style 11 | }, 12 | "gitignore": true, 13 | "noBanner": true, 14 | "noProgress": true 15 | } 16 | -------------------------------------------------------------------------------- /.mocharc.yml: -------------------------------------------------------------------------------- 1 | require: 'ts-node/register' 2 | -------------------------------------------------------------------------------- /.npmignore: -------------------------------------------------------------------------------- 1 | /bin 2 | /coverage 3 | /doc 4 | /test 5 | -------------------------------------------------------------------------------- /.npmrc: -------------------------------------------------------------------------------- 1 | lockfile-version=2 2 | -------------------------------------------------------------------------------- /.nycrc: -------------------------------------------------------------------------------- 1 | { 2 | "produceSourceMap": false, 3 | "extension": [ 4 | ".ts" 5 | ], 6 | "reporter": ["text", "json"], 7 | "exclude": [ 8 | "**/*.d.ts", 9 | "build/**/*.*", 10 | "src/index.ts", 11 | "src/platform/**/index.ts", 12 | "src/version.ts", 13 | "test/**/*.*", 14 | ".eslintrc.js", 15 | "karma.conf.js", 16 | "webpack/*.js", 17 | "src/generated/**" 18 | ], 19 | "all": true 20 | } 21 | -------------------------------------------------------------------------------- /api/.eslintignore: -------------------------------------------------------------------------------- 1 | build 2 | -------------------------------------------------------------------------------- /api/.eslintrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | "env": { 3 | "mocha": true, 4 | "commonjs": true, 5 | "shared-node-browser": true 6 | }, 7 | ...require('../eslint.base.js') 8 | } 9 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 { _globalThis } from './globalThis'; 18 | -------------------------------------------------------------------------------- /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 { _globalThis } from './node'; 18 | -------------------------------------------------------------------------------- /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 { _globalThis } from './globalThis'; 18 | -------------------------------------------------------------------------------- /api/test/index-webpack.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright The OpenTelemetry Authors 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * https://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | { 17 | const testsContext = require.context('./common', true); 18 | testsContext.keys().forEach(testsContext); 19 | } 20 | -------------------------------------------------------------------------------- /api/test/index-webpack.worker.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright The OpenTelemetry Authors 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * https://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | { 17 | const testsContext = require.context('./common', true); 18 | testsContext.keys().forEach(testsContext); 19 | } 20 | -------------------------------------------------------------------------------- /api/tsconfig.esm.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../tsconfig.base.esm.json", 3 | "compilerOptions": { 4 | "lib": [ 5 | "es2017", 6 | "dom" 7 | ], 8 | "outDir": "build/esm", 9 | "rootDir": "src", 10 | "target": "es2017", 11 | "tsBuildInfoFile": "build/esm/tsconfig.esm.tsbuildinfo" 12 | }, 13 | "include": [ 14 | "src/**/*.ts" 15 | ], 16 | "references": [] 17 | } 18 | -------------------------------------------------------------------------------- /api/tsconfig.esnext.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../tsconfig.base.esnext.json", 3 | "compilerOptions": { 4 | "lib": [ 5 | "es2017", 6 | "dom" 7 | ], 8 | "outDir": "build/esnext", 9 | "rootDir": "src", 10 | "target": "es2017", 11 | "tsBuildInfoFile": "build/esnext/tsconfig.esnext.tsbuildinfo" 12 | }, 13 | "include": [ 14 | "src/**/*.ts" 15 | ], 16 | "references": [] 17 | } 18 | -------------------------------------------------------------------------------- /api/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../tsconfig.base.json", 3 | "compilerOptions": { 4 | "lib": [ 5 | "es2017", 6 | "dom" 7 | ], 8 | "outDir": "build", 9 | "rootDir": ".", 10 | "target": "es2017" 11 | }, 12 | "files": [], 13 | "include": [ 14 | "src/**/*.ts", 15 | "test/**/*.ts" 16 | ], 17 | "references": [] 18 | } 19 | -------------------------------------------------------------------------------- /api/typedoc.json: -------------------------------------------------------------------------------- 1 | { 2 | "entryPoints": [ 3 | "src/index.ts", 4 | "src/experimental/index.ts" 5 | ] 6 | } 7 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /doc/contributing/npm_workspaces.md: -------------------------------------------------------------------------------- 1 | # Maintaining npm workspaces dependencies 2 | 3 | This documents the caveats on maintaining npm workspaces dependencies. 4 | 5 | ## Karma 6 | 7 | Packages with executables are hoisted in workspaces. In this case, `karma` and 8 | its plugins are not installed in the same `node_modules` folder, which leads to 9 | a condition that `karma` can not find the plugins necessary to run the tests. 10 | 11 | To alleviate this, karma and its plugins are listed as root dependencies as 12 | well. 13 | 14 | Relevant issue: [[RFC] Add nohoist option for workspaces](https://github.com/npm/rfcs/issues/287) 15 | -------------------------------------------------------------------------------- /e2e-tests/.eslintrc.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright The OpenTelemetry Authors 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * https://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | module.exports = { 18 | env: { 19 | node: true, 20 | }, 21 | ...require('../eslint.base.js'), 22 | rules: { 23 | 'no-console': 'off', 24 | }, 25 | }; 26 | -------------------------------------------------------------------------------- /e2e-tests/.gitignore: -------------------------------------------------------------------------------- 1 | # collector output file 2 | collector-output.json -------------------------------------------------------------------------------- /e2e-tests/collector-config.yaml: -------------------------------------------------------------------------------- 1 | receivers: 2 | otlp: 3 | protocols: 4 | http: 5 | endpoint: 0.0.0.0:4318 6 | 7 | exporters: 8 | file: 9 | path: ./collector-output.json 10 | 11 | service: 12 | pipelines: 13 | traces: 14 | receivers: [otlp] 15 | exporters: [file] 16 | metrics: 17 | receivers: [otlp] 18 | exporters: [file] 19 | logs: 20 | receivers: [otlp] 21 | exporters: [file] -------------------------------------------------------------------------------- /examples/.eslintrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | env: { 3 | mocha: true, 4 | node: true, 5 | es6: true 6 | }, 7 | parserOptions: { 8 | ecmaVersion: '2021' 9 | }, 10 | rules: { 11 | "header/header": "off" 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /examples/basic-tracer-node/docker/ot/collector-config.yaml: -------------------------------------------------------------------------------- 1 | receivers: 2 | otlp: 3 | protocols: 4 | grpc: 5 | http: 6 | cors: 7 | allowed_origins: 8 | - http://* 9 | - https://* 10 | 11 | exporters: 12 | jaeger: 13 | endpoint: jaeger-all-in-one:14250 14 | tls: 15 | insecure: true 16 | 17 | processors: 18 | batch: 19 | 20 | service: 21 | telemetry: 22 | logs: 23 | level: "debug" 24 | pipelines: 25 | traces: 26 | receivers: [otlp] 27 | exporters: [jaeger] 28 | processors: [batch] 29 | -------------------------------------------------------------------------------- /examples/basic-tracer-node/docker/ot/docker-compose.yaml: -------------------------------------------------------------------------------- 1 | version: "3.8" 2 | services: 3 | 4 | # Collector 5 | otel-collector: 6 | image: otel/opentelemetry-collector-contrib:0.42.0 7 | command: ["--config=/conf/collector-config.yaml"] 8 | volumes: 9 | - ./collector-config.yaml:/conf/collector-config.yaml 10 | ports: 11 | - "9464:9464" 12 | - "4317:4317" 13 | - "4318:4318" 14 | depends_on: 15 | - jaeger-all-in-one 16 | 17 | # Jaeger 18 | jaeger-all-in-one: 19 | image: jaegertracing/all-in-one:1.30.0 20 | ports: 21 | - "16686:16686" 22 | - "14268:14268" 23 | - "14250" 24 | 25 | 26 | -------------------------------------------------------------------------------- /examples/basic-tracer-node/images/jaeger-ui-detail.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/open-telemetry/opentelemetry-js/e18a6c8456818dc71f7e9aa1bbf98e52f98b5f87/examples/basic-tracer-node/images/jaeger-ui-detail.png -------------------------------------------------------------------------------- /examples/basic-tracer-node/images/jaeger-ui-list.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/open-telemetry/opentelemetry-js/e18a6c8456818dc71f7e9aa1bbf98e52f98b5f87/examples/basic-tracer-node/images/jaeger-ui-list.png -------------------------------------------------------------------------------- /examples/basic-tracer-node/images/zipkin-ui-detail.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/open-telemetry/opentelemetry-js/e18a6c8456818dc71f7e9aa1bbf98e52f98b5f87/examples/basic-tracer-node/images/zipkin-ui-detail.png -------------------------------------------------------------------------------- /examples/basic-tracer-node/images/zipkin-ui-list.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/open-telemetry/opentelemetry-js/e18a6c8456818dc71f7e9aa1bbf98e52f98b5f87/examples/basic-tracer-node/images/zipkin-ui-list.png -------------------------------------------------------------------------------- /examples/esm-http-ts/README.md: -------------------------------------------------------------------------------- 1 | # Overview 2 | 3 | This is a simple example that demonstrates tracing HTTP request, with an app written in TypeScript and transpiled to ES Modules. 4 | 5 | ## Installation 6 | 7 | ```sh 8 | # from this directory 9 | npm install 10 | npm run build 11 | npm start 12 | ``` 13 | 14 | In a separate terminal, `curl localhost:3000`. 15 | 16 | See two spans in the console (one manual, one for http instrumentation) 17 | 18 | ## Useful links 19 | 20 | - For more information on OpenTelemetry, visit: 21 | - For more information on OpenTelemetry for Node.js, visit: 22 | 23 | ## LICENSE 24 | 25 | Apache License 2.0 26 | -------------------------------------------------------------------------------- /examples/grpc-js/images/jaeger.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/open-telemetry/opentelemetry-js/e18a6c8456818dc71f7e9aa1bbf98e52f98b5f87/examples/grpc-js/images/jaeger.png -------------------------------------------------------------------------------- /examples/grpc-js/images/zipkin.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/open-telemetry/opentelemetry-js/e18a6c8456818dc71f7e9aa1bbf98e52f98b5f87/examples/grpc-js/images/zipkin.png -------------------------------------------------------------------------------- /examples/http/images/jaeger-ui.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/open-telemetry/opentelemetry-js/e18a6c8456818dc71f7e9aa1bbf98e52f98b5f87/examples/http/images/jaeger-ui.png -------------------------------------------------------------------------------- /examples/http/images/zipkin-ui.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/open-telemetry/opentelemetry-js/e18a6c8456818dc71f7e9aa1bbf98e52f98b5f87/examples/http/images/zipkin-ui.png -------------------------------------------------------------------------------- /examples/https/docker/docker-compose.yml: -------------------------------------------------------------------------------- 1 | version: "3.8" 2 | services: 3 | # Jaeger 4 | jaeger-all-in-one: 5 | image: jaegertracing/all-in-one:1.37.0 6 | ports: 7 | - "16686:16686" # frontend 8 | - "14268:14268" # jaeger.thrift via HTTP 9 | - "6832:6832/udp" # jaeger.thrift via UDP (binary) 10 | # Zipkin 11 | zipkin-all-in-one: 12 | image: openzipkin/zipkin:latest 13 | ports: 14 | - "9411:9411" 15 | -------------------------------------------------------------------------------- /examples/https/images/jaeger-ui.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/open-telemetry/opentelemetry-js/e18a6c8456818dc71f7e9aa1bbf98e52f98b5f87/examples/https/images/jaeger-ui.png -------------------------------------------------------------------------------- /examples/https/images/zipkin-ui.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/open-telemetry/opentelemetry-js/e18a6c8456818dc71f7e9aa1bbf98e52f98b5f87/examples/https/images/zipkin-ui.png -------------------------------------------------------------------------------- /examples/opentelemetry-web/.eslintrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | env: { 3 | browser: true 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /examples/opentelemetry-web/docker/collector-config.yaml: -------------------------------------------------------------------------------- 1 | receivers: 2 | otlp: 3 | protocols: 4 | grpc: 5 | http: 6 | cors: 7 | allowed_origins: 8 | - http://* 9 | - https://* 10 | 11 | exporters: 12 | zipkin: 13 | endpoint: "http://zipkin-all-in-one:9411/api/v2/spans" 14 | prometheus: 15 | endpoint: "0.0.0.0:9464" 16 | 17 | processors: 18 | batch: 19 | 20 | service: 21 | telemetry: 22 | logs: 23 | level: "debug" 24 | pipelines: 25 | traces: 26 | receivers: [otlp] 27 | exporters: [zipkin] 28 | processors: [batch] 29 | metrics: 30 | receivers: [otlp] 31 | exporters: [prometheus] 32 | processors: [batch] 33 | -------------------------------------------------------------------------------- /examples/opentelemetry-web/docker/docker-compose.yaml: -------------------------------------------------------------------------------- 1 | version: "3" 2 | services: 3 | # Collector 4 | collector: 5 | image: otel/opentelemetry-collector-contrib:0.53.0 6 | # image: otel/opentelemetry-collector-contrib:latest 7 | command: ["--config=/conf/collector-config.yaml"] 8 | volumes: 9 | - ./collector-config.yaml:/conf/collector-config.yaml 10 | ports: 11 | - "9464:9464" 12 | - "4317:4317" 13 | - "4318:4318" 14 | depends_on: 15 | - 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 | -------------------------------------------------------------------------------- /examples/opentelemetry-web/docker/prometheus.yaml: -------------------------------------------------------------------------------- 1 | global: 2 | scrape_interval: 15s # Default is every 1 minute. 3 | 4 | scrape_configs: 5 | - job_name: 'collector' 6 | # metrics_path defaults to '/metrics' 7 | # scheme defaults to 'http'. 8 | static_configs: 9 | - targets: ['collector:9464'] 10 | -------------------------------------------------------------------------------- /examples/opentelemetry-web/examples/fetch-proto/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Fetch Plugin Example 7 | 8 | 9 | 10 | 11 | 12 | 13 | Example of using Web Tracer with Fetch plugin with console exporter and proto exporter 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /examples/opentelemetry-web/examples/fetch/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Fetch Plugin Example 7 | 8 | 9 | 10 | 11 | 12 | 13 | Example of using Web Tracer with Fetch plugin with console exporter and collector exporter 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /examples/opentelemetry-web/examples/fetchXhr/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Fetch Plugin Example 7 | 8 | 9 | 10 | 11 | 12 | 13 | Example of using Web Tracer with Fetch and XMLHttpRequest plugins with console exporter and collector exporter without the B3 Propagator 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /examples/opentelemetry-web/examples/fetchXhrB3/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Fetch Plugin Example 7 | 8 | 9 | 10 | 11 | 12 | 13 | Example of using Web Tracer with Fetch and XMLHttpRequest plugins with console exporter and collector exporter with B3 Propagator 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /examples/opentelemetry-web/examples/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 | -------------------------------------------------------------------------------- /examples/opentelemetry-web/examples/zipkin/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Zipkin Exporter Example 7 | 8 | 9 | 10 | 11 | 12 | Example of using Web Tracer with Zipkin Exporter 13 | 14 |
15 | 16 | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /examples/opentelemetry-web/images/xml-http-request.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/open-telemetry/opentelemetry-js/e18a6c8456818dc71f7e9aa1bbf98e52f98b5f87/examples/opentelemetry-web/images/xml-http-request.png -------------------------------------------------------------------------------- /examples/opentracing-shim/images/jaeger-ui.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/open-telemetry/opentelemetry-js/e18a6c8456818dc71f7e9aa1bbf98e52f98b5f87/examples/opentracing-shim/images/jaeger-ui.png -------------------------------------------------------------------------------- /examples/opentracing-shim/images/zipkin-ui.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/open-telemetry/opentelemetry-js/e18a6c8456818dc71f7e9aa1bbf98e52f98b5f87/examples/opentracing-shim/images/zipkin-ui.png -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /examples/otlp-exporter-node/docker/collector-config.yaml: -------------------------------------------------------------------------------- 1 | receivers: 2 | otlp: 3 | protocols: 4 | grpc: 5 | http: 6 | cors: 7 | allowed_origins: 8 | - http://* 9 | - https://* 10 | 11 | exporters: 12 | zipkin: 13 | endpoint: "http://zipkin-all-in-one:9411/api/v2/spans" 14 | prometheus: 15 | endpoint: "0.0.0.0:9464" 16 | 17 | processors: 18 | batch: 19 | 20 | service: 21 | telemetry: 22 | logs: 23 | level: "debug" 24 | pipelines: 25 | traces: 26 | receivers: [otlp] 27 | exporters: [zipkin] 28 | processors: [batch] 29 | metrics: 30 | receivers: [otlp] 31 | exporters: [prometheus] 32 | processors: [batch] 33 | -------------------------------------------------------------------------------- /examples/otlp-exporter-node/docker/docker-compose.yaml: -------------------------------------------------------------------------------- 1 | version: "3" 2 | services: 3 | # Collector 4 | collector: 5 | image: otel/opentelemetry-collector-contrib:0.53.0 6 | # image: otel/opentelemetry-collector-contrib:latest 7 | command: ["--config=/conf/collector-config.yaml"] 8 | volumes: 9 | - ./collector-config.yaml:/conf/collector-config.yaml 10 | ports: 11 | - "9464:9464" 12 | - "4317:4317" 13 | - "4318:4318" 14 | depends_on: 15 | - 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 | -------------------------------------------------------------------------------- /examples/otlp-exporter-node/docker/prometheus.yaml: -------------------------------------------------------------------------------- 1 | global: 2 | scrape_interval: 15s # Default is every 1 minute. 3 | 4 | scrape_configs: 5 | - job_name: 'collector' 6 | # metrics_path defaults to '/metrics' 7 | # scheme defaults to 'http'. 8 | static_configs: 9 | - targets: ['collector:9464'] 10 | -------------------------------------------------------------------------------- /examples/otlp-exporter-node/images/spans.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/open-telemetry/opentelemetry-js/e18a6c8456818dc71f7e9aa1bbf98e52f98b5f87/examples/otlp-exporter-node/images/spans.png -------------------------------------------------------------------------------- /experimental/backwards-compatibility/node14/index.ts: -------------------------------------------------------------------------------- 1 | import {NodeSDK, api} from '@opentelemetry/sdk-node'; 2 | import {ConsoleSpanExporter} from '@opentelemetry/sdk-trace-base'; 3 | 4 | const sdk = new NodeSDK({ 5 | traceExporter: new ConsoleSpanExporter(), 6 | autoDetectResources: false, 7 | }); 8 | sdk.start(); 9 | 10 | api.trace.getTracer('test'); 11 | -------------------------------------------------------------------------------- /experimental/backwards-compatibility/node14/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../../tsconfig.base.es5.json", 3 | "compilerOptions": { 4 | "rootDir": ".", 5 | "outDir": "build" 6 | }, 7 | "include": [ 8 | "index.ts" 9 | ], 10 | "references": [ 11 | { 12 | "path": "../../../packages/opentelemetry-sdk-trace-base" 13 | }, 14 | { 15 | "path": "../../packages/opentelemetry-sdk-node" 16 | } 17 | ] 18 | } 19 | -------------------------------------------------------------------------------- /experimental/backwards-compatibility/node16/index.ts: -------------------------------------------------------------------------------- 1 | import {NodeSDK, api} from '@opentelemetry/sdk-node'; 2 | import {ConsoleSpanExporter} from '@opentelemetry/sdk-trace-base'; 3 | 4 | const sdk = new NodeSDK({ 5 | traceExporter: new ConsoleSpanExporter(), 6 | autoDetectResources: false, 7 | }); 8 | sdk.start(); 9 | 10 | api.trace.getTracer('test'); 11 | -------------------------------------------------------------------------------- /experimental/backwards-compatibility/node16/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../../tsconfig.base.es5.json", 3 | "compilerOptions": { 4 | "rootDir": ".", 5 | "outDir": "build" 6 | }, 7 | "include": [ 8 | "index.ts" 9 | ], 10 | "references": [ 11 | { 12 | "path": "../../../packages/opentelemetry-sdk-trace-base" 13 | }, 14 | { 15 | "path": "../../packages/opentelemetry-sdk-node" 16 | } 17 | ] 18 | } 19 | -------------------------------------------------------------------------------- /experimental/examples/.eslintrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | "env": { 3 | "mocha": true, 4 | "node": true 5 | }, 6 | ...require('../../eslint.base.js') 7 | } 8 | -------------------------------------------------------------------------------- /experimental/examples/README.md: -------------------------------------------------------------------------------- 1 | # OpenTelemetry JavaScript Examples 2 | 3 | This directory contains examples of how to run real applications with OpenTelemetry JavaScript. 4 | 5 | ## Work in Progress Examples 6 | 7 | These examples are using work in progress metrics packages. 8 | 9 | |Name | Description | Complexity Level | 10 | |------------- | ------------- | ------------ | 11 | |[prometheus](prometheus/) | Basic Metric use with Prometheus (`@opentelemetry/exporter-prometheus`) Exporter | Beginner | 12 | 13 | ## Contributing 14 | 15 | Please see [CONTRIBUTING.md](https://github.com/open-telemetry/opentelemetry-js/blob/main/CONTRIBUTING.md) for instructions on how to contribute. 16 | 17 | ## LICENSE 18 | 19 | Apache License 2.0 20 | -------------------------------------------------------------------------------- /experimental/examples/logs/README.md: -------------------------------------------------------------------------------- 1 | ## Installation 2 | 3 | ```sh 4 | # from this directory 5 | npm install 6 | ``` 7 | 8 | ## Run the Application 9 | 10 | ```sh 11 | npm start 12 | ``` 13 | 14 | ## Useful links 15 | 16 | - For more information on OpenTelemetry, visit: 17 | - For more information on OpenTelemetry logs, visit: 18 | 19 | ## LICENSE 20 | 21 | Apache License 2.0 22 | -------------------------------------------------------------------------------- /experimental/examples/logs/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "logs-example", 3 | "version": "0.202.0", 4 | "private": true, 5 | "scripts": { 6 | "start": "ts-node index.ts", 7 | "align-api-deps": "node ../../../scripts/align-api-deps.js" 8 | }, 9 | "dependencies": { 10 | "@opentelemetry/api": "^1.7.0", 11 | "@opentelemetry/api-logs": "0.202.0", 12 | "@opentelemetry/sdk-logs": "0.202.0" 13 | }, 14 | "devDependencies": { 15 | "@types/node": "18.6.5", 16 | "ts-node": "^10.9.1" 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /experimental/examples/logs/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../../tsconfig.base.json", 3 | "compilerOptions": { 4 | "outDir": "build", 5 | "rootDir": "." 6 | }, 7 | "include": ["./index.ts"], 8 | "references": [ 9 | { 10 | "path": "../../../api" 11 | }, 12 | { 13 | "path": "../../../experimental/packages/api-logs" 14 | }, 15 | { 16 | "path": "../../../experimental/packages/sdk-logs" 17 | } 18 | ] 19 | } 20 | -------------------------------------------------------------------------------- /experimental/examples/opencensus-shim/images/jaeger-trace.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/open-telemetry/opentelemetry-js/e18a6c8456818dc71f7e9aa1bbf98e52f98b5f87/experimental/examples/opencensus-shim/images/jaeger-trace.png -------------------------------------------------------------------------------- /experimental/examples/opencensus-shim/images/prom-metrics.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/open-telemetry/opentelemetry-js/e18a6c8456818dc71f7e9aa1bbf98e52f98b5f87/experimental/examples/opencensus-shim/images/prom-metrics.png -------------------------------------------------------------------------------- /experimental/examples/opencensus-shim/utils.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright The OpenTelemetry Authors 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * https://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 'use strict'; 17 | 18 | async function sleep(ms) { 19 | return new Promise(resolve => setTimeout(resolve, ms)); 20 | } 21 | 22 | exports.sleep = sleep; 23 | -------------------------------------------------------------------------------- /experimental/examples/prometheus/docker-compose.yaml: -------------------------------------------------------------------------------- 1 | version: '3.7' 2 | 3 | services: 4 | prometheus: 5 | image: prom/prometheus:v2.47.2 6 | extra_hosts: 7 | - host.docker.internal:host-gateway 8 | volumes: 9 | - "./prometheus.docker.yml:/etc/prometheus/prometheus.yml" 10 | ports: 11 | - 9090:9090 12 | restart: always 13 | -------------------------------------------------------------------------------- /experimental/examples/prometheus/images/prom-counter.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/open-telemetry/opentelemetry-js/e18a6c8456818dc71f7e9aa1bbf98e52f98b5f87/experimental/examples/prometheus/images/prom-counter.png -------------------------------------------------------------------------------- /experimental/examples/prometheus/images/prom-gauge.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/open-telemetry/opentelemetry-js/e18a6c8456818dc71f7e9aa1bbf98e52f98b5f87/experimental/examples/prometheus/images/prom-gauge.png -------------------------------------------------------------------------------- /experimental/examples/prometheus/images/prom-updowncounter.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/open-telemetry/opentelemetry-js/e18a6c8456818dc71f7e9aa1bbf98e52f98b5f87/experimental/examples/prometheus/images/prom-updowncounter.png -------------------------------------------------------------------------------- /experimental/examples/prometheus/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "prometheus-example", 3 | "version": "0.202.0", 4 | "private": true, 5 | "description": "Example of using @opentelemetry/sdk-metrics and @opentelemetry/exporter-prometheus", 6 | "main": "index.js", 7 | "scripts": { 8 | "start": "node index.js", 9 | "align-api-deps": "node ../../../scripts/align-api-deps.js" 10 | }, 11 | "author": "OpenTelemetry Authors", 12 | "license": "Apache-2.0", 13 | "dependencies": { 14 | "@opentelemetry/api": "^1.3.0", 15 | "@opentelemetry/exporter-prometheus": "0.202.0", 16 | "@opentelemetry/sdk-metrics": "2.0.1" 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /experimental/examples/prometheus/prometheus.docker.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: ['host.docker.internal:9464'] 10 | -------------------------------------------------------------------------------- /experimental/examples/prometheus/prometheus.yml: -------------------------------------------------------------------------------- 1 | global: 2 | scrape_interval: 15s # Default is every 1 minute. 3 | 4 | scrape_configs: 5 | - job_name: 'opentelemetry' 6 | # metrics_path defaults to '/metrics' 7 | # scheme defaults to 'http'. 8 | static_configs: 9 | - targets: ['localhost:9464'] 10 | -------------------------------------------------------------------------------- /experimental/packages/api-logs/.eslintignore: -------------------------------------------------------------------------------- 1 | build 2 | -------------------------------------------------------------------------------- /experimental/packages/api-logs/.eslintrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | "env": { 3 | "mocha": true, 4 | "commonjs": true, 5 | "shared-node-browser": true 6 | }, 7 | ...require('../../../eslint.base.js') 8 | } 9 | -------------------------------------------------------------------------------- /experimental/packages/api-logs/src/platform/browser/index.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright The OpenTelemetry Authors 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * https://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | export { _globalThis } from './globalThis'; 18 | -------------------------------------------------------------------------------- /experimental/packages/api-logs/src/platform/index.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright The OpenTelemetry Authors 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * https://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | export { _globalThis } from './node'; 18 | -------------------------------------------------------------------------------- /experimental/packages/api-logs/src/platform/node/index.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright The OpenTelemetry Authors 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * https://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | export { _globalThis } from './globalThis'; 18 | -------------------------------------------------------------------------------- /experimental/packages/api-logs/tsconfig.esm.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../../tsconfig.base.esm.json", 3 | "compilerOptions": { 4 | "lib": [ 5 | "es2017", 6 | "dom" 7 | ], 8 | "outDir": "build/esm", 9 | "rootDir": "src", 10 | "target": "es2017", 11 | "tsBuildInfoFile": "build/esm/tsconfig.esm.tsbuildinfo" 12 | }, 13 | "include": [ 14 | "src/**/*.ts" 15 | ], 16 | "references": [ 17 | { 18 | "path": "../../../api" 19 | } 20 | ] 21 | } 22 | -------------------------------------------------------------------------------- /experimental/packages/api-logs/tsconfig.esnext.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../../tsconfig.base.esnext.json", 3 | "compilerOptions": { 4 | "lib": [ 5 | "es2017", 6 | "dom" 7 | ], 8 | "outDir": "build/esnext", 9 | "rootDir": "src", 10 | "target": "es2017", 11 | "tsBuildInfoFile": "build/esnext/tsconfig.esnext.tsbuildinfo" 12 | }, 13 | "include": [ 14 | "src/**/*.ts" 15 | ], 16 | "references": [ 17 | { 18 | "path": "../../../api" 19 | } 20 | ] 21 | } 22 | -------------------------------------------------------------------------------- /experimental/packages/api-logs/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../../tsconfig.base.json", 3 | "compilerOptions": { 4 | "lib": [ 5 | "es2017", 6 | "dom" 7 | ], 8 | "outDir": "build", 9 | "rootDir": ".", 10 | "target": "es2017" 11 | }, 12 | "files": [], 13 | "include": [ 14 | "src/**/*.ts", 15 | "test/**/*.ts" 16 | ], 17 | "references": [ 18 | { 19 | "path": "../../../api" 20 | } 21 | ] 22 | } 23 | -------------------------------------------------------------------------------- /experimental/packages/exporter-logs-otlp-grpc/.eslintignore: -------------------------------------------------------------------------------- 1 | build 2 | -------------------------------------------------------------------------------- /experimental/packages/exporter-logs-otlp-grpc/.eslintrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | "env": { 3 | "mocha": true, 4 | "commonjs": true, 5 | "node": true, 6 | }, 7 | ...require('../../../eslint.base.js') 8 | } 9 | -------------------------------------------------------------------------------- /experimental/packages/exporter-logs-otlp-grpc/.npmignore: -------------------------------------------------------------------------------- 1 | /bin 2 | /coverage 3 | /doc 4 | /test 5 | -------------------------------------------------------------------------------- /experimental/packages/exporter-logs-otlp-grpc/src/index.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright The OpenTelemetry Authors 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * https://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | export { OTLPLogExporter } from './OTLPLogExporter'; 18 | -------------------------------------------------------------------------------- /experimental/packages/exporter-logs-otlp-grpc/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../../tsconfig.base.json", 3 | "compilerOptions": { 4 | "outDir": "build", 5 | "rootDir": "." 6 | }, 7 | "include": [ 8 | "src/**/*.ts", 9 | "test/**/*.ts" 10 | ], 11 | "references": [ 12 | { 13 | "path": "../../../api" 14 | }, 15 | { 16 | "path": "../../../packages/opentelemetry-core" 17 | }, 18 | { 19 | "path": "../../../packages/opentelemetry-resources" 20 | }, 21 | { 22 | "path": "../api-logs" 23 | }, 24 | { 25 | "path": "../otlp-exporter-base" 26 | }, 27 | { 28 | "path": "../otlp-grpc-exporter-base" 29 | }, 30 | { 31 | "path": "../otlp-transformer" 32 | }, 33 | { 34 | "path": "../sdk-logs" 35 | } 36 | ] 37 | } 38 | -------------------------------------------------------------------------------- /experimental/packages/exporter-logs-otlp-http/.eslintignore: -------------------------------------------------------------------------------- 1 | build 2 | -------------------------------------------------------------------------------- /experimental/packages/exporter-logs-otlp-http/.eslintrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | env: { 3 | mocha: true, 4 | commonjs: true, 5 | node: true, 6 | browser: true, 7 | }, 8 | ...require('../../../eslint.base.js'), 9 | }; 10 | -------------------------------------------------------------------------------- /experimental/packages/exporter-logs-otlp-http/.npmignore: -------------------------------------------------------------------------------- 1 | /bin 2 | /coverage 3 | /doc 4 | /test 5 | -------------------------------------------------------------------------------- /experimental/packages/exporter-logs-otlp-http/src/index.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright The OpenTelemetry Authors 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * https://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | export { OTLPLogExporter } from './platform'; 18 | -------------------------------------------------------------------------------- /experimental/packages/exporter-logs-otlp-http/src/platform/browser/index.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright The OpenTelemetry Authors 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * https://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | export { OTLPLogExporter } from './OTLPLogExporter'; 18 | -------------------------------------------------------------------------------- /experimental/packages/exporter-logs-otlp-http/src/platform/index.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright The OpenTelemetry Authors 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * https://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | export { OTLPLogExporter } from './node'; 18 | -------------------------------------------------------------------------------- /experimental/packages/exporter-logs-otlp-http/src/platform/node/index.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright The OpenTelemetry Authors 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * https://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | export { OTLPLogExporter } from './OTLPLogExporter'; 18 | -------------------------------------------------------------------------------- /experimental/packages/exporter-logs-otlp-http/test/browser/index-webpack.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright The OpenTelemetry Authors 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * https://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | { 18 | const testsContext = require.context('../browser', true, /test$/); 19 | testsContext.keys().forEach(testsContext); 20 | } 21 | -------------------------------------------------------------------------------- /experimental/packages/exporter-logs-otlp-http/tsconfig.esm.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../../tsconfig.base.esm.json", 3 | "compilerOptions": { 4 | "outDir": "build/esm", 5 | "rootDir": "src", 6 | "tsBuildInfoFile": "build/esm/tsconfig.esm.tsbuildinfo" 7 | }, 8 | "include": [ 9 | "src/**/*.ts" 10 | ], 11 | "references": [ 12 | { 13 | "path": "../../../api" 14 | }, 15 | { 16 | "path": "../../../packages/opentelemetry-core" 17 | }, 18 | { 19 | "path": "../../../packages/opentelemetry-resources" 20 | }, 21 | { 22 | "path": "../api-logs" 23 | }, 24 | { 25 | "path": "../otlp-exporter-base" 26 | }, 27 | { 28 | "path": "../otlp-transformer" 29 | }, 30 | { 31 | "path": "../sdk-logs" 32 | } 33 | ] 34 | } 35 | -------------------------------------------------------------------------------- /experimental/packages/exporter-logs-otlp-http/tsconfig.esnext.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../../tsconfig.base.esnext.json", 3 | "compilerOptions": { 4 | "outDir": "build/esnext", 5 | "rootDir": "src", 6 | "tsBuildInfoFile": "build/esnext/tsconfig.esnext.tsbuildinfo" 7 | }, 8 | "include": [ 9 | "src/**/*.ts" 10 | ], 11 | "references": [ 12 | { 13 | "path": "../../../api" 14 | }, 15 | { 16 | "path": "../../../packages/opentelemetry-core" 17 | }, 18 | { 19 | "path": "../../../packages/opentelemetry-resources" 20 | }, 21 | { 22 | "path": "../api-logs" 23 | }, 24 | { 25 | "path": "../otlp-exporter-base" 26 | }, 27 | { 28 | "path": "../otlp-transformer" 29 | }, 30 | { 31 | "path": "../sdk-logs" 32 | } 33 | ] 34 | } 35 | -------------------------------------------------------------------------------- /experimental/packages/exporter-logs-otlp-http/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../../tsconfig.base.json", 3 | "compilerOptions": { 4 | "outDir": "build", 5 | "rootDir": "." 6 | }, 7 | "include": [ 8 | "src/**/*.ts", 9 | "test/**/*.ts" 10 | ], 11 | "references": [ 12 | { 13 | "path": "../../../api" 14 | }, 15 | { 16 | "path": "../../../packages/opentelemetry-core" 17 | }, 18 | { 19 | "path": "../../../packages/opentelemetry-resources" 20 | }, 21 | { 22 | "path": "../api-logs" 23 | }, 24 | { 25 | "path": "../otlp-exporter-base" 26 | }, 27 | { 28 | "path": "../otlp-transformer" 29 | }, 30 | { 31 | "path": "../sdk-logs" 32 | } 33 | ] 34 | } 35 | -------------------------------------------------------------------------------- /experimental/packages/exporter-logs-otlp-proto/.eslintignore: -------------------------------------------------------------------------------- 1 | build 2 | -------------------------------------------------------------------------------- /experimental/packages/exporter-logs-otlp-proto/.eslintrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | "env": { 3 | "mocha": true, 4 | "commonjs": true, 5 | "node": true, 6 | }, 7 | ...require('../../../eslint.base.js') 8 | } 9 | -------------------------------------------------------------------------------- /experimental/packages/exporter-logs-otlp-proto/.npmignore: -------------------------------------------------------------------------------- 1 | /bin 2 | /coverage 3 | /doc 4 | /test 5 | -------------------------------------------------------------------------------- /experimental/packages/exporter-logs-otlp-proto/src/index.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright The OpenTelemetry Authors 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * https://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | export { OTLPLogExporter } from './platform'; 17 | -------------------------------------------------------------------------------- /experimental/packages/exporter-logs-otlp-proto/src/platform/browser/index.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright The OpenTelemetry Authors 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * https://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | export { OTLPLogExporter } from './OTLPLogExporter'; 17 | -------------------------------------------------------------------------------- /experimental/packages/exporter-logs-otlp-proto/src/platform/index.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright The OpenTelemetry Authors 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * https://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | export { OTLPLogExporter } from './node'; 17 | -------------------------------------------------------------------------------- /experimental/packages/exporter-logs-otlp-proto/src/platform/node/index.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright The OpenTelemetry Authors 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * https://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | export { OTLPLogExporter } from './OTLPLogExporter'; 18 | -------------------------------------------------------------------------------- /experimental/packages/exporter-logs-otlp-proto/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../../tsconfig.base.json", 3 | "compilerOptions": { 4 | "outDir": "build", 5 | "rootDir": "." 6 | }, 7 | "include": [ 8 | "src/**/*.ts", 9 | "test/**/*.ts" 10 | ], 11 | "references": [ 12 | { 13 | "path": "../../../api" 14 | }, 15 | { 16 | "path": "../../../packages/opentelemetry-core" 17 | }, 18 | { 19 | "path": "../../../packages/opentelemetry-resources" 20 | }, 21 | { 22 | "path": "../../../packages/opentelemetry-sdk-trace-base" 23 | }, 24 | { 25 | "path": "../api-logs" 26 | }, 27 | { 28 | "path": "../otlp-exporter-base" 29 | }, 30 | { 31 | "path": "../otlp-transformer" 32 | }, 33 | { 34 | "path": "../sdk-logs" 35 | } 36 | ] 37 | } 38 | -------------------------------------------------------------------------------- /experimental/packages/exporter-trace-otlp-grpc/.eslintignore: -------------------------------------------------------------------------------- 1 | build 2 | -------------------------------------------------------------------------------- /experimental/packages/exporter-trace-otlp-grpc/.eslintrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | "env": { 3 | "mocha": true, 4 | "commonjs": true, 5 | "node": true, 6 | }, 7 | ...require('../../../eslint.base.js') 8 | } 9 | -------------------------------------------------------------------------------- /experimental/packages/exporter-trace-otlp-grpc/.npmignore: -------------------------------------------------------------------------------- 1 | /bin 2 | /coverage 3 | /doc 4 | /test 5 | -------------------------------------------------------------------------------- /experimental/packages/exporter-trace-otlp-grpc/src/index.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright The OpenTelemetry Authors 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * https://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | export { OTLPTraceExporter } from './OTLPTraceExporter'; 18 | -------------------------------------------------------------------------------- /experimental/packages/exporter-trace-otlp-grpc/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../../tsconfig.base.json", 3 | "compilerOptions": { 4 | "outDir": "build", 5 | "rootDir": "." 6 | }, 7 | "include": [ 8 | "src/**/*.ts", 9 | "test/**/*.ts" 10 | ], 11 | "references": [ 12 | { 13 | "path": "../../../api" 14 | }, 15 | { 16 | "path": "../../../packages/opentelemetry-core" 17 | }, 18 | { 19 | "path": "../../../packages/opentelemetry-resources" 20 | }, 21 | { 22 | "path": "../../../packages/opentelemetry-sdk-trace-base" 23 | }, 24 | { 25 | "path": "../otlp-exporter-base" 26 | }, 27 | { 28 | "path": "../otlp-grpc-exporter-base" 29 | }, 30 | { 31 | "path": "../otlp-transformer" 32 | } 33 | ] 34 | } 35 | -------------------------------------------------------------------------------- /experimental/packages/exporter-trace-otlp-http/.eslintignore: -------------------------------------------------------------------------------- 1 | build 2 | -------------------------------------------------------------------------------- /experimental/packages/exporter-trace-otlp-http/.eslintrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | "env": { 3 | "mocha": true, 4 | "commonjs": true, 5 | "node": true, 6 | "browser": true 7 | }, 8 | ...require('../../../eslint.base.js') 9 | } 10 | -------------------------------------------------------------------------------- /experimental/packages/exporter-trace-otlp-http/.npmignore: -------------------------------------------------------------------------------- 1 | /bin 2 | /coverage 3 | /doc 4 | /test 5 | -------------------------------------------------------------------------------- /experimental/packages/exporter-trace-otlp-http/src/index.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright The OpenTelemetry Authors 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * https://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | export { OTLPTraceExporter } from './platform'; 18 | -------------------------------------------------------------------------------- /experimental/packages/exporter-trace-otlp-http/src/platform/browser/index.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright The OpenTelemetry Authors 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * https://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | export { OTLPTraceExporter } from './OTLPTraceExporter'; 18 | -------------------------------------------------------------------------------- /experimental/packages/exporter-trace-otlp-http/src/platform/index.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright The OpenTelemetry Authors 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * https://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | export { OTLPTraceExporter } from './node'; 18 | -------------------------------------------------------------------------------- /experimental/packages/exporter-trace-otlp-http/src/platform/node/index.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright The OpenTelemetry Authors 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * https://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | export { OTLPTraceExporter } from './OTLPTraceExporter'; 18 | -------------------------------------------------------------------------------- /experimental/packages/exporter-trace-otlp-http/tsconfig.esm.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../../tsconfig.base.esm.json", 3 | "compilerOptions": { 4 | "outDir": "build/esm", 5 | "rootDir": "src", 6 | "tsBuildInfoFile": "build/esm/tsconfig.esm.tsbuildinfo" 7 | }, 8 | "include": [ 9 | "src/**/*.ts" 10 | ], 11 | "references": [ 12 | { 13 | "path": "../../../api" 14 | }, 15 | { 16 | "path": "../../../packages/opentelemetry-core" 17 | }, 18 | { 19 | "path": "../../../packages/opentelemetry-resources" 20 | }, 21 | { 22 | "path": "../../../packages/opentelemetry-sdk-trace-base" 23 | }, 24 | { 25 | "path": "../otlp-exporter-base" 26 | }, 27 | { 28 | "path": "../otlp-transformer" 29 | } 30 | ] 31 | } 32 | -------------------------------------------------------------------------------- /experimental/packages/exporter-trace-otlp-http/tsconfig.esnext.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../../tsconfig.base.esnext.json", 3 | "compilerOptions": { 4 | "outDir": "build/esnext", 5 | "rootDir": "src", 6 | "tsBuildInfoFile": "build/esnext/tsconfig.esnext.tsbuildinfo" 7 | }, 8 | "include": [ 9 | "src/**/*.ts" 10 | ], 11 | "references": [ 12 | { 13 | "path": "../../../api" 14 | }, 15 | { 16 | "path": "../../../packages/opentelemetry-core" 17 | }, 18 | { 19 | "path": "../../../packages/opentelemetry-resources" 20 | }, 21 | { 22 | "path": "../../../packages/opentelemetry-sdk-trace-base" 23 | }, 24 | { 25 | "path": "../otlp-exporter-base" 26 | }, 27 | { 28 | "path": "../otlp-transformer" 29 | } 30 | ] 31 | } 32 | -------------------------------------------------------------------------------- /experimental/packages/exporter-trace-otlp-http/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../../tsconfig.base.json", 3 | "compilerOptions": { 4 | "outDir": "build", 5 | "rootDir": "." 6 | }, 7 | "files": [], 8 | "include": [ 9 | "src/**/*.ts", 10 | "test/**/*.ts" 11 | ], 12 | "references": [ 13 | { 14 | "path": "../../../api" 15 | }, 16 | { 17 | "path": "../../../packages/opentelemetry-core" 18 | }, 19 | { 20 | "path": "../../../packages/opentelemetry-resources" 21 | }, 22 | { 23 | "path": "../../../packages/opentelemetry-sdk-trace-base" 24 | }, 25 | { 26 | "path": "../otlp-exporter-base" 27 | }, 28 | { 29 | "path": "../otlp-transformer" 30 | } 31 | ] 32 | } 33 | -------------------------------------------------------------------------------- /experimental/packages/exporter-trace-otlp-proto/.eslintignore: -------------------------------------------------------------------------------- 1 | build 2 | -------------------------------------------------------------------------------- /experimental/packages/exporter-trace-otlp-proto/.eslintrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | "env": { 3 | "mocha": true, 4 | "commonjs": true, 5 | "node": true, 6 | }, 7 | ...require('../../../eslint.base.js') 8 | } 9 | -------------------------------------------------------------------------------- /experimental/packages/exporter-trace-otlp-proto/.npmignore: -------------------------------------------------------------------------------- 1 | /bin 2 | /coverage 3 | /doc 4 | /test 5 | -------------------------------------------------------------------------------- /experimental/packages/exporter-trace-otlp-proto/src/index.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright The OpenTelemetry Authors 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * https://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | export { OTLPTraceExporter } from './platform'; 17 | -------------------------------------------------------------------------------- /experimental/packages/exporter-trace-otlp-proto/src/platform/browser/index.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright The OpenTelemetry Authors 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * https://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | export { OTLPTraceExporter } from './OTLPTraceExporter'; 17 | -------------------------------------------------------------------------------- /experimental/packages/exporter-trace-otlp-proto/src/platform/index.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright The OpenTelemetry Authors 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * https://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | export { OTLPTraceExporter } from './node'; 17 | -------------------------------------------------------------------------------- /experimental/packages/exporter-trace-otlp-proto/src/platform/node/index.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright The OpenTelemetry Authors 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * https://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | export { OTLPTraceExporter } from './OTLPTraceExporter'; 18 | -------------------------------------------------------------------------------- /experimental/packages/exporter-trace-otlp-proto/tsconfig.esm.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../../tsconfig.base.esm.json", 3 | "compilerOptions": { 4 | "outDir": "build/esm", 5 | "rootDir": "src", 6 | "tsBuildInfoFile": "build/esm/tsconfig.esm.tsbuildinfo" 7 | }, 8 | "include": [ 9 | "src/**/*.ts" 10 | ], 11 | "references": [ 12 | { 13 | "path": "../../../api" 14 | }, 15 | { 16 | "path": "../../../packages/opentelemetry-core" 17 | }, 18 | { 19 | "path": "../../../packages/opentelemetry-resources" 20 | }, 21 | { 22 | "path": "../../../packages/opentelemetry-sdk-trace-base" 23 | }, 24 | { 25 | "path": "../otlp-exporter-base" 26 | }, 27 | { 28 | "path": "../otlp-transformer" 29 | } 30 | ] 31 | } 32 | -------------------------------------------------------------------------------- /experimental/packages/exporter-trace-otlp-proto/tsconfig.esnext.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../../tsconfig.base.esnext.json", 3 | "compilerOptions": { 4 | "outDir": "build/esnext", 5 | "rootDir": "src", 6 | "tsBuildInfoFile": "build/esnext/tsconfig.esnext.tsbuildinfo" 7 | }, 8 | "include": [ 9 | "src/**/*.ts" 10 | ], 11 | "references": [ 12 | { 13 | "path": "../../../api" 14 | }, 15 | { 16 | "path": "../../../packages/opentelemetry-core" 17 | }, 18 | { 19 | "path": "../../../packages/opentelemetry-resources" 20 | }, 21 | { 22 | "path": "../../../packages/opentelemetry-sdk-trace-base" 23 | }, 24 | { 25 | "path": "../otlp-exporter-base" 26 | }, 27 | { 28 | "path": "../otlp-transformer" 29 | } 30 | ] 31 | } 32 | -------------------------------------------------------------------------------- /experimental/packages/exporter-trace-otlp-proto/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../../tsconfig.base.json", 3 | "compilerOptions": { 4 | "outDir": "build", 5 | "rootDir": "." 6 | }, 7 | "include": [ 8 | "src/**/*.ts", 9 | "test/**/*.ts" 10 | ], 11 | "references": [ 12 | { 13 | "path": "../../../api" 14 | }, 15 | { 16 | "path": "../../../packages/opentelemetry-core" 17 | }, 18 | { 19 | "path": "../../../packages/opentelemetry-resources" 20 | }, 21 | { 22 | "path": "../../../packages/opentelemetry-sdk-trace-base" 23 | }, 24 | { 25 | "path": "../otlp-exporter-base" 26 | }, 27 | { 28 | "path": "../otlp-transformer" 29 | } 30 | ] 31 | } 32 | -------------------------------------------------------------------------------- /experimental/packages/opentelemetry-browser-detector/.eslintignore: -------------------------------------------------------------------------------- 1 | build 2 | -------------------------------------------------------------------------------- /experimental/packages/opentelemetry-browser-detector/.eslintrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | "env": { 3 | "mocha": true, 4 | "commonjs": true, 5 | "node": true, 6 | }, 7 | ...require('../../../eslint.base.js') 8 | } 9 | -------------------------------------------------------------------------------- /experimental/packages/opentelemetry-browser-detector/.npmignore: -------------------------------------------------------------------------------- 1 | /bin 2 | /coverage 3 | /doc 4 | /test 5 | -------------------------------------------------------------------------------- /experimental/packages/opentelemetry-browser-detector/src/index.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright The OpenTelemetry Authors 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * https://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | export { browserDetector } from './BrowserDetector'; 18 | -------------------------------------------------------------------------------- /experimental/packages/opentelemetry-browser-detector/tsconfig.esm.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../../tsconfig.base.esm.json", 3 | "compilerOptions": { 4 | "outDir": "build/esm", 5 | "rootDir": "src", 6 | "tsBuildInfoFile": "build/esm/tsconfig.esm.tsbuildinfo" 7 | }, 8 | "include": [ 9 | "src/**/*.ts" 10 | ], 11 | "references": [ 12 | { 13 | "path": "../../../api" 14 | }, 15 | { 16 | "path": "../../../packages/opentelemetry-resources" 17 | } 18 | ] 19 | } 20 | -------------------------------------------------------------------------------- /experimental/packages/opentelemetry-browser-detector/tsconfig.esnext.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../../tsconfig.base.esnext.json", 3 | "compilerOptions": { 4 | "outDir": "build/esnext", 5 | "rootDir": "src", 6 | "tsBuildInfoFile": "build/esnext/tsconfig.esnext.tsbuildinfo" 7 | }, 8 | "include": [ 9 | "src/**/*.ts" 10 | ], 11 | "references": [ 12 | { 13 | "path": "../../../api" 14 | }, 15 | { 16 | "path": "../../../packages/opentelemetry-resources" 17 | } 18 | ] 19 | } 20 | -------------------------------------------------------------------------------- /experimental/packages/opentelemetry-browser-detector/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../../tsconfig.base.json", 3 | "compilerOptions": { 4 | "outDir": "build", 5 | "rootDir": "." 6 | }, 7 | "files": [], 8 | "include": [ 9 | "src/**/*.ts", 10 | "test/**/*.ts" 11 | ], 12 | "references": [ 13 | { 14 | "path": "../../../api" 15 | }, 16 | { 17 | "path": "../../../packages/opentelemetry-resources" 18 | } 19 | ] 20 | } 21 | -------------------------------------------------------------------------------- /experimental/packages/opentelemetry-exporter-metrics-otlp-grpc/.eslintignore: -------------------------------------------------------------------------------- 1 | build 2 | -------------------------------------------------------------------------------- /experimental/packages/opentelemetry-exporter-metrics-otlp-grpc/.eslintrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | "env": { 3 | "mocha": true, 4 | "commonjs": true, 5 | "node": true, 6 | }, 7 | ...require('../../../eslint.base.js') 8 | } 9 | -------------------------------------------------------------------------------- /experimental/packages/opentelemetry-exporter-metrics-otlp-grpc/.npmignore: -------------------------------------------------------------------------------- 1 | /bin 2 | /coverage 3 | /doc 4 | /test 5 | -------------------------------------------------------------------------------- /experimental/packages/opentelemetry-exporter-metrics-otlp-grpc/src/index.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright The OpenTelemetry Authors 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * https://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | export { OTLPMetricExporter } from './OTLPMetricExporter'; 18 | -------------------------------------------------------------------------------- /experimental/packages/opentelemetry-exporter-metrics-otlp-http/.eslintignore: -------------------------------------------------------------------------------- 1 | build 2 | -------------------------------------------------------------------------------- /experimental/packages/opentelemetry-exporter-metrics-otlp-http/.eslintrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | "env": { 3 | "mocha": true, 4 | "commonjs": true, 5 | "node": true, 6 | "browser": true 7 | }, 8 | ...require('../../../eslint.base.js') 9 | } 10 | -------------------------------------------------------------------------------- /experimental/packages/opentelemetry-exporter-metrics-otlp-http/.npmignore: -------------------------------------------------------------------------------- 1 | /bin 2 | /coverage 3 | /doc 4 | /test 5 | -------------------------------------------------------------------------------- /experimental/packages/opentelemetry-exporter-metrics-otlp-http/src/platform/browser/index.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright The OpenTelemetry Authors 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * https://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | export { OTLPMetricExporter } from './OTLPMetricExporter'; 18 | -------------------------------------------------------------------------------- /experimental/packages/opentelemetry-exporter-metrics-otlp-http/src/platform/index.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright The OpenTelemetry Authors 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * https://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | export { OTLPMetricExporter } from './node'; 18 | -------------------------------------------------------------------------------- /experimental/packages/opentelemetry-exporter-metrics-otlp-http/src/platform/node/index.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright The OpenTelemetry Authors 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * https://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | export { OTLPMetricExporter } from './OTLPMetricExporter'; 18 | -------------------------------------------------------------------------------- /experimental/packages/opentelemetry-exporter-metrics-otlp-http/tsconfig.esm.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../../tsconfig.base.esm.json", 3 | "compilerOptions": { 4 | "outDir": "build/esm", 5 | "rootDir": "src", 6 | "tsBuildInfoFile": "build/esm/tsconfig.esm.tsbuildinfo" 7 | }, 8 | "include": [ 9 | "src/**/*.ts" 10 | ], 11 | "references": [ 12 | { 13 | "path": "../../../api" 14 | }, 15 | { 16 | "path": "../../../packages/opentelemetry-core" 17 | }, 18 | { 19 | "path": "../../../packages/opentelemetry-resources" 20 | }, 21 | { 22 | "path": "../../../packages/sdk-metrics" 23 | }, 24 | { 25 | "path": "../otlp-exporter-base" 26 | }, 27 | { 28 | "path": "../otlp-transformer" 29 | } 30 | ] 31 | } 32 | -------------------------------------------------------------------------------- /experimental/packages/opentelemetry-exporter-metrics-otlp-http/tsconfig.esnext.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../../tsconfig.base.esnext.json", 3 | "compilerOptions": { 4 | "outDir": "build/esnext", 5 | "rootDir": "src", 6 | "tsBuildInfoFile": "build/esnext/tsconfig.esnext.tsbuildinfo" 7 | }, 8 | "include": [ 9 | "src/**/*.ts" 10 | ], 11 | "references": [ 12 | { 13 | "path": "../../../api" 14 | }, 15 | { 16 | "path": "../../../packages/opentelemetry-core" 17 | }, 18 | { 19 | "path": "../../../packages/opentelemetry-resources" 20 | }, 21 | { 22 | "path": "../../../packages/sdk-metrics" 23 | }, 24 | { 25 | "path": "../otlp-exporter-base" 26 | }, 27 | { 28 | "path": "../otlp-transformer" 29 | } 30 | ] 31 | } 32 | -------------------------------------------------------------------------------- /experimental/packages/opentelemetry-exporter-metrics-otlp-http/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../../tsconfig.base.json", 3 | "compilerOptions": { 4 | "outDir": "build", 5 | "rootDir": "." 6 | }, 7 | "files": [], 8 | "include": [ 9 | "src/**/*.ts", 10 | "test/**/*.ts" 11 | ], 12 | "references": [ 13 | { 14 | "path": "../../../api" 15 | }, 16 | { 17 | "path": "../../../packages/opentelemetry-core" 18 | }, 19 | { 20 | "path": "../../../packages/opentelemetry-resources" 21 | }, 22 | { 23 | "path": "../../../packages/sdk-metrics" 24 | }, 25 | { 26 | "path": "../otlp-exporter-base" 27 | }, 28 | { 29 | "path": "../otlp-transformer" 30 | } 31 | ] 32 | } 33 | -------------------------------------------------------------------------------- /experimental/packages/opentelemetry-exporter-metrics-otlp-proto/.eslintignore: -------------------------------------------------------------------------------- 1 | build 2 | -------------------------------------------------------------------------------- /experimental/packages/opentelemetry-exporter-metrics-otlp-proto/.eslintrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | "env": { 3 | "mocha": true, 4 | "commonjs": true, 5 | "node": true, 6 | "browser": true 7 | }, 8 | ...require('../../../eslint.base.js') 9 | } 10 | -------------------------------------------------------------------------------- /experimental/packages/opentelemetry-exporter-metrics-otlp-proto/.npmignore: -------------------------------------------------------------------------------- 1 | /bin 2 | /coverage 3 | /doc 4 | /test 5 | -------------------------------------------------------------------------------- /experimental/packages/opentelemetry-exporter-metrics-otlp-proto/src/index.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright The OpenTelemetry Authors 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * https://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | export { OTLPMetricExporter } from './platform'; 18 | -------------------------------------------------------------------------------- /experimental/packages/opentelemetry-exporter-metrics-otlp-proto/src/platform/browser/index.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright The OpenTelemetry Authors 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * https://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | export { OTLPMetricExporter } from './OTLPMetricExporter'; 18 | -------------------------------------------------------------------------------- /experimental/packages/opentelemetry-exporter-metrics-otlp-proto/src/platform/index.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright The OpenTelemetry Authors 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * https://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | export { OTLPMetricExporter } from './node'; 18 | -------------------------------------------------------------------------------- /experimental/packages/opentelemetry-exporter-metrics-otlp-proto/src/platform/node/index.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright The OpenTelemetry Authors 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * https://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | export { OTLPMetricExporter } from './OTLPMetricExporter'; 18 | -------------------------------------------------------------------------------- /experimental/packages/opentelemetry-exporter-metrics-otlp-proto/tsconfig.esm.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../../tsconfig.base.esm.json", 3 | "compilerOptions": { 4 | "outDir": "build/esm", 5 | "rootDir": "src", 6 | "tsBuildInfoFile": "build/esm/tsconfig.esm.tsbuildinfo" 7 | }, 8 | "include": [ 9 | "src/**/*.ts" 10 | ], 11 | "references": [ 12 | { 13 | "path": "../../../api" 14 | }, 15 | { 16 | "path": "../../../packages/opentelemetry-core" 17 | }, 18 | { 19 | "path": "../../../packages/opentelemetry-resources" 20 | }, 21 | { 22 | "path": "../../../packages/sdk-metrics" 23 | }, 24 | { 25 | "path": "../opentelemetry-exporter-metrics-otlp-http" 26 | }, 27 | { 28 | "path": "../otlp-exporter-base" 29 | }, 30 | { 31 | "path": "../otlp-transformer" 32 | } 33 | ] 34 | } 35 | -------------------------------------------------------------------------------- /experimental/packages/opentelemetry-exporter-metrics-otlp-proto/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../../tsconfig.base.json", 3 | "compilerOptions": { 4 | "outDir": "build", 5 | "rootDir": "." 6 | }, 7 | "include": [ 8 | "src/**/*.ts", 9 | "test/**/*.ts" 10 | ], 11 | "references": [ 12 | { 13 | "path": "../../../api" 14 | }, 15 | { 16 | "path": "../../../packages/opentelemetry-core" 17 | }, 18 | { 19 | "path": "../../../packages/opentelemetry-resources" 20 | }, 21 | { 22 | "path": "../../../packages/sdk-metrics" 23 | }, 24 | { 25 | "path": "../opentelemetry-exporter-metrics-otlp-http" 26 | }, 27 | { 28 | "path": "../otlp-exporter-base" 29 | }, 30 | { 31 | "path": "../otlp-transformer" 32 | } 33 | ] 34 | } 35 | -------------------------------------------------------------------------------- /experimental/packages/opentelemetry-exporter-prometheus/.eslintignore: -------------------------------------------------------------------------------- 1 | build 2 | -------------------------------------------------------------------------------- /experimental/packages/opentelemetry-exporter-prometheus/.eslintrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | "env": { 3 | "mocha": true, 4 | "node": true 5 | }, 6 | ...require('../../../eslint.base.js') 7 | } 8 | -------------------------------------------------------------------------------- /experimental/packages/opentelemetry-exporter-prometheus/.npmignore: -------------------------------------------------------------------------------- 1 | /bin 2 | /coverage 3 | /doc 4 | /test 5 | -------------------------------------------------------------------------------- /experimental/packages/opentelemetry-exporter-prometheus/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../../tsconfig.base.json", 3 | "compilerOptions": { 4 | "outDir": "build", 5 | "rootDir": "." 6 | }, 7 | "include": [ 8 | "src/**/*.ts", 9 | "test/**/*.ts" 10 | ], 11 | "references": [ 12 | { 13 | "path": "../../../api" 14 | }, 15 | { 16 | "path": "../../../packages/opentelemetry-core" 17 | }, 18 | { 19 | "path": "../../../packages/opentelemetry-resources" 20 | }, 21 | { 22 | "path": "../../../packages/sdk-metrics" 23 | }, 24 | { 25 | "path": "../../../semantic-conventions" 26 | } 27 | ] 28 | } 29 | -------------------------------------------------------------------------------- /experimental/packages/opentelemetry-instrumentation-fetch/.eslintignore: -------------------------------------------------------------------------------- 1 | build 2 | -------------------------------------------------------------------------------- /experimental/packages/opentelemetry-instrumentation-fetch/.eslintrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | "env": { 3 | "mocha": true, 4 | "commonjs": true, 5 | "node": true, 6 | "browser": true 7 | }, 8 | ...require('../../../eslint.base.js') 9 | } 10 | -------------------------------------------------------------------------------- /experimental/packages/opentelemetry-instrumentation-fetch/.npmignore: -------------------------------------------------------------------------------- 1 | /bin 2 | /coverage 3 | /doc 4 | /test 5 | -------------------------------------------------------------------------------- /experimental/packages/opentelemetry-instrumentation-fetch/images/trace1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/open-telemetry/opentelemetry-js/e18a6c8456818dc71f7e9aa1bbf98e52f98b5f87/experimental/packages/opentelemetry-instrumentation-fetch/images/trace1.png -------------------------------------------------------------------------------- /experimental/packages/opentelemetry-instrumentation-fetch/images/trace2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/open-telemetry/opentelemetry-js/e18a6c8456818dc71f7e9aa1bbf98e52f98b5f87/experimental/packages/opentelemetry-instrumentation-fetch/images/trace2.png -------------------------------------------------------------------------------- /experimental/packages/opentelemetry-instrumentation-fetch/images/trace3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/open-telemetry/opentelemetry-js/e18a6c8456818dc71f7e9aa1bbf98e52f98b5f87/experimental/packages/opentelemetry-instrumentation-fetch/images/trace3.png -------------------------------------------------------------------------------- /experimental/packages/opentelemetry-instrumentation-grpc/.eslintignore: -------------------------------------------------------------------------------- 1 | build 2 | test/proto 3 | -------------------------------------------------------------------------------- /experimental/packages/opentelemetry-instrumentation-grpc/.eslintrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | "env": { 3 | "mocha": true, 4 | "node": true 5 | }, 6 | ...require('../../../eslint.base.js') 7 | } 8 | -------------------------------------------------------------------------------- /experimental/packages/opentelemetry-instrumentation-grpc/.npmignore: -------------------------------------------------------------------------------- 1 | /bin 2 | /coverage 3 | /doc 4 | /test 5 | -------------------------------------------------------------------------------- /experimental/packages/opentelemetry-instrumentation-grpc/src/index.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright The OpenTelemetry Authors 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * https://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | export { GrpcInstrumentation } from './instrumentation'; 18 | export type { GrpcInstrumentationConfig } from './types'; 19 | -------------------------------------------------------------------------------- /experimental/packages/opentelemetry-instrumentation-grpc/test/.gitignore: -------------------------------------------------------------------------------- 1 | /proto 2 | -------------------------------------------------------------------------------- /experimental/packages/opentelemetry-instrumentation-grpc/test/fixtures/buf.gen.yaml: -------------------------------------------------------------------------------- 1 | version: v1 2 | plugins: 3 | - plugin: buf.build/community/timostamm-protobuf-ts:v2.9.0 4 | out: ../../test/proto/ts/fixtures 5 | opt: 6 | - long_type_string 7 | - generate_dependencies 8 | - ts_nocheck 9 | 10 | -------------------------------------------------------------------------------- /experimental/packages/opentelemetry-instrumentation-grpc/test/fixtures/buf.lock: -------------------------------------------------------------------------------- 1 | # Generated by buf. DO NOT EDIT. 2 | version: v1 3 | deps: 4 | - remote: buf.build 5 | owner: googleapis 6 | repository: googleapis 7 | commit: cc916c31859748a68fd229a3c8d7a2e8 8 | digest: shake256:469b049d0eb04203d5272062636c078decefc96fec69739159c25d85349c50c34c7706918a8b216c5c27f76939df48452148cff8c5c3ae77fa6ba5c25c1b8bf8 9 | -------------------------------------------------------------------------------- /experimental/packages/opentelemetry-instrumentation-grpc/test/fixtures/buf.yaml: -------------------------------------------------------------------------------- 1 | version: v1 2 | lint: 3 | use: 4 | - DEFAULT 5 | breaking: 6 | use: 7 | - FILE 8 | deps: 9 | - buf.build/googleapis/googleapis 10 | -------------------------------------------------------------------------------- /experimental/packages/opentelemetry-instrumentation-grpc/test/fixtures/grpc-test.proto: -------------------------------------------------------------------------------- 1 | syntax = "proto3"; 2 | 3 | package pkg_test; 4 | 5 | service GrpcTester { 6 | rpc unaryMethodWithMetadata (TestRequest) returns (TestReply) {} 7 | rpc UnaryMethod (TestRequest) returns (TestReply) {} 8 | rpc camelCaseMethod (TestRequest) returns (TestReply) {} 9 | rpc ClientStreamMethod (stream TestRequest) returns (TestReply) {} 10 | rpc ServerStreamMethod (TestRequest) returns (stream TestReply) {} 11 | rpc BidiStreamMethod (stream TestRequest) returns (stream TestReply) {} 12 | } 13 | 14 | message TestRequest { 15 | int32 num = 1; 16 | } 17 | 18 | message TestReply { 19 | int32 num = 1; 20 | } 21 | -------------------------------------------------------------------------------- /experimental/packages/opentelemetry-instrumentation-grpc/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../../tsconfig.base.json", 3 | "compilerOptions": { 4 | "outDir": "build", 5 | "rootDir": "." 6 | }, 7 | "include": [ 8 | "src/**/*.ts", 9 | "test/**/*.ts" 10 | ], 11 | "references": [ 12 | { 13 | "path": "../../../api" 14 | }, 15 | { 16 | "path": "../../../packages/opentelemetry-context-async-hooks" 17 | }, 18 | { 19 | "path": "../../../packages/opentelemetry-core" 20 | }, 21 | { 22 | "path": "../../../packages/opentelemetry-sdk-trace-base" 23 | }, 24 | { 25 | "path": "../../../packages/opentelemetry-sdk-trace-node" 26 | }, 27 | { 28 | "path": "../../../semantic-conventions" 29 | }, 30 | { 31 | "path": "../opentelemetry-instrumentation" 32 | } 33 | ] 34 | } 35 | -------------------------------------------------------------------------------- /experimental/packages/opentelemetry-instrumentation-http/.eslintignore: -------------------------------------------------------------------------------- 1 | build 2 | -------------------------------------------------------------------------------- /experimental/packages/opentelemetry-instrumentation-http/.eslintrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | "env": { 3 | "mocha": true, 4 | "node": true 5 | }, 6 | ...require('../../../eslint.base.js') 7 | } 8 | -------------------------------------------------------------------------------- /experimental/packages/opentelemetry-instrumentation-http/.npmignore: -------------------------------------------------------------------------------- 1 | /bin 2 | /coverage 3 | /doc 4 | /test 5 | -------------------------------------------------------------------------------- /experimental/packages/opentelemetry-instrumentation-http/test/fixtures/regenerate.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env sh 2 | # 3 | # Regenerate TLS certificates that are used by "examples/https/". 4 | # Certs are generated with a one year expiry, so periodic regen is required. 5 | # 6 | # Usage: npm run maint:regenerate-test-certs 7 | 8 | EXAMPLE_DIR="../../../../../examples/https" 9 | openssl req -x509 -nodes -newkey rsa -keyout server-key.pem -out server-cert.pem -days 3650 -subj "/C=CL/ST=RM/L=OpenTelemetryTest/O=Root/OU=Test/CN=ca" 10 | cp ./server-*.pem "$EXAMPLE_DIR/" 11 | -------------------------------------------------------------------------------- /experimental/packages/opentelemetry-instrumentation-xml-http-request/.eslintignore: -------------------------------------------------------------------------------- 1 | build 2 | -------------------------------------------------------------------------------- /experimental/packages/opentelemetry-instrumentation-xml-http-request/.eslintrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | "env": { 3 | "mocha": true, 4 | "browser": true, 5 | }, 6 | ...require('../../../eslint.base.js') 7 | } 8 | -------------------------------------------------------------------------------- /experimental/packages/opentelemetry-instrumentation-xml-http-request/.npmignore: -------------------------------------------------------------------------------- 1 | /bin 2 | /coverage 3 | /doc 4 | /test 5 | -------------------------------------------------------------------------------- /experimental/packages/opentelemetry-instrumentation-xml-http-request/images/cors.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/open-telemetry/opentelemetry-js/e18a6c8456818dc71f7e9aa1bbf98e52f98b5f87/experimental/packages/opentelemetry-instrumentation-xml-http-request/images/cors.jpg -------------------------------------------------------------------------------- /experimental/packages/opentelemetry-instrumentation-xml-http-request/images/main.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/open-telemetry/opentelemetry-js/e18a6c8456818dc71f7e9aa1bbf98e52f98b5f87/experimental/packages/opentelemetry-instrumentation-xml-http-request/images/main.jpg -------------------------------------------------------------------------------- /experimental/packages/opentelemetry-instrumentation-xml-http-request/images/request.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/open-telemetry/opentelemetry-js/e18a6c8456818dc71f7e9aa1bbf98e52f98b5f87/experimental/packages/opentelemetry-instrumentation-xml-http-request/images/request.jpg -------------------------------------------------------------------------------- /experimental/packages/opentelemetry-instrumentation/.eslintignore: -------------------------------------------------------------------------------- 1 | build 2 | 3 | -------------------------------------------------------------------------------- /experimental/packages/opentelemetry-instrumentation/.eslintrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | "env": { 3 | "mocha": true, 4 | "commonjs": true, 5 | "node": true, 6 | "browser": true 7 | }, 8 | ...require('../../../eslint.base.js') 9 | } 10 | -------------------------------------------------------------------------------- /experimental/packages/opentelemetry-instrumentation/.gitignore: -------------------------------------------------------------------------------- 1 | # Dependency directories 2 | !test/node/node_modules 3 | -------------------------------------------------------------------------------- /experimental/packages/opentelemetry-instrumentation/.npmignore: -------------------------------------------------------------------------------- 1 | /bin 2 | /coverage 3 | /doc 4 | /test 5 | -------------------------------------------------------------------------------- /experimental/packages/opentelemetry-instrumentation/src/platform/browser/index.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright The OpenTelemetry Authors 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * https://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | export { InstrumentationBase } from './instrumentation'; 18 | export { normalize } from './noop-normalize'; 19 | -------------------------------------------------------------------------------- /experimental/packages/opentelemetry-instrumentation/src/platform/index.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright The OpenTelemetry Authors 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * https://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | export { InstrumentationBase, normalize } from './node'; 18 | -------------------------------------------------------------------------------- /experimental/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 { InstrumentationBase } from './instrumentation'; 17 | export { normalize } from './normalize'; 18 | -------------------------------------------------------------------------------- /experimental/packages/opentelemetry-instrumentation/src/platform/node/normalize.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright The OpenTelemetry Authors 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * https://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY 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 { normalize } from 'path'; 18 | -------------------------------------------------------------------------------- /experimental/packages/opentelemetry-instrumentation/test/node/esm/test.mjs: -------------------------------------------------------------------------------- 1 | export const testFunction = () => { 2 | return 'original'; 3 | }; 4 | -------------------------------------------------------------------------------- /experimental/packages/opentelemetry-instrumentation/test/node/fixtures/absolutePathTestFixture.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright The OpenTelemetry Authors 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * https://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | module.exports = {}; 18 | -------------------------------------------------------------------------------- /experimental/packages/opentelemetry-instrumentation/test/node/node_modules/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/open-telemetry/opentelemetry-js/e18a6c8456818dc71f7e9aa1bbf98e52f98b5f87/experimental/packages/opentelemetry-instrumentation/test/node/node_modules/.gitkeep -------------------------------------------------------------------------------- /experimental/packages/opentelemetry-instrumentation/test/node/node_modules/@opentelemetry/scoped-test-module/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "@opentelemetry/scoped-test-module", 3 | "version": "0.1.0", 4 | "main": "./src/index.js" 5 | } 6 | -------------------------------------------------------------------------------- /experimental/packages/opentelemetry-instrumentation/test/node/node_modules/@opentelemetry/scoped-test-module/src/index.js: -------------------------------------------------------------------------------- 1 | const { testString } = require('./internal'); 2 | 3 | exports.getString = function () { 4 | return "from index.js: " + testString; 5 | } 6 | 7 | exports.propertyOnMainModule = 'string in main module'; 8 | -------------------------------------------------------------------------------- /experimental/packages/opentelemetry-instrumentation/test/node/node_modules/@opentelemetry/scoped-test-module/src/internal.js: -------------------------------------------------------------------------------- 1 | exports.testString = "internal string"; 2 | -------------------------------------------------------------------------------- /experimental/packages/opentelemetry-instrumentation/test/node/node_modules/test-esm-module/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "test-esm-module", 3 | "version": "0.1.0", 4 | "main": "./src/index.js", 5 | "type": "module" 6 | } 7 | -------------------------------------------------------------------------------- /experimental/packages/opentelemetry-instrumentation/test/node/node_modules/test-esm-module/src/index.js: -------------------------------------------------------------------------------- 1 | export const testFunction = () => { 2 | return 'original'; 3 | }; 4 | 5 | export const secondTestFunction = () => { 6 | return 'original'; 7 | }; 8 | 9 | export const testConstant = 42; 10 | -------------------------------------------------------------------------------- /experimental/packages/opentelemetry-instrumentation/test/node/node_modules/test-non-core-module/lib/copy-sync.js: -------------------------------------------------------------------------------- 1 | module.exports = function copySync() { 2 | console.log('Mock copySync called'); 3 | }; 4 | -------------------------------------------------------------------------------- /experimental/packages/opentelemetry-instrumentation/test/node/node_modules/test-non-core-module/lib/index.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | copy: require('./lib/copy-sync') // matches the original API 3 | }; 4 | -------------------------------------------------------------------------------- /experimental/packages/opentelemetry-instrumentation/test/node/node_modules/test-non-core-module/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "test-non-core-module", 3 | "version": "0.0.1", 4 | "description": "Local test module for require-in-the-middle singleton", 5 | "main": "lib/index.js" 6 | } -------------------------------------------------------------------------------- /experimental/packages/opentelemetry-instrumentation/tsconfig.esm.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../../tsconfig.base.esm.json", 3 | "compilerOptions": { 4 | "outDir": "build/esm", 5 | "rootDir": "src", 6 | "tsBuildInfoFile": "build/esm/tsconfig.esm.tsbuildinfo" 7 | }, 8 | "include": [ 9 | "src/**/*.ts" 10 | ], 11 | "references": [ 12 | { 13 | "path": "../../../api" 14 | }, 15 | { 16 | "path": "../../../packages/sdk-metrics" 17 | }, 18 | { 19 | "path": "../api-logs" 20 | } 21 | ] 22 | } 23 | -------------------------------------------------------------------------------- /experimental/packages/opentelemetry-instrumentation/tsconfig.esnext.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../../tsconfig.base.esnext.json", 3 | "compilerOptions": { 4 | "outDir": "build/esnext", 5 | "rootDir": "src", 6 | "tsBuildInfoFile": "build/esnext/tsconfig.esnext.tsbuildinfo" 7 | }, 8 | "include": [ 9 | "src/**/*.ts" 10 | ], 11 | "references": [ 12 | { 13 | "path": "../../../api" 14 | }, 15 | { 16 | "path": "../../../packages/sdk-metrics" 17 | }, 18 | { 19 | "path": "../api-logs" 20 | } 21 | ] 22 | } 23 | -------------------------------------------------------------------------------- /experimental/packages/opentelemetry-instrumentation/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../../tsconfig.base.json", 3 | "compilerOptions": { 4 | "outDir": "build", 5 | "rootDir": "." 6 | }, 7 | "files": [], 8 | "include": [ 9 | "src/**/*.ts", 10 | "test/**/*.ts" 11 | ], 12 | "references": [ 13 | { 14 | "path": "../../../api" 15 | }, 16 | { 17 | "path": "../../../packages/sdk-metrics" 18 | }, 19 | { 20 | "path": "../api-logs" 21 | } 22 | ] 23 | } 24 | -------------------------------------------------------------------------------- /experimental/packages/opentelemetry-sdk-node/.eslintignore: -------------------------------------------------------------------------------- 1 | build 2 | -------------------------------------------------------------------------------- /experimental/packages/opentelemetry-sdk-node/.eslintrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | "env": { 3 | "mocha": true, 4 | "node": true 5 | }, 6 | ...require('../../../eslint.base.js') 7 | } 8 | -------------------------------------------------------------------------------- /experimental/packages/otlp-exporter-base/.eslintignore: -------------------------------------------------------------------------------- 1 | build 2 | -------------------------------------------------------------------------------- /experimental/packages/otlp-exporter-base/.eslintrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | "env": { 3 | "mocha": true, 4 | "commonjs": true, 5 | "node": true, 6 | "browser": true 7 | }, 8 | ...require('../../../eslint.base.js') 9 | } 10 | -------------------------------------------------------------------------------- /experimental/packages/otlp-exporter-base/.npmignore: -------------------------------------------------------------------------------- 1 | /bin 2 | /coverage 3 | /doc 4 | /test 5 | -------------------------------------------------------------------------------- /experimental/packages/otlp-exporter-base/tsconfig.esm.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../../tsconfig.base.esm.json", 3 | "compilerOptions": { 4 | "outDir": "build/esm", 5 | "rootDir": "src", 6 | "tsBuildInfoFile": "build/esm/tsconfig.esm.tsbuildinfo" 7 | }, 8 | "include": [ 9 | "src/**/*.ts" 10 | ], 11 | "references": [ 12 | { 13 | "path": "../../../api" 14 | }, 15 | { 16 | "path": "../../../packages/opentelemetry-core" 17 | }, 18 | { 19 | "path": "../otlp-transformer" 20 | } 21 | ] 22 | } 23 | -------------------------------------------------------------------------------- /experimental/packages/otlp-exporter-base/tsconfig.esnext.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../../tsconfig.base.esnext.json", 3 | "compilerOptions": { 4 | "outDir": "build/esnext", 5 | "rootDir": "src", 6 | "tsBuildInfoFile": "build/esnext/tsconfig.esnext.tsbuildinfo" 7 | }, 8 | "include": [ 9 | "src/**/*.ts" 10 | ], 11 | "references": [ 12 | { 13 | "path": "../../../api" 14 | }, 15 | { 16 | "path": "../../../packages/opentelemetry-core" 17 | }, 18 | { 19 | "path": "../otlp-transformer" 20 | } 21 | ] 22 | } 23 | -------------------------------------------------------------------------------- /experimental/packages/otlp-exporter-base/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../../tsconfig.base.json", 3 | "compilerOptions": { 4 | "outDir": "build", 5 | "rootDir": "." 6 | }, 7 | "files": [], 8 | "include": [ 9 | "src/**/*.ts", 10 | "test/**/*.ts" 11 | ], 12 | "references": [ 13 | { 14 | "path": "../../../api" 15 | }, 16 | { 17 | "path": "../../../packages/opentelemetry-core" 18 | }, 19 | { 20 | "path": "../otlp-transformer" 21 | } 22 | ] 23 | } 24 | -------------------------------------------------------------------------------- /experimental/packages/otlp-grpc-exporter-base/.eslintignore: -------------------------------------------------------------------------------- 1 | build 2 | src/generated 3 | -------------------------------------------------------------------------------- /experimental/packages/otlp-grpc-exporter-base/.eslintrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | "env": { 3 | "mocha": true, 4 | "commonjs": true, 5 | "node": true, 6 | }, 7 | ...require('../../../eslint.base.js') 8 | } 9 | -------------------------------------------------------------------------------- /experimental/packages/otlp-grpc-exporter-base/.npmignore: -------------------------------------------------------------------------------- 1 | /bin 2 | /coverage 3 | /doc 4 | /test 5 | -------------------------------------------------------------------------------- /experimental/packages/otlp-grpc-exporter-base/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../../tsconfig.base.json", 3 | "compilerOptions": { 4 | "outDir": "build", 5 | "rootDir": "." 6 | }, 7 | "include": [ 8 | "src/**/*.ts", 9 | "test/**/*.ts" 10 | ], 11 | "references": [ 12 | { 13 | "path": "../../../api" 14 | }, 15 | { 16 | "path": "../../../packages/opentelemetry-core" 17 | }, 18 | { 19 | "path": "../../../packages/opentelemetry-resources" 20 | }, 21 | { 22 | "path": "../../../packages/opentelemetry-sdk-trace-base" 23 | }, 24 | { 25 | "path": "../otlp-exporter-base" 26 | }, 27 | { 28 | "path": "../otlp-transformer" 29 | } 30 | ] 31 | } 32 | -------------------------------------------------------------------------------- /experimental/packages/otlp-transformer/.eslintignore: -------------------------------------------------------------------------------- 1 | build 2 | src/generated 3 | -------------------------------------------------------------------------------- /experimental/packages/otlp-transformer/.eslintrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | "env": { 3 | "mocha": true, 4 | "commonjs": true, 5 | "shared-node-browser": true 6 | }, 7 | ...require('../../../eslint.base.js') 8 | } 9 | -------------------------------------------------------------------------------- /experimental/packages/otlp-transformer/.gitignore: -------------------------------------------------------------------------------- 1 | src/generated/* 2 | !src/generated/.gitkeep 3 | !src/logs 4 | -------------------------------------------------------------------------------- /experimental/packages/otlp-transformer/src/generated/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/open-telemetry/opentelemetry-js/e18a6c8456818dc71f7e9aa1bbf98e52f98b5f87/experimental/packages/otlp-transformer/src/generated/.gitkeep -------------------------------------------------------------------------------- /experimental/packages/otlp-transformer/src/logs/json/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 | // IMPORTANT: exports added here are public 18 | export { JsonLogsSerializer } from './logs'; 19 | -------------------------------------------------------------------------------- /experimental/packages/otlp-transformer/src/logs/protobuf/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 { ProtobufLogsSerializer } from './logs'; 18 | -------------------------------------------------------------------------------- /experimental/packages/otlp-transformer/src/metrics/json/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 | // IMPORTANT: exports added here are public 18 | export { JsonMetricsSerializer } from './metrics'; 19 | -------------------------------------------------------------------------------- /experimental/packages/otlp-transformer/src/metrics/protobuf/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 | // IMPORTANT: exports added here are public 18 | export { ProtobufMetricsSerializer } from './metrics'; 19 | -------------------------------------------------------------------------------- /experimental/packages/otlp-transformer/src/trace/json/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 | // IMPORTANT: exports added here are public 18 | export { JsonTraceSerializer } from './trace'; 19 | -------------------------------------------------------------------------------- /experimental/packages/otlp-transformer/src/trace/protobuf/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 | // IMPORTANT: exports added here are public 18 | export { ProtobufTraceSerializer } from './trace'; 19 | -------------------------------------------------------------------------------- /experimental/packages/sampler-jaeger-remote/.eslintignore: -------------------------------------------------------------------------------- 1 | build 2 | -------------------------------------------------------------------------------- /experimental/packages/sampler-jaeger-remote/.eslintrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | "env": { 3 | "mocha": true, 4 | "commonjs": true, 5 | "node": true, 6 | }, 7 | ...require('../../../eslint.base.js') 8 | } 9 | -------------------------------------------------------------------------------- /experimental/packages/sampler-jaeger-remote/.npmignore: -------------------------------------------------------------------------------- 1 | /bin 2 | /coverage 3 | /doc 4 | /test 5 | -------------------------------------------------------------------------------- /experimental/packages/sampler-jaeger-remote/test/utils.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright The OpenTelemetry Authors 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * https://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY 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 randomSamplingProability = () => { 18 | const rand = Math.random() + 0.01; 19 | return rand > 1 ? rand - 0.01 : rand; 20 | }; 21 | -------------------------------------------------------------------------------- /experimental/packages/sampler-jaeger-remote/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../../tsconfig.base.json", 3 | "compilerOptions": { 4 | "outDir": "build", 5 | "rootDir": "." 6 | }, 7 | "include": [ 8 | "src/**/*.ts", 9 | "test/**/*.ts" 10 | ], 11 | "references": [ 12 | { 13 | "path": "../../../api" 14 | }, 15 | { 16 | "path": "../../../packages/opentelemetry-sdk-trace-base" 17 | } 18 | ] 19 | } 20 | -------------------------------------------------------------------------------- /experimental/packages/sdk-logs/.eslintignore: -------------------------------------------------------------------------------- 1 | build 2 | -------------------------------------------------------------------------------- /experimental/packages/sdk-logs/.eslintrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | env: { 3 | mocha: true, 4 | node: true, 5 | }, 6 | ...require('../../../eslint.base.js'), 7 | }; 8 | -------------------------------------------------------------------------------- /experimental/packages/sdk-logs/.npmignore: -------------------------------------------------------------------------------- 1 | /bin 2 | /coverage 3 | /doc 4 | /test 5 | -------------------------------------------------------------------------------- /experimental/packages/sdk-logs/src/platform/browser/index.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright The OpenTelemetry Authors 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * https://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | export { BatchLogRecordProcessor } from './export/BatchLogRecordProcessor'; 18 | -------------------------------------------------------------------------------- /experimental/packages/sdk-logs/src/platform/index.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright The OpenTelemetry Authors 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * https://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | export { BatchLogRecordProcessor } from './node'; 18 | -------------------------------------------------------------------------------- /experimental/packages/sdk-logs/src/platform/node/index.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright The OpenTelemetry Authors 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * https://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | export { BatchLogRecordProcessor } from './export/BatchLogRecordProcessor'; 18 | -------------------------------------------------------------------------------- /experimental/packages/sdk-logs/tsconfig.esm.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../../tsconfig.base.esm.json", 3 | "compilerOptions": { 4 | "outDir": "build/esm", 5 | "rootDir": "src", 6 | "tsBuildInfoFile": "build/esm/tsconfig.esm.tsbuildinfo" 7 | }, 8 | "include": [ 9 | "src/**/*.ts" 10 | ], 11 | "references": [ 12 | { 13 | "path": "../../../api" 14 | }, 15 | { 16 | "path": "../../../packages/opentelemetry-core" 17 | }, 18 | { 19 | "path": "../../../packages/opentelemetry-resources" 20 | }, 21 | { 22 | "path": "../api-logs" 23 | } 24 | ] 25 | } 26 | -------------------------------------------------------------------------------- /experimental/packages/sdk-logs/tsconfig.esnext.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../../tsconfig.base.esnext.json", 3 | "compilerOptions": { 4 | "outDir": "build/esnext", 5 | "rootDir": "src", 6 | "tsBuildInfoFile": "build/esnext/tsconfig.esnext.tsbuildinfo" 7 | }, 8 | "include": [ 9 | "src/**/*.ts" 10 | ], 11 | "references": [ 12 | { 13 | "path": "../../../api" 14 | }, 15 | { 16 | "path": "../../../packages/opentelemetry-core" 17 | }, 18 | { 19 | "path": "../../../packages/opentelemetry-resources" 20 | }, 21 | { 22 | "path": "../api-logs" 23 | } 24 | ] 25 | } 26 | -------------------------------------------------------------------------------- /experimental/packages/sdk-logs/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../../tsconfig.base.json", 3 | "compilerOptions": { 4 | "outDir": "build", 5 | "rootDir": "." 6 | }, 7 | "include": [ 8 | "src/**/*.ts", 9 | "test/**/*.ts" 10 | ], 11 | "references": [ 12 | { 13 | "path": "../../../api" 14 | }, 15 | { 16 | "path": "../../../packages/opentelemetry-core" 17 | }, 18 | { 19 | "path": "../../../packages/opentelemetry-resources" 20 | }, 21 | { 22 | "path": "../api-logs" 23 | } 24 | ] 25 | } 26 | -------------------------------------------------------------------------------- /experimental/packages/shim-opencensus/.eslintignore: -------------------------------------------------------------------------------- 1 | build 2 | -------------------------------------------------------------------------------- /experimental/packages/shim-opencensus/.eslintrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | "env": { 3 | "mocha": true, 4 | "node": true 5 | }, 6 | ...require('../../../eslint.base.js') 7 | } 8 | -------------------------------------------------------------------------------- /experimental/packages/shim-opencensus/.npmignore: -------------------------------------------------------------------------------- 1 | /bin 2 | /coverage 3 | /doc 4 | /test 5 | -------------------------------------------------------------------------------- /experimental/packages/shim-opencensus/src/register.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright The OpenTelemetry Authors 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * https://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | import { installShim } from './shim'; 18 | 19 | installShim(); 20 | -------------------------------------------------------------------------------- /experimental/packages/shim-opencensus/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../../tsconfig.base.json", 3 | "compilerOptions": { 4 | "outDir": "build", 5 | "rootDir": "." 6 | }, 7 | "include": [ 8 | "src/**/*.ts", 9 | "test/**/*.ts" 10 | ], 11 | "references": [ 12 | { 13 | "path": "../../../api" 14 | }, 15 | { 16 | "path": "../../../packages/opentelemetry-context-async-hooks" 17 | }, 18 | { 19 | "path": "../../../packages/opentelemetry-core" 20 | }, 21 | { 22 | "path": "../../../packages/opentelemetry-resources" 23 | }, 24 | { 25 | "path": "../../../packages/opentelemetry-sdk-trace-base" 26 | }, 27 | { 28 | "path": "../../../packages/sdk-metrics" 29 | } 30 | ] 31 | } 32 | -------------------------------------------------------------------------------- /experimental/packages/web-common/.eslintignore: -------------------------------------------------------------------------------- 1 | build 2 | -------------------------------------------------------------------------------- /experimental/packages/web-common/.eslintrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | env: { 3 | mocha: true, 4 | node: true, 5 | }, 6 | ...require('../../../eslint.base.js'), 7 | }; 8 | -------------------------------------------------------------------------------- /experimental/packages/web-common/.npmignore: -------------------------------------------------------------------------------- 1 | /bin 2 | /coverage 3 | /doc 4 | /test 5 | -------------------------------------------------------------------------------- /experimental/packages/web-common/src/types/SessionProvider.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright The OpenTelemetry Authors 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * https://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY 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 SessionProvider { 18 | getSessionId(): string | null; 19 | } 20 | -------------------------------------------------------------------------------- /experimental/packages/web-common/test/index-webpack.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright The OpenTelemetry Authors 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * https://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | { 18 | const testsContext = require.context('./', true, /test$/); 19 | testsContext.keys().forEach(testsContext); 20 | } 21 | -------------------------------------------------------------------------------- /experimental/packages/web-common/tsconfig.esm.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../../tsconfig.base.esm.json", 3 | "compilerOptions": { 4 | "outDir": "build/esm", 5 | "rootDir": "src", 6 | "tsBuildInfoFile": "build/esm/tsconfig.esm.tsbuildinfo" 7 | }, 8 | "include": [ 9 | "src/**/*.ts" 10 | ], 11 | "references": [ 12 | { 13 | "path": "../../../api" 14 | }, 15 | { 16 | "path": "../../../packages/opentelemetry-sdk-trace-base" 17 | }, 18 | { 19 | "path": "../../../semantic-conventions" 20 | }, 21 | { 22 | "path": "../api-logs" 23 | }, 24 | { 25 | "path": "../sdk-logs" 26 | } 27 | ] 28 | } 29 | -------------------------------------------------------------------------------- /experimental/packages/web-common/tsconfig.esnext.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../../tsconfig.base.esnext.json", 3 | "compilerOptions": { 4 | "outDir": "build/esnext", 5 | "rootDir": "src", 6 | "tsBuildInfoFile": "build/esnext/tsconfig.esnext.tsbuildinfo" 7 | }, 8 | "include": [ 9 | "src/**/*.ts" 10 | ], 11 | "references": [ 12 | { 13 | "path": "../../../api" 14 | }, 15 | { 16 | "path": "../../../packages/opentelemetry-sdk-trace-base" 17 | }, 18 | { 19 | "path": "../../../semantic-conventions" 20 | }, 21 | { 22 | "path": "../api-logs" 23 | }, 24 | { 25 | "path": "../sdk-logs" 26 | } 27 | ] 28 | } 29 | -------------------------------------------------------------------------------- /experimental/packages/web-common/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../../tsconfig.base.json", 3 | "compilerOptions": { 4 | "outDir": "build", 5 | "rootDir": "." 6 | }, 7 | "include": [ 8 | "src/**/*.ts", 9 | "test/**/*.ts" 10 | ], 11 | "references": [ 12 | { 13 | "path": "../../../api" 14 | }, 15 | { 16 | "path": "../../../packages/opentelemetry-sdk-trace-base" 17 | }, 18 | { 19 | "path": "../../../semantic-conventions" 20 | }, 21 | { 22 | "path": "../api-logs" 23 | }, 24 | { 25 | "path": "../sdk-logs" 26 | } 27 | ] 28 | } 29 | -------------------------------------------------------------------------------- /integration-tests/api/.eslintrc.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright The OpenTelemetry Authors 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * https://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | module.exports = { 17 | env: { 18 | mocha: true, 19 | commonjs: true, 20 | node: true, 21 | browser: true, 22 | }, 23 | ...require('../../eslint.base.js'), 24 | }; 25 | -------------------------------------------------------------------------------- /integration-tests/api/README.md: -------------------------------------------------------------------------------- 1 | # `opentelemetry/integration-tests-api` 2 | 3 | This is an integration test suite for `@opentelemetry/api` that verifies the 4 | api package works as expected when being imported. 5 | 6 | ## Test 7 | 8 | ```sh 9 | npm run test 10 | ``` 11 | -------------------------------------------------------------------------------- /integration-tests/propagation-validation-server/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "propagation-validation-server", 3 | "version": "2.1.0", 4 | "description": "server for w3c tests", 5 | "main": "validation_server.js", 6 | "private": true, 7 | "repository": "open-telemetry/opentelemetry-js", 8 | "author": "OpenTelemetry Authors", 9 | "license": "Apache-2.0", 10 | "scripts": { 11 | "compile": "tsc --build" 12 | }, 13 | "dependencies": { 14 | "@opentelemetry/api": "^1.3.0", 15 | "@opentelemetry/context-async-hooks": "2.0.1", 16 | "@opentelemetry/core": "2.0.1", 17 | "@opentelemetry/sdk-trace-base": "2.0.1", 18 | "axios": "1.8.4", 19 | "body-parser": "2.2.0", 20 | "express": "4.21.2" 21 | }, 22 | "devDependencies": { 23 | "typescript": "5.0.4" 24 | }, 25 | "engines": { 26 | "node": "^18.19.0 || >=20.6.0" 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /integration-tests/propagation-validation-server/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../tsconfig.base.json", 3 | "compilerOptions": { 4 | "rootDir": ".", 5 | "outDir": "build" 6 | }, 7 | "include": [], 8 | "references": [ 9 | { 10 | "path": "../../api" 11 | }, 12 | { 13 | "path": "../../packages/opentelemetry-context-async-hooks" 14 | }, 15 | { 16 | "path": "../../packages/opentelemetry-core" 17 | }, 18 | { 19 | "path": "../../packages/opentelemetry-sdk-trace-base" 20 | } 21 | ] 22 | } 23 | -------------------------------------------------------------------------------- /lerna.json: -------------------------------------------------------------------------------- 1 | { 2 | "version": "independent", 3 | "npmClient": "npm", 4 | "useWorkspaces": true 5 | } 6 | -------------------------------------------------------------------------------- /packages/opentelemetry-context-async-hooks/.eslintignore: -------------------------------------------------------------------------------- 1 | build 2 | -------------------------------------------------------------------------------- /packages/opentelemetry-context-async-hooks/.eslintrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | "env": { 3 | "mocha": true, 4 | "node": true 5 | }, 6 | ...require('../../eslint.base.js') 7 | } 8 | -------------------------------------------------------------------------------- /packages/opentelemetry-context-async-hooks/.npmignore: -------------------------------------------------------------------------------- 1 | /bin 2 | /coverage 3 | /doc 4 | /test 5 | -------------------------------------------------------------------------------- /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 { AsyncHooksContextManager } from './AsyncHooksContextManager'; 18 | export { AsyncLocalStorageContextManager } from './AsyncLocalStorageContextManager'; 19 | -------------------------------------------------------------------------------- /packages/opentelemetry-context-async-hooks/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../tsconfig.base.json", 3 | "compilerOptions": { 4 | "outDir": "build", 5 | "rootDir": "." 6 | }, 7 | "include": [ 8 | "src/**/*.ts", 9 | "test/**/*.ts" 10 | ], 11 | "references": [ 12 | { 13 | "path": "../../api" 14 | } 15 | ] 16 | } 17 | -------------------------------------------------------------------------------- /packages/opentelemetry-context-zone-peer-dep/.eslintignore: -------------------------------------------------------------------------------- 1 | build 2 | -------------------------------------------------------------------------------- /packages/opentelemetry-context-zone-peer-dep/.eslintrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | "env": { 3 | "mocha": true, 4 | "browser": true, 5 | "commonjs": true 6 | }, 7 | "globals": { 8 | "Zone": "readonly" 9 | }, 10 | ...require('../../eslint.base.js') 11 | } 12 | -------------------------------------------------------------------------------- /packages/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 { ZoneContextManager } from './ZoneContextManager'; 18 | export type { Func, TargetWithEvents } from './types'; 19 | -------------------------------------------------------------------------------- /packages/opentelemetry-context-zone-peer-dep/tsconfig.esm.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../tsconfig.base.esm.json", 3 | "compilerOptions": { 4 | "outDir": "build/esm", 5 | "rootDir": "src", 6 | "tsBuildInfoFile": "build/esm/tsconfig.esm.tsbuildinfo" 7 | }, 8 | "include": [ 9 | "src/**/*.ts" 10 | ], 11 | "references": [ 12 | { 13 | "path": "../../api" 14 | } 15 | ] 16 | } 17 | -------------------------------------------------------------------------------- /packages/opentelemetry-context-zone-peer-dep/tsconfig.esnext.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../tsconfig.base.esnext.json", 3 | "compilerOptions": { 4 | "outDir": "build/esnext", 5 | "rootDir": "src", 6 | "tsBuildInfoFile": "build/esnext/tsconfig.esnext.tsbuildinfo" 7 | }, 8 | "include": [ 9 | "src/**/*.ts" 10 | ], 11 | "references": [ 12 | { 13 | "path": "../../api" 14 | } 15 | ] 16 | } 17 | -------------------------------------------------------------------------------- /packages/opentelemetry-context-zone-peer-dep/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../tsconfig.base.json", 3 | "compilerOptions": { 4 | "outDir": "build", 5 | "rootDir": "." 6 | }, 7 | "include": [ 8 | "src/**/*.ts", 9 | "test/**/*.ts" 10 | ], 11 | "references": [ 12 | { 13 | "path": "../../api" 14 | } 15 | ] 16 | } 17 | -------------------------------------------------------------------------------- /packages/opentelemetry-context-zone/.eslintignore: -------------------------------------------------------------------------------- 1 | build 2 | -------------------------------------------------------------------------------- /packages/opentelemetry-context-zone/.eslintrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | "env": { 3 | "browser": true, 4 | "commonjs": true 5 | }, 6 | ...require('../../eslint.base.js') 7 | } 8 | -------------------------------------------------------------------------------- /packages/opentelemetry-context-zone/tsconfig.esm.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../tsconfig.base.esm.json", 3 | "compilerOptions": { 4 | "outDir": "build/esm", 5 | "rootDir": "src", 6 | "tsBuildInfoFile": "build/esm/tsconfig.esm.tsbuildinfo" 7 | }, 8 | "include": [ 9 | "src/**/*.ts" 10 | ], 11 | "references": [ 12 | { 13 | "path": "../opentelemetry-context-zone-peer-dep" 14 | } 15 | ] 16 | } 17 | -------------------------------------------------------------------------------- /packages/opentelemetry-context-zone/tsconfig.esnext.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../tsconfig.base.esnext.json", 3 | "compilerOptions": { 4 | "outDir": "build/esnext", 5 | "rootDir": "src", 6 | "tsBuildInfoFile": "build/esnext/tsconfig.esnext.tsbuildinfo" 7 | }, 8 | "include": [ 9 | "src/**/*.ts" 10 | ], 11 | "references": [ 12 | { 13 | "path": "../opentelemetry-context-zone-peer-dep" 14 | } 15 | ] 16 | } 17 | -------------------------------------------------------------------------------- /packages/opentelemetry-context-zone/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../tsconfig.base.json", 3 | "compilerOptions": { 4 | "outDir": "build", 5 | "rootDir": "." 6 | }, 7 | "include": [ 8 | "src/**/*.ts", 9 | "test/**/*.ts" 10 | ], 11 | "references": [ 12 | { 13 | "path": "../opentelemetry-context-zone-peer-dep" 14 | } 15 | ] 16 | } 17 | -------------------------------------------------------------------------------- /packages/opentelemetry-core/.eslintignore: -------------------------------------------------------------------------------- 1 | build 2 | -------------------------------------------------------------------------------- /packages/opentelemetry-core/.eslintrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | "env": { 3 | "mocha": true, 4 | "commonjs": true, 5 | "node": true, 6 | "browser": true 7 | }, 8 | ...require('../../eslint.base.js') 9 | } 10 | -------------------------------------------------------------------------------- /packages/opentelemetry-core/.npmignore: -------------------------------------------------------------------------------- 1 | /bin 2 | /coverage 3 | /doc 4 | /test 5 | -------------------------------------------------------------------------------- /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-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-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-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/src/utils/sampling.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright The OpenTelemetry Authors 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * https://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | -------------------------------------------------------------------------------- /packages/opentelemetry-core/tsconfig.esm.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../tsconfig.base.esm.json", 3 | "compilerOptions": { 4 | "outDir": "build/esm", 5 | "rootDir": "src", 6 | "tsBuildInfoFile": "build/esm/tsconfig.esm.tsbuildinfo" 7 | }, 8 | "include": [ 9 | "src/**/*.ts" 10 | ], 11 | "references": [ 12 | { 13 | "path": "../../api" 14 | }, 15 | { 16 | "path": "../../semantic-conventions" 17 | } 18 | ] 19 | } 20 | -------------------------------------------------------------------------------- /packages/opentelemetry-core/tsconfig.esnext.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../tsconfig.base.esnext.json", 3 | "compilerOptions": { 4 | "outDir": "build/esnext", 5 | "rootDir": "src", 6 | "tsBuildInfoFile": "build/esnext/tsconfig.esnext.tsbuildinfo" 7 | }, 8 | "include": [ 9 | "src/**/*.ts" 10 | ], 11 | "references": [ 12 | { 13 | "path": "../../api" 14 | }, 15 | { 16 | "path": "../../semantic-conventions" 17 | } 18 | ] 19 | } 20 | -------------------------------------------------------------------------------- /packages/opentelemetry-core/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../tsconfig.base.json", 3 | "compilerOptions": { 4 | "outDir": "build", 5 | "rootDir": "." 6 | }, 7 | "files": [], 8 | "include": [ 9 | "src/**/*.ts", 10 | "test/**/*.ts" 11 | ], 12 | "references": [ 13 | { 14 | "path": "../../api" 15 | }, 16 | { 17 | "path": "../../semantic-conventions" 18 | } 19 | ] 20 | } 21 | -------------------------------------------------------------------------------- /packages/opentelemetry-exporter-jaeger/.eslintignore: -------------------------------------------------------------------------------- 1 | build 2 | -------------------------------------------------------------------------------- /packages/opentelemetry-exporter-jaeger/.eslintrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | "env": { 3 | "mocha": true, 4 | "node": true 5 | }, 6 | ...require('../../eslint.base.js') 7 | } 8 | -------------------------------------------------------------------------------- /packages/opentelemetry-exporter-jaeger/.npmignore: -------------------------------------------------------------------------------- 1 | /bin 2 | /coverage 3 | /doc 4 | /test 5 | -------------------------------------------------------------------------------- /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 { JaegerExporter } from './jaeger'; 18 | export type { ExporterConfig } from './types'; 19 | -------------------------------------------------------------------------------- /packages/opentelemetry-exporter-jaeger/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../tsconfig.base.json", 3 | "compilerOptions": { 4 | "outDir": "build", 5 | "rootDir": "." 6 | }, 7 | "include": [ 8 | "src/**/*.ts", 9 | "test/**/*.ts" 10 | ], 11 | "references": [ 12 | { 13 | "path": "../../api" 14 | }, 15 | { 16 | "path": "../../semantic-conventions" 17 | }, 18 | { 19 | "path": "../opentelemetry-core" 20 | }, 21 | { 22 | "path": "../opentelemetry-resources" 23 | }, 24 | { 25 | "path": "../opentelemetry-sdk-trace-base" 26 | } 27 | ] 28 | } 29 | -------------------------------------------------------------------------------- /packages/opentelemetry-exporter-zipkin/.eslintignore: -------------------------------------------------------------------------------- 1 | build 2 | -------------------------------------------------------------------------------- /packages/opentelemetry-exporter-zipkin/.eslintrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | "env": { 3 | "mocha": true, 4 | "commonjs": true, 5 | "node": true, 6 | "browser": true 7 | }, 8 | ...require('../../eslint.base.js') 9 | } 10 | -------------------------------------------------------------------------------- /packages/opentelemetry-exporter-zipkin/.npmignore: -------------------------------------------------------------------------------- 1 | /bin 2 | /coverage 3 | /doc 4 | /test 5 | -------------------------------------------------------------------------------- /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 { prepareSend } from './platform'; 18 | export type { ExporterConfig } from './types'; 19 | export { ZipkinExporter } from './zipkin'; 20 | -------------------------------------------------------------------------------- /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 { prepareSend } from './util'; 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 { prepareSend } 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 { prepareSend } from './util'; 18 | -------------------------------------------------------------------------------- /packages/opentelemetry-exporter-zipkin/tsconfig.esm.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../tsconfig.base.esm.json", 3 | "compilerOptions": { 4 | "outDir": "build/esm", 5 | "rootDir": "src", 6 | "tsBuildInfoFile": "build/esm/tsconfig.esm.tsbuildinfo" 7 | }, 8 | "include": [ 9 | "src/**/*.ts" 10 | ], 11 | "references": [ 12 | { 13 | "path": "../../api" 14 | }, 15 | { 16 | "path": "../../semantic-conventions" 17 | }, 18 | { 19 | "path": "../opentelemetry-core" 20 | }, 21 | { 22 | "path": "../opentelemetry-resources" 23 | }, 24 | { 25 | "path": "../opentelemetry-sdk-trace-base" 26 | } 27 | ] 28 | } 29 | -------------------------------------------------------------------------------- /packages/opentelemetry-exporter-zipkin/tsconfig.esnext.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../tsconfig.base.esnext.json", 3 | "compilerOptions": { 4 | "outDir": "build/esnext", 5 | "rootDir": "src", 6 | "tsBuildInfoFile": "build/esnext/tsconfig.esnext.tsbuildinfo" 7 | }, 8 | "include": [ 9 | "src/**/*.ts" 10 | ], 11 | "references": [ 12 | { 13 | "path": "../../api" 14 | }, 15 | { 16 | "path": "../../semantic-conventions" 17 | }, 18 | { 19 | "path": "../opentelemetry-core" 20 | }, 21 | { 22 | "path": "../opentelemetry-resources" 23 | }, 24 | { 25 | "path": "../opentelemetry-sdk-trace-base" 26 | } 27 | ] 28 | } 29 | -------------------------------------------------------------------------------- /packages/opentelemetry-exporter-zipkin/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../tsconfig.base.json", 3 | "compilerOptions": { 4 | "outDir": "build", 5 | "rootDir": "." 6 | }, 7 | "files": [], 8 | "include": [ 9 | "src/**/*.ts", 10 | "test/**/*.ts" 11 | ], 12 | "references": [ 13 | { 14 | "path": "../../api" 15 | }, 16 | { 17 | "path": "../../semantic-conventions" 18 | }, 19 | { 20 | "path": "../opentelemetry-core" 21 | }, 22 | { 23 | "path": "../opentelemetry-resources" 24 | }, 25 | { 26 | "path": "../opentelemetry-sdk-trace-base" 27 | } 28 | ] 29 | } 30 | -------------------------------------------------------------------------------- /packages/opentelemetry-propagator-b3/.eslintignore: -------------------------------------------------------------------------------- 1 | build 2 | -------------------------------------------------------------------------------- /packages/opentelemetry-propagator-b3/.eslintrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | "env": { 3 | "mocha": true, 4 | "commonjs": true, 5 | "node": true, 6 | "browser": true 7 | }, 8 | ...require('../../eslint.base.js') 9 | } 10 | -------------------------------------------------------------------------------- /packages/opentelemetry-propagator-b3/.npmignore: -------------------------------------------------------------------------------- 1 | /bin 2 | /coverage 3 | /doc 4 | /test 5 | -------------------------------------------------------------------------------- /packages/opentelemetry-propagator-b3/tsconfig.esm.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../tsconfig.base.esm.json", 3 | "compilerOptions": { 4 | "outDir": "build/esm", 5 | "rootDir": "src", 6 | "tsBuildInfoFile": "build/esm/tsconfig.esm.tsbuildinfo" 7 | }, 8 | "include": [ 9 | "src/**/*.ts" 10 | ], 11 | "references": [ 12 | { 13 | "path": "../../api" 14 | }, 15 | { 16 | "path": "../opentelemetry-core" 17 | } 18 | ] 19 | } 20 | -------------------------------------------------------------------------------- /packages/opentelemetry-propagator-b3/tsconfig.esnext.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../tsconfig.base.esnext.json", 3 | "compilerOptions": { 4 | "outDir": "build/esnext", 5 | "rootDir": "src", 6 | "tsBuildInfoFile": "build/esnext/tsconfig.esnext.tsbuildinfo" 7 | }, 8 | "include": [ 9 | "src/**/*.ts" 10 | ], 11 | "references": [ 12 | { 13 | "path": "../../api" 14 | }, 15 | { 16 | "path": "../opentelemetry-core" 17 | } 18 | ] 19 | } 20 | -------------------------------------------------------------------------------- /packages/opentelemetry-propagator-b3/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../tsconfig.base.json", 3 | "compilerOptions": { 4 | "outDir": "build", 5 | "rootDir": "." 6 | }, 7 | "files": [], 8 | "include": [ 9 | "src/**/*.ts", 10 | "test/**/*.ts" 11 | ], 12 | "references": [ 13 | { 14 | "path": "../../api" 15 | }, 16 | { 17 | "path": "../opentelemetry-core" 18 | } 19 | ] 20 | } 21 | -------------------------------------------------------------------------------- /packages/opentelemetry-propagator-jaeger/.eslintignore: -------------------------------------------------------------------------------- 1 | build 2 | -------------------------------------------------------------------------------- /packages/opentelemetry-propagator-jaeger/.eslintrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | "env": { 3 | "mocha": true, 4 | "commonjs": true, 5 | "browser": true, 6 | }, 7 | ...require('../../eslint.base.js') 8 | } 9 | -------------------------------------------------------------------------------- /packages/opentelemetry-propagator-jaeger/jaeger-tracing.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/open-telemetry/opentelemetry-js/e18a6c8456818dc71f7e9aa1bbf98e52f98b5f87/packages/opentelemetry-propagator-jaeger/jaeger-tracing.png -------------------------------------------------------------------------------- /packages/opentelemetry-propagator-jaeger/src/index.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright The OpenTelemetry Authors 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * https://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | export { 18 | JaegerPropagator, 19 | UBER_BAGGAGE_HEADER_PREFIX, 20 | UBER_TRACE_ID_HEADER, 21 | } from './JaegerPropagator'; 22 | -------------------------------------------------------------------------------- /packages/opentelemetry-propagator-jaeger/src/types.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright The OpenTelemetry Authors 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * https://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | export interface JaegerPropagatorConfig { 18 | customTraceHeader?: string; 19 | customBaggageHeaderPrefix?: string; 20 | } 21 | -------------------------------------------------------------------------------- /packages/opentelemetry-propagator-jaeger/tsconfig.esm.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../tsconfig.base.esm.json", 3 | "compilerOptions": { 4 | "outDir": "build/esm", 5 | "rootDir": "src", 6 | "tsBuildInfoFile": "build/esm/tsconfig.esm.tsbuildinfo" 7 | }, 8 | "include": [ 9 | "src/**/*.ts" 10 | ], 11 | "references": [ 12 | { 13 | "path": "../../api" 14 | }, 15 | { 16 | "path": "../opentelemetry-core" 17 | } 18 | ] 19 | } 20 | -------------------------------------------------------------------------------- /packages/opentelemetry-propagator-jaeger/tsconfig.esnext.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../tsconfig.base.esnext.json", 3 | "compilerOptions": { 4 | "outDir": "build/esnext", 5 | "rootDir": "src", 6 | "tsBuildInfoFile": "build/esnext/tsconfig.esnext.tsbuildinfo" 7 | }, 8 | "include": [ 9 | "src/**/*.ts" 10 | ], 11 | "references": [ 12 | { 13 | "path": "../../api" 14 | }, 15 | { 16 | "path": "../opentelemetry-core" 17 | } 18 | ] 19 | } 20 | -------------------------------------------------------------------------------- /packages/opentelemetry-propagator-jaeger/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../tsconfig.base.json", 3 | "compilerOptions": { 4 | "outDir": "build", 5 | "rootDir": "." 6 | }, 7 | "files": [], 8 | "include": [ 9 | "src/**/*.ts", 10 | "test/**/*.ts" 11 | ], 12 | "references": [ 13 | { 14 | "path": "../../api" 15 | }, 16 | { 17 | "path": "../opentelemetry-core" 18 | } 19 | ] 20 | } 21 | -------------------------------------------------------------------------------- /packages/opentelemetry-resources/.eslintignore: -------------------------------------------------------------------------------- 1 | build 2 | -------------------------------------------------------------------------------- /packages/opentelemetry-resources/.eslintrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | "env": { 3 | "mocha": true, 4 | "commonjs": true, 5 | "node": true, 6 | "browser": true 7 | }, 8 | ...require('../../eslint.base.js') 9 | } 10 | -------------------------------------------------------------------------------- /packages/opentelemetry-resources/.npmignore: -------------------------------------------------------------------------------- 1 | /bin 2 | /coverage 3 | /doc 4 | /test 5 | -------------------------------------------------------------------------------- /packages/opentelemetry-resources/src/detectors/platform/browser/HostDetector.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright The OpenTelemetry Authors 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * https://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | import { noopDetector } from '../../NoopDetector'; 18 | 19 | export const hostDetector = noopDetector; 20 | -------------------------------------------------------------------------------- /packages/opentelemetry-resources/src/detectors/platform/browser/OSDetector.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright The OpenTelemetry Authors 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * https://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | import { noopDetector } from '../../NoopDetector'; 18 | 19 | export const osDetector = noopDetector; 20 | -------------------------------------------------------------------------------- /packages/opentelemetry-resources/src/detectors/platform/browser/ProcessDetector.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright The OpenTelemetry Authors 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * https://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | import { noopDetector } from '../../NoopDetector'; 18 | 19 | export const processDetector = noopDetector; 20 | -------------------------------------------------------------------------------- /packages/opentelemetry-resources/src/detectors/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 { 17 | hostDetector, 18 | osDetector, 19 | processDetector, 20 | serviceInstanceIdDetector, 21 | } from './node'; 22 | -------------------------------------------------------------------------------- /packages/opentelemetry-resources/src/platform/browser/default-service-name.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright The OpenTelemetry Authors 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * https://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | export function defaultServiceName(): string { 18 | return 'unknown_service'; 19 | } 20 | -------------------------------------------------------------------------------- /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 | export { defaultServiceName } from './default-service-name'; 17 | -------------------------------------------------------------------------------- /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 { defaultServiceName } from './node'; 18 | -------------------------------------------------------------------------------- /packages/opentelemetry-resources/src/platform/node/default-service-name.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright The OpenTelemetry Authors 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * https://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | export function defaultServiceName(): string { 18 | return `unknown_service:${process.argv0}`; 19 | } 20 | -------------------------------------------------------------------------------- /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 | export { defaultServiceName } from './default-service-name'; 17 | -------------------------------------------------------------------------------- /packages/opentelemetry-resources/tsconfig.esm.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../tsconfig.base.esm.json", 3 | "compilerOptions": { 4 | "outDir": "build/esm", 5 | "rootDir": "src", 6 | "tsBuildInfoFile": "build/esm/tsconfig.esm.tsbuildinfo" 7 | }, 8 | "include": [ 9 | "src/**/*.ts" 10 | ], 11 | "references": [ 12 | { 13 | "path": "../../api" 14 | }, 15 | { 16 | "path": "../../semantic-conventions" 17 | }, 18 | { 19 | "path": "../opentelemetry-core" 20 | } 21 | ] 22 | } 23 | -------------------------------------------------------------------------------- /packages/opentelemetry-resources/tsconfig.esnext.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../tsconfig.base.esnext.json", 3 | "compilerOptions": { 4 | "outDir": "build/esnext", 5 | "rootDir": "src", 6 | "tsBuildInfoFile": "build/esnext/tsconfig.esnext.tsbuildinfo" 7 | }, 8 | "include": [ 9 | "src/**/*.ts" 10 | ], 11 | "references": [ 12 | { 13 | "path": "../../api" 14 | }, 15 | { 16 | "path": "../../semantic-conventions" 17 | }, 18 | { 19 | "path": "../opentelemetry-core" 20 | } 21 | ] 22 | } 23 | -------------------------------------------------------------------------------- /packages/opentelemetry-resources/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../tsconfig.base.json", 3 | "compilerOptions": { 4 | "outDir": "build", 5 | "rootDir": "." 6 | }, 7 | "files": [], 8 | "include": [ 9 | "src/**/*.ts", 10 | "test/**/*.ts" 11 | ], 12 | "references": [ 13 | { 14 | "path": "../../api" 15 | }, 16 | { 17 | "path": "../../semantic-conventions" 18 | }, 19 | { 20 | "path": "../opentelemetry-core" 21 | } 22 | ] 23 | } 24 | -------------------------------------------------------------------------------- /packages/opentelemetry-sdk-trace-base/.eslintignore: -------------------------------------------------------------------------------- 1 | build 2 | 3 | -------------------------------------------------------------------------------- /packages/opentelemetry-sdk-trace-base/.eslintrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | "env": { 3 | "mocha": true, 4 | "commonjs": true, 5 | "node": true, 6 | "browser": true 7 | }, 8 | ...require('../../eslint.base.js') 9 | } 10 | -------------------------------------------------------------------------------- /packages/opentelemetry-sdk-trace-base/.npmignore: -------------------------------------------------------------------------------- 1 | /bin 2 | /coverage 3 | /doc 4 | /test 5 | -------------------------------------------------------------------------------- /packages/opentelemetry-sdk-trace-base/src/enums.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright The OpenTelemetry Authors 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * https://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | // Event name definitions 18 | export const ExceptionEventName = 'exception'; 19 | -------------------------------------------------------------------------------- /packages/opentelemetry-sdk-trace-base/src/platform/browser/index.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright The OpenTelemetry Authors 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * https://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | export { BatchSpanProcessor } from './export/BatchSpanProcessor'; 18 | export { RandomIdGenerator } from './RandomIdGenerator'; 19 | -------------------------------------------------------------------------------- /packages/opentelemetry-sdk-trace-base/src/platform/index.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright The OpenTelemetry Authors 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * https://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | export { BatchSpanProcessor, RandomIdGenerator } from './node'; 18 | -------------------------------------------------------------------------------- /packages/opentelemetry-sdk-trace-base/src/platform/node/index.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright The OpenTelemetry Authors 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * https://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | export { BatchSpanProcessor } from './export/BatchSpanProcessor'; 18 | export { RandomIdGenerator } from './RandomIdGenerator'; 19 | -------------------------------------------------------------------------------- /packages/opentelemetry-sdk-trace-base/test/performance/benchmark/index.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright The OpenTelemetry Authors 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * https://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | require('./span'); 18 | require('./BatchSpanProcessor'); 19 | -------------------------------------------------------------------------------- /packages/opentelemetry-sdk-trace-base/tsconfig.esm.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../tsconfig.base.esm.json", 3 | "compilerOptions": { 4 | "outDir": "build/esm", 5 | "rootDir": "src", 6 | "tsBuildInfoFile": "build/esm/tsconfig.esm.tsbuildinfo" 7 | }, 8 | "include": [ 9 | "src/**/*.ts" 10 | ], 11 | "references": [ 12 | { 13 | "path": "../../api" 14 | }, 15 | { 16 | "path": "../../semantic-conventions" 17 | }, 18 | { 19 | "path": "../opentelemetry-core" 20 | }, 21 | { 22 | "path": "../opentelemetry-resources" 23 | } 24 | ] 25 | } 26 | -------------------------------------------------------------------------------- /packages/opentelemetry-sdk-trace-base/tsconfig.esnext.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../tsconfig.base.esnext.json", 3 | "compilerOptions": { 4 | "outDir": "build/esnext", 5 | "rootDir": "src", 6 | "tsBuildInfoFile": "build/esnext/tsconfig.esnext.tsbuildinfo" 7 | }, 8 | "include": [ 9 | "src/**/*.ts" 10 | ], 11 | "references": [ 12 | { 13 | "path": "../../api" 14 | }, 15 | { 16 | "path": "../../semantic-conventions" 17 | }, 18 | { 19 | "path": "../opentelemetry-core" 20 | }, 21 | { 22 | "path": "../opentelemetry-resources" 23 | } 24 | ] 25 | } 26 | -------------------------------------------------------------------------------- /packages/opentelemetry-sdk-trace-base/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../tsconfig.base.json", 3 | "compilerOptions": { 4 | "outDir": "build", 5 | "rootDir": "." 6 | }, 7 | "files": [], 8 | "include": [ 9 | "src/**/*.ts", 10 | "test/**/*.ts" 11 | ], 12 | "references": [ 13 | { 14 | "path": "../../api" 15 | }, 16 | { 17 | "path": "../../semantic-conventions" 18 | }, 19 | { 20 | "path": "../opentelemetry-core" 21 | }, 22 | { 23 | "path": "../opentelemetry-resources" 24 | } 25 | ] 26 | } 27 | -------------------------------------------------------------------------------- /packages/opentelemetry-sdk-trace-node/.eslintignore: -------------------------------------------------------------------------------- 1 | build 2 | -------------------------------------------------------------------------------- /packages/opentelemetry-sdk-trace-node/.eslintrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | "env": { 3 | "mocha": true, 4 | "node": true 5 | }, 6 | ...require('../../eslint.base.js') 7 | } 8 | -------------------------------------------------------------------------------- /packages/opentelemetry-sdk-trace-node/.gitignore: -------------------------------------------------------------------------------- 1 | # Dependency directories 2 | !test/instrumentation/node_modules 3 | -------------------------------------------------------------------------------- /packages/opentelemetry-sdk-trace-node/.npmignore: -------------------------------------------------------------------------------- 1 | /bin 2 | /coverage 3 | /doc 4 | /test 5 | -------------------------------------------------------------------------------- /packages/opentelemetry-sdk-trace-node/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../tsconfig.base.json", 3 | "compilerOptions": { 4 | "outDir": "build", 5 | "rootDir": "." 6 | }, 7 | "include": [ 8 | "src/**/*.ts", 9 | "test/**/*.ts" 10 | ], 11 | "references": [ 12 | { 13 | "path": "../../api" 14 | }, 15 | { 16 | "path": "../../semantic-conventions" 17 | }, 18 | { 19 | "path": "../opentelemetry-context-async-hooks" 20 | }, 21 | { 22 | "path": "../opentelemetry-core" 23 | }, 24 | { 25 | "path": "../opentelemetry-resources" 26 | }, 27 | { 28 | "path": "../opentelemetry-sdk-trace-base" 29 | } 30 | ] 31 | } 32 | -------------------------------------------------------------------------------- /packages/opentelemetry-sdk-trace-web/.eslintignore: -------------------------------------------------------------------------------- 1 | build 2 | -------------------------------------------------------------------------------- /packages/opentelemetry-sdk-trace-web/.eslintrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | "env": { 3 | "mocha": true, 4 | "browser": true, 5 | }, 6 | ...require('../../eslint.base.js') 7 | } 8 | -------------------------------------------------------------------------------- /packages/opentelemetry-sdk-trace-web/.npmignore: -------------------------------------------------------------------------------- 1 | /bin 2 | /coverage 3 | /doc 4 | /test 5 | -------------------------------------------------------------------------------- /packages/opentelemetry-sdk-trace-web/test/index-webpack.worker.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright The OpenTelemetry Authors 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * https://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | const testsContext = require.context('./', false, /test$/); 18 | testsContext.keys().forEach(testsContext); 19 | -------------------------------------------------------------------------------- /packages/opentelemetry-sdk-trace-web/tsconfig.esm.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../tsconfig.base.esm.json", 3 | "compilerOptions": { 4 | "outDir": "build/esm", 5 | "rootDir": "src", 6 | "tsBuildInfoFile": "build/esm/tsconfig.esm.tsbuildinfo" 7 | }, 8 | "include": [ 9 | "src/**/*.ts" 10 | ], 11 | "references": [ 12 | { 13 | "path": "../../api" 14 | }, 15 | { 16 | "path": "../../semantic-conventions" 17 | }, 18 | { 19 | "path": "../opentelemetry-context-zone" 20 | }, 21 | { 22 | "path": "../opentelemetry-core" 23 | }, 24 | { 25 | "path": "../opentelemetry-resources" 26 | }, 27 | { 28 | "path": "../opentelemetry-sdk-trace-base" 29 | } 30 | ] 31 | } 32 | -------------------------------------------------------------------------------- /packages/opentelemetry-sdk-trace-web/tsconfig.esnext.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../tsconfig.base.esnext.json", 3 | "compilerOptions": { 4 | "outDir": "build/esnext", 5 | "rootDir": "src", 6 | "tsBuildInfoFile": "build/esnext/tsconfig.esnext.tsbuildinfo" 7 | }, 8 | "include": [ 9 | "src/**/*.ts" 10 | ], 11 | "references": [ 12 | { 13 | "path": "../../api" 14 | }, 15 | { 16 | "path": "../../semantic-conventions" 17 | }, 18 | { 19 | "path": "../opentelemetry-context-zone" 20 | }, 21 | { 22 | "path": "../opentelemetry-core" 23 | }, 24 | { 25 | "path": "../opentelemetry-resources" 26 | }, 27 | { 28 | "path": "../opentelemetry-sdk-trace-base" 29 | } 30 | ] 31 | } 32 | -------------------------------------------------------------------------------- /packages/opentelemetry-sdk-trace-web/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../tsconfig.base.json", 3 | "compilerOptions": { 4 | "outDir": "build", 5 | "rootDir": "." 6 | }, 7 | "files": [], 8 | "include": [ 9 | "src/**/*.ts", 10 | "test/**/*.ts" 11 | ], 12 | "references": [ 13 | { 14 | "path": "../../api" 15 | }, 16 | { 17 | "path": "../../semantic-conventions" 18 | }, 19 | { 20 | "path": "../opentelemetry-context-zone" 21 | }, 22 | { 23 | "path": "../opentelemetry-core" 24 | }, 25 | { 26 | "path": "../opentelemetry-resources" 27 | }, 28 | { 29 | "path": "../opentelemetry-sdk-trace-base" 30 | } 31 | ] 32 | } 33 | -------------------------------------------------------------------------------- /packages/opentelemetry-shim-opentracing/.eslintignore: -------------------------------------------------------------------------------- 1 | build 2 | -------------------------------------------------------------------------------- /packages/opentelemetry-shim-opentracing/.eslintrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | "env": { 3 | "mocha": true, 4 | "node": true 5 | }, 6 | ...require('../../eslint.base.js') 7 | } 8 | -------------------------------------------------------------------------------- /packages/opentelemetry-shim-opentracing/.npmignore: -------------------------------------------------------------------------------- 1 | /bin 2 | /coverage 3 | /doc 4 | /test 5 | -------------------------------------------------------------------------------- /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-shim-opentracing/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../tsconfig.base.json", 3 | "compilerOptions": { 4 | "outDir": "build", 5 | "rootDir": "." 6 | }, 7 | "include": [ 8 | "src/**/*.ts", 9 | "test/**/*.ts" 10 | ], 11 | "references": [ 12 | { 13 | "path": "../../api" 14 | }, 15 | { 16 | "path": "../../semantic-conventions" 17 | }, 18 | { 19 | "path": "../opentelemetry-core" 20 | }, 21 | { 22 | "path": "../opentelemetry-propagator-b3" 23 | }, 24 | { 25 | "path": "../opentelemetry-propagator-jaeger" 26 | }, 27 | { 28 | "path": "../opentelemetry-sdk-trace-base" 29 | } 30 | ] 31 | } 32 | -------------------------------------------------------------------------------- /packages/sdk-metrics/.eslintignore: -------------------------------------------------------------------------------- 1 | build 2 | -------------------------------------------------------------------------------- /packages/sdk-metrics/.eslintrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | "env": { 3 | "mocha": true, 4 | "node": true 5 | }, 6 | ...require('../../eslint.base.js') 7 | } 8 | -------------------------------------------------------------------------------- /packages/sdk-metrics/.npmignore: -------------------------------------------------------------------------------- 1 | /bin 2 | /coverage 3 | /doc 4 | /test 5 | -------------------------------------------------------------------------------- /packages/sdk-metrics/tsconfig.esm.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../tsconfig.base.esm.json", 3 | "compilerOptions": { 4 | "outDir": "build/esm", 5 | "rootDir": "src", 6 | "tsBuildInfoFile": "build/esm/tsconfig.esm.tsbuildinfo" 7 | }, 8 | "include": [ 9 | "src/**/*.ts" 10 | ], 11 | "references": [ 12 | { 13 | "path": "../../api" 14 | }, 15 | { 16 | "path": "../opentelemetry-core" 17 | }, 18 | { 19 | "path": "../opentelemetry-resources" 20 | } 21 | ] 22 | } 23 | -------------------------------------------------------------------------------- /packages/sdk-metrics/tsconfig.esnext.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../tsconfig.base.esnext.json", 3 | "compilerOptions": { 4 | "outDir": "build/esnext", 5 | "rootDir": "src", 6 | "tsBuildInfoFile": "build/esnext/tsconfig.esnext.tsbuildinfo" 7 | }, 8 | "include": [ 9 | "src/**/*.ts" 10 | ], 11 | "references": [ 12 | { 13 | "path": "../../api" 14 | }, 15 | { 16 | "path": "../opentelemetry-core" 17 | }, 18 | { 19 | "path": "../opentelemetry-resources" 20 | } 21 | ] 22 | } 23 | -------------------------------------------------------------------------------- /packages/sdk-metrics/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../tsconfig.base.json", 3 | "compilerOptions": { 4 | "outDir": "build", 5 | "rootDir": "." 6 | }, 7 | "files": [], 8 | "include": [ 9 | "src/**/*.ts", 10 | "test/**/*.ts" 11 | ], 12 | "references": [ 13 | { 14 | "path": "../../api" 15 | }, 16 | { 17 | "path": "../opentelemetry-core" 18 | }, 19 | { 20 | "path": "../opentelemetry-resources" 21 | } 22 | ] 23 | } 24 | -------------------------------------------------------------------------------- /packages/template/.eslintignore: -------------------------------------------------------------------------------- 1 | build 2 | 3 | -------------------------------------------------------------------------------- /packages/template/.eslintrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | "env": { 3 | "mocha": true, 4 | "commonjs": true, 5 | "node": true, 6 | "browser": true 7 | }, 8 | ...require('../../eslint.base.js') 9 | } 10 | -------------------------------------------------------------------------------- /packages/template/.npmignore: -------------------------------------------------------------------------------- 1 | /bin 2 | /coverage 3 | /doc 4 | /test 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/template/src/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/open-telemetry/opentelemetry-js/e18a6c8456818dc71f7e9aa1bbf98e52f98b5f87/packages/template/src/index.ts -------------------------------------------------------------------------------- /packages/template/tsconfig.esm.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../tsconfig.base.esm.json", 3 | "compilerOptions": { 4 | "rootDir": "src", 5 | "outDir": "build/esm", 6 | "tsBuildInfoFile": "build/esm/tsconfig.esm.tsbuildinfo" 7 | }, 8 | "include": [ 9 | "src/**/*.ts" 10 | ] 11 | } 12 | -------------------------------------------------------------------------------- /packages/template/tsconfig.esnext.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../tsconfig.base.esnext.json", 3 | "compilerOptions": { 4 | "rootDir": "src", 5 | "outDir": "build/esnext", 6 | "tsBuildInfoFile": "build/esnext/tsconfig.esnext.tsbuildinfo" 7 | }, 8 | "include": [ 9 | "src/**/*.ts" 10 | ] 11 | } 12 | -------------------------------------------------------------------------------- /packages/template/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../tsconfig.base.json", 3 | "compilerOptions": { 4 | "outDir": "build", 5 | "rootDir": "." 6 | }, 7 | "include": [ 8 | "src/**/*.ts", 9 | "test/**/*.ts" 10 | ], 11 | "references": [] 12 | } 13 | -------------------------------------------------------------------------------- /prettier.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | arrowParens: 'avoid', 3 | printWidth: 80, 4 | trailingComma: 'es5', 5 | tabWidth: 2, 6 | semi: true, 7 | singleQuote: true, 8 | }; 9 | -------------------------------------------------------------------------------- /scripts/semconv/.gitignore: -------------------------------------------------------------------------------- 1 | opentelemetry-specification/ 2 | semantic-conventions/ 3 | tmp-changelog-gen/ 4 | -------------------------------------------------------------------------------- /semantic-conventions/.eslintignore: -------------------------------------------------------------------------------- 1 | build 2 | -------------------------------------------------------------------------------- /semantic-conventions/.eslintrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | "env": { 3 | "mocha": true, 4 | "commonjs": true, 5 | "node": true, 6 | "browser": true 7 | }, 8 | ...require('../../eslint.base.js') 9 | } 10 | -------------------------------------------------------------------------------- /semantic-conventions/.npmignore: -------------------------------------------------------------------------------- 1 | /bin 2 | /coverage 3 | /doc 4 | /test 5 | -------------------------------------------------------------------------------- /semantic-conventions/tsconfig.esm.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../tsconfig.base.esm.json", 3 | "compilerOptions": { 4 | "lib": [ 5 | "es2017" 6 | ], 7 | "outDir": "build/esm", 8 | "rootDir": "src", 9 | "target": "es2017", 10 | "tsBuildInfoFile": "build/esm/tsconfig.esm.tsbuildinfo" 11 | }, 12 | "include": [ 13 | "src/**/*.ts" 14 | ], 15 | "references": [] 16 | } 17 | -------------------------------------------------------------------------------- /semantic-conventions/tsconfig.esnext.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../tsconfig.base.esnext.json", 3 | "compilerOptions": { 4 | "lib": [ 5 | "es2017" 6 | ], 7 | "outDir": "build/esnext", 8 | "rootDir": "src", 9 | "target": "es2017", 10 | "tsBuildInfoFile": "build/esnext/tsconfig.esnext.tsbuildinfo" 11 | }, 12 | "include": [ 13 | "src/**/*.ts" 14 | ], 15 | "references": [] 16 | } 17 | -------------------------------------------------------------------------------- /semantic-conventions/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../tsconfig.base.json", 3 | "compilerOptions": { 4 | "lib": [ 5 | "es2017" 6 | ], 7 | "outDir": "build", 8 | "rootDir": ".", 9 | "target": "es2017" 10 | }, 11 | "files": [], 12 | "include": [ 13 | "src/**/*.ts", 14 | "test/**/*.ts" 15 | ], 16 | "references": [] 17 | } 18 | -------------------------------------------------------------------------------- /tsconfig.base.esm.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "./tsconfig.base.json", 3 | "compilerOptions": { 4 | "module": "es2022", 5 | "moduleResolution": "node16" 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /tsconfig.base.esnext.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "./tsconfig.base.json", 3 | "compilerOptions": { 4 | "module": "esnext", 5 | // target should be aligned with tsconfig.base.json 6 | "target": "es2022", 7 | "moduleResolution": "node16" 8 | }, 9 | } 10 | --------------------------------------------------------------------------------