@openclaw/diagnostics-otel 2026.7.2-beta.3 → 2026.7.2-beta.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1 -1
- package/dist/{runtime-api-DIKLPu2g.js → runtime-api-B4aeX0DW.js} +11 -7
- package/dist/runtime-api.js +1 -1
- package/node_modules/@opentelemetry/api-logs/build/esm/version.d.ts +1 -1
- package/node_modules/@opentelemetry/api-logs/build/esm/version.js +1 -1
- package/node_modules/@opentelemetry/api-logs/build/esm/version.js.map +1 -1
- package/node_modules/@opentelemetry/api-logs/build/esnext/version.d.ts +1 -1
- package/node_modules/@opentelemetry/api-logs/build/esnext/version.js +1 -1
- package/node_modules/@opentelemetry/api-logs/build/esnext/version.js.map +1 -1
- package/node_modules/@opentelemetry/api-logs/build/src/version.d.ts +1 -1
- package/node_modules/@opentelemetry/api-logs/build/src/version.js +1 -1
- package/node_modules/@opentelemetry/api-logs/build/src/version.js.map +1 -1
- package/node_modules/@opentelemetry/api-logs/package.json +3 -3
- package/node_modules/@opentelemetry/configuration/README.md +76 -9
- package/node_modules/@opentelemetry/configuration/build/src/EnvironmentConfigFactory.js +2 -2
- package/node_modules/@opentelemetry/configuration/build/src/EnvironmentConfigFactory.js.map +1 -1
- package/node_modules/@opentelemetry/configuration/build/src/FileConfigFactory.d.ts +19 -1
- package/node_modules/@opentelemetry/configuration/build/src/FileConfigFactory.js +87 -123
- package/node_modules/@opentelemetry/configuration/build/src/FileConfigFactory.js.map +1 -1
- package/node_modules/@opentelemetry/configuration/build/src/generated/types.d.ts +40 -15
- package/node_modules/@opentelemetry/configuration/build/src/generated/types.js +1 -1
- package/node_modules/@opentelemetry/configuration/build/src/generated/types.js.map +1 -1
- package/node_modules/@opentelemetry/configuration/build/src/generated/validator.js +688 -568
- package/node_modules/@opentelemetry/configuration/build/src/generated/validator.js.map +1 -1
- package/node_modules/@opentelemetry/configuration/build/src/index.d.ts +2 -1
- package/node_modules/@opentelemetry/configuration/build/src/index.js +4 -1
- package/node_modules/@opentelemetry/configuration/build/src/index.js.map +1 -1
- package/node_modules/@opentelemetry/configuration/build/src/utils.js +1 -0
- package/node_modules/@opentelemetry/configuration/build/src/utils.js.map +1 -1
- package/node_modules/@opentelemetry/configuration/build/src/version.d.ts +1 -1
- package/node_modules/@opentelemetry/configuration/build/src/version.js +1 -1
- package/node_modules/@opentelemetry/configuration/build/src/version.js.map +1 -1
- package/node_modules/@opentelemetry/configuration/package.json +5 -5
- package/node_modules/@opentelemetry/context-async-hooks/build/src/version.d.ts +1 -1
- package/node_modules/@opentelemetry/context-async-hooks/build/src/version.js +1 -1
- package/node_modules/@opentelemetry/context-async-hooks/build/src/version.js.map +1 -1
- package/node_modules/@opentelemetry/context-async-hooks/package.json +3 -3
- package/node_modules/@opentelemetry/core/build/esm/common/time.js +16 -2
- package/node_modules/@opentelemetry/core/build/esm/common/time.js.map +1 -1
- package/node_modules/@opentelemetry/core/build/esm/version.d.ts +1 -1
- package/node_modules/@opentelemetry/core/build/esm/version.js +1 -1
- package/node_modules/@opentelemetry/core/build/esm/version.js.map +1 -1
- package/node_modules/@opentelemetry/core/build/esnext/common/time.js +16 -2
- package/node_modules/@opentelemetry/core/build/esnext/common/time.js.map +1 -1
- package/node_modules/@opentelemetry/core/build/esnext/version.d.ts +1 -1
- package/node_modules/@opentelemetry/core/build/esnext/version.js +1 -1
- package/node_modules/@opentelemetry/core/build/esnext/version.js.map +1 -1
- package/node_modules/@opentelemetry/core/build/src/common/time.js +16 -2
- package/node_modules/@opentelemetry/core/build/src/common/time.js.map +1 -1
- package/node_modules/@opentelemetry/core/build/src/version.d.ts +1 -1
- package/node_modules/@opentelemetry/core/build/src/version.js +1 -1
- package/node_modules/@opentelemetry/core/build/src/version.js.map +1 -1
- package/node_modules/@opentelemetry/core/package.json +4 -4
- package/node_modules/@opentelemetry/exporter-logs-otlp-grpc/README.md +3 -3
- package/node_modules/@opentelemetry/exporter-logs-otlp-grpc/build/src/version.d.ts +1 -1
- package/node_modules/@opentelemetry/exporter-logs-otlp-grpc/build/src/version.js +1 -1
- package/node_modules/@opentelemetry/exporter-logs-otlp-grpc/build/src/version.js.map +1 -1
- package/node_modules/@opentelemetry/exporter-logs-otlp-grpc/package.json +10 -10
- package/node_modules/@opentelemetry/exporter-logs-otlp-http/README.md +2 -2
- package/node_modules/@opentelemetry/exporter-logs-otlp-http/build/esm/version.d.ts +1 -1
- package/node_modules/@opentelemetry/exporter-logs-otlp-http/build/esm/version.js +1 -1
- package/node_modules/@opentelemetry/exporter-logs-otlp-http/build/esm/version.js.map +1 -1
- package/node_modules/@opentelemetry/exporter-logs-otlp-http/build/esnext/version.d.ts +1 -1
- package/node_modules/@opentelemetry/exporter-logs-otlp-http/build/esnext/version.js +1 -1
- package/node_modules/@opentelemetry/exporter-logs-otlp-http/build/esnext/version.js.map +1 -1
- package/node_modules/@opentelemetry/exporter-logs-otlp-http/build/src/version.d.ts +1 -1
- package/node_modules/@opentelemetry/exporter-logs-otlp-http/build/src/version.js +1 -1
- package/node_modules/@opentelemetry/exporter-logs-otlp-http/build/src/version.js.map +1 -1
- package/node_modules/@opentelemetry/exporter-logs-otlp-http/package.json +12 -12
- package/node_modules/@opentelemetry/exporter-logs-otlp-proto/README.md +1 -1
- package/node_modules/@opentelemetry/exporter-logs-otlp-proto/build/esm/version.d.ts +1 -1
- package/node_modules/@opentelemetry/exporter-logs-otlp-proto/build/esm/version.js +1 -1
- package/node_modules/@opentelemetry/exporter-logs-otlp-proto/build/esm/version.js.map +1 -1
- package/node_modules/@opentelemetry/exporter-logs-otlp-proto/build/esnext/version.d.ts +1 -1
- package/node_modules/@opentelemetry/exporter-logs-otlp-proto/build/esnext/version.js +1 -1
- package/node_modules/@opentelemetry/exporter-logs-otlp-proto/build/esnext/version.js.map +1 -1
- package/node_modules/@opentelemetry/exporter-logs-otlp-proto/build/src/version.d.ts +1 -1
- package/node_modules/@opentelemetry/exporter-logs-otlp-proto/build/src/version.js +1 -1
- package/node_modules/@opentelemetry/exporter-logs-otlp-proto/build/src/version.js.map +1 -1
- package/node_modules/@opentelemetry/exporter-logs-otlp-proto/package.json +9 -13
- package/node_modules/@opentelemetry/exporter-metrics-otlp-grpc/build/src/version.d.ts +1 -1
- package/node_modules/@opentelemetry/exporter-metrics-otlp-grpc/build/src/version.js +1 -1
- package/node_modules/@opentelemetry/exporter-metrics-otlp-grpc/build/src/version.js.map +1 -1
- package/node_modules/@opentelemetry/exporter-metrics-otlp-grpc/package.json +10 -10
- package/node_modules/@opentelemetry/exporter-metrics-otlp-http/build/esm/version.d.ts +1 -1
- package/node_modules/@opentelemetry/exporter-metrics-otlp-http/build/esm/version.js +1 -1
- package/node_modules/@opentelemetry/exporter-metrics-otlp-http/build/esm/version.js.map +1 -1
- package/node_modules/@opentelemetry/exporter-metrics-otlp-http/build/esnext/version.d.ts +1 -1
- package/node_modules/@opentelemetry/exporter-metrics-otlp-http/build/esnext/version.js +1 -1
- package/node_modules/@opentelemetry/exporter-metrics-otlp-http/build/esnext/version.js.map +1 -1
- package/node_modules/@opentelemetry/exporter-metrics-otlp-http/build/src/version.d.ts +1 -1
- package/node_modules/@opentelemetry/exporter-metrics-otlp-http/build/src/version.js +1 -1
- package/node_modules/@opentelemetry/exporter-metrics-otlp-http/build/src/version.js.map +1 -1
- package/node_modules/@opentelemetry/exporter-metrics-otlp-http/package.json +11 -11
- package/node_modules/@opentelemetry/exporter-metrics-otlp-proto/build/esm/version.d.ts +1 -1
- package/node_modules/@opentelemetry/exporter-metrics-otlp-proto/build/esm/version.js +1 -1
- package/node_modules/@opentelemetry/exporter-metrics-otlp-proto/build/esm/version.js.map +1 -1
- package/node_modules/@opentelemetry/exporter-metrics-otlp-proto/build/esnext/version.d.ts +1 -1
- package/node_modules/@opentelemetry/exporter-metrics-otlp-proto/build/esnext/version.js +1 -1
- package/node_modules/@opentelemetry/exporter-metrics-otlp-proto/build/esnext/version.js.map +1 -1
- package/node_modules/@opentelemetry/exporter-metrics-otlp-proto/build/src/version.d.ts +1 -1
- package/node_modules/@opentelemetry/exporter-metrics-otlp-proto/build/src/version.js +1 -1
- package/node_modules/@opentelemetry/exporter-metrics-otlp-proto/build/src/version.js.map +1 -1
- package/node_modules/@opentelemetry/exporter-metrics-otlp-proto/package.json +12 -12
- package/node_modules/@opentelemetry/exporter-prometheus/build/src/version.d.ts +1 -1
- package/node_modules/@opentelemetry/exporter-prometheus/build/src/version.js +1 -1
- package/node_modules/@opentelemetry/exporter-prometheus/build/src/version.js.map +1 -1
- package/node_modules/@opentelemetry/exporter-prometheus/package.json +6 -6
- package/node_modules/@opentelemetry/exporter-trace-otlp-grpc/README.md +13 -62
- package/node_modules/@opentelemetry/exporter-trace-otlp-grpc/build/src/OTLPTraceExporter.d.ts +1 -1
- package/node_modules/@opentelemetry/exporter-trace-otlp-grpc/build/src/OTLPTraceExporter.js.map +1 -1
- package/node_modules/@opentelemetry/exporter-trace-otlp-grpc/build/src/version.d.ts +1 -1
- package/node_modules/@opentelemetry/exporter-trace-otlp-grpc/build/src/version.js +1 -1
- package/node_modules/@opentelemetry/exporter-trace-otlp-grpc/build/src/version.js.map +1 -1
- package/node_modules/@opentelemetry/exporter-trace-otlp-grpc/package.json +7 -9
- package/node_modules/@opentelemetry/exporter-trace-otlp-http/README.md +6 -6
- package/node_modules/@opentelemetry/exporter-trace-otlp-http/build/esm/platform/browser/OTLPTraceExporter.d.ts +1 -1
- package/node_modules/@opentelemetry/exporter-trace-otlp-http/build/esm/platform/browser/OTLPTraceExporter.js.map +1 -1
- package/node_modules/@opentelemetry/exporter-trace-otlp-http/build/esm/platform/node/OTLPTraceExporter.d.ts +1 -1
- package/node_modules/@opentelemetry/exporter-trace-otlp-http/build/esm/platform/node/OTLPTraceExporter.js.map +1 -1
- package/node_modules/@opentelemetry/exporter-trace-otlp-http/build/esm/version.d.ts +1 -1
- package/node_modules/@opentelemetry/exporter-trace-otlp-http/build/esm/version.js +1 -1
- package/node_modules/@opentelemetry/exporter-trace-otlp-http/build/esm/version.js.map +1 -1
- package/node_modules/@opentelemetry/exporter-trace-otlp-http/build/esnext/platform/browser/OTLPTraceExporter.d.ts +1 -1
- package/node_modules/@opentelemetry/exporter-trace-otlp-http/build/esnext/platform/browser/OTLPTraceExporter.js.map +1 -1
- package/node_modules/@opentelemetry/exporter-trace-otlp-http/build/esnext/platform/node/OTLPTraceExporter.d.ts +1 -1
- package/node_modules/@opentelemetry/exporter-trace-otlp-http/build/esnext/platform/node/OTLPTraceExporter.js.map +1 -1
- package/node_modules/@opentelemetry/exporter-trace-otlp-http/build/esnext/version.d.ts +1 -1
- package/node_modules/@opentelemetry/exporter-trace-otlp-http/build/esnext/version.js +1 -1
- package/node_modules/@opentelemetry/exporter-trace-otlp-http/build/esnext/version.js.map +1 -1
- package/node_modules/@opentelemetry/exporter-trace-otlp-http/build/src/platform/browser/OTLPTraceExporter.d.ts +1 -1
- package/node_modules/@opentelemetry/exporter-trace-otlp-http/build/src/platform/browser/OTLPTraceExporter.js.map +1 -1
- package/node_modules/@opentelemetry/exporter-trace-otlp-http/build/src/platform/node/OTLPTraceExporter.d.ts +1 -1
- package/node_modules/@opentelemetry/exporter-trace-otlp-http/build/src/platform/node/OTLPTraceExporter.js.map +1 -1
- package/node_modules/@opentelemetry/exporter-trace-otlp-http/build/src/version.d.ts +1 -1
- package/node_modules/@opentelemetry/exporter-trace-otlp-http/build/src/version.js +1 -1
- package/node_modules/@opentelemetry/exporter-trace-otlp-http/build/src/version.js.map +1 -1
- package/node_modules/@opentelemetry/exporter-trace-otlp-http/package.json +11 -11
- package/node_modules/@opentelemetry/exporter-trace-otlp-proto/README.md +5 -6
- package/node_modules/@opentelemetry/exporter-trace-otlp-proto/build/esm/platform/browser/OTLPTraceExporter.d.ts +1 -1
- package/node_modules/@opentelemetry/exporter-trace-otlp-proto/build/esm/platform/browser/OTLPTraceExporter.js.map +1 -1
- package/node_modules/@opentelemetry/exporter-trace-otlp-proto/build/esm/platform/node/OTLPTraceExporter.d.ts +1 -1
- package/node_modules/@opentelemetry/exporter-trace-otlp-proto/build/esm/platform/node/OTLPTraceExporter.js.map +1 -1
- package/node_modules/@opentelemetry/exporter-trace-otlp-proto/build/esm/version.d.ts +1 -1
- package/node_modules/@opentelemetry/exporter-trace-otlp-proto/build/esm/version.js +1 -1
- package/node_modules/@opentelemetry/exporter-trace-otlp-proto/build/esm/version.js.map +1 -1
- package/node_modules/@opentelemetry/exporter-trace-otlp-proto/build/esnext/platform/browser/OTLPTraceExporter.d.ts +1 -1
- package/node_modules/@opentelemetry/exporter-trace-otlp-proto/build/esnext/platform/browser/OTLPTraceExporter.js.map +1 -1
- package/node_modules/@opentelemetry/exporter-trace-otlp-proto/build/esnext/platform/node/OTLPTraceExporter.d.ts +1 -1
- package/node_modules/@opentelemetry/exporter-trace-otlp-proto/build/esnext/platform/node/OTLPTraceExporter.js.map +1 -1
- package/node_modules/@opentelemetry/exporter-trace-otlp-proto/build/esnext/version.d.ts +1 -1
- package/node_modules/@opentelemetry/exporter-trace-otlp-proto/build/esnext/version.js +1 -1
- package/node_modules/@opentelemetry/exporter-trace-otlp-proto/build/esnext/version.js.map +1 -1
- package/node_modules/@opentelemetry/exporter-trace-otlp-proto/build/src/platform/browser/OTLPTraceExporter.d.ts +1 -1
- package/node_modules/@opentelemetry/exporter-trace-otlp-proto/build/src/platform/browser/OTLPTraceExporter.js.map +1 -1
- package/node_modules/@opentelemetry/exporter-trace-otlp-proto/build/src/platform/node/OTLPTraceExporter.d.ts +1 -1
- package/node_modules/@opentelemetry/exporter-trace-otlp-proto/build/src/platform/node/OTLPTraceExporter.js.map +1 -1
- package/node_modules/@opentelemetry/exporter-trace-otlp-proto/build/src/version.d.ts +1 -1
- package/node_modules/@opentelemetry/exporter-trace-otlp-proto/build/src/version.js +1 -1
- package/node_modules/@opentelemetry/exporter-trace-otlp-proto/build/src/version.js.map +1 -1
- package/node_modules/@opentelemetry/exporter-trace-otlp-proto/package.json +11 -11
- package/node_modules/@opentelemetry/exporter-zipkin/README.md +1 -1
- package/node_modules/@opentelemetry/exporter-zipkin/build/esm/transform.d.ts +1 -1
- package/node_modules/@opentelemetry/exporter-zipkin/build/esm/transform.js.map +1 -1
- package/node_modules/@opentelemetry/exporter-zipkin/build/esm/version.d.ts +1 -1
- package/node_modules/@opentelemetry/exporter-zipkin/build/esm/version.js +1 -1
- package/node_modules/@opentelemetry/exporter-zipkin/build/esm/version.js.map +1 -1
- package/node_modules/@opentelemetry/exporter-zipkin/build/esm/zipkin.d.ts +1 -1
- package/node_modules/@opentelemetry/exporter-zipkin/build/esm/zipkin.js.map +1 -1
- package/node_modules/@opentelemetry/exporter-zipkin/build/esnext/transform.d.ts +1 -1
- package/node_modules/@opentelemetry/exporter-zipkin/build/esnext/transform.js.map +1 -1
- package/node_modules/@opentelemetry/exporter-zipkin/build/esnext/version.d.ts +1 -1
- package/node_modules/@opentelemetry/exporter-zipkin/build/esnext/version.js +1 -1
- package/node_modules/@opentelemetry/exporter-zipkin/build/esnext/version.js.map +1 -1
- package/node_modules/@opentelemetry/exporter-zipkin/build/esnext/zipkin.d.ts +1 -1
- package/node_modules/@opentelemetry/exporter-zipkin/build/esnext/zipkin.js.map +1 -1
- package/node_modules/@opentelemetry/exporter-zipkin/build/src/transform.d.ts +1 -1
- package/node_modules/@opentelemetry/exporter-zipkin/build/src/transform.js.map +1 -1
- package/node_modules/@opentelemetry/exporter-zipkin/build/src/version.d.ts +1 -1
- package/node_modules/@opentelemetry/exporter-zipkin/build/src/version.js +1 -1
- package/node_modules/@opentelemetry/exporter-zipkin/build/src/version.js.map +1 -1
- package/node_modules/@opentelemetry/exporter-zipkin/build/src/zipkin.d.ts +1 -1
- package/node_modules/@opentelemetry/exporter-zipkin/build/src/zipkin.js.map +1 -1
- package/node_modules/@opentelemetry/exporter-zipkin/package.json +9 -9
- package/node_modules/@opentelemetry/instrumentation/README.md +6 -7
- package/node_modules/@opentelemetry/instrumentation/build/esm/instrumentation.d.ts +1 -1
- package/node_modules/@opentelemetry/instrumentation/build/esm/instrumentation.js +1 -1
- package/node_modules/@opentelemetry/instrumentation/build/esm/instrumentation.js.map +1 -1
- package/node_modules/@opentelemetry/instrumentation/build/esm/version.d.ts +1 -1
- package/node_modules/@opentelemetry/instrumentation/build/esm/version.js +1 -1
- package/node_modules/@opentelemetry/instrumentation/build/esm/version.js.map +1 -1
- package/node_modules/@opentelemetry/instrumentation/build/esnext/instrumentation.d.ts +1 -1
- package/node_modules/@opentelemetry/instrumentation/build/esnext/instrumentation.js +1 -1
- package/node_modules/@opentelemetry/instrumentation/build/esnext/instrumentation.js.map +1 -1
- package/node_modules/@opentelemetry/instrumentation/build/esnext/version.d.ts +1 -1
- package/node_modules/@opentelemetry/instrumentation/build/esnext/version.js +1 -1
- package/node_modules/@opentelemetry/instrumentation/build/esnext/version.js.map +1 -1
- package/node_modules/@opentelemetry/instrumentation/build/src/instrumentation.d.ts +1 -1
- package/node_modules/@opentelemetry/instrumentation/build/src/instrumentation.js +1 -1
- package/node_modules/@opentelemetry/instrumentation/build/src/instrumentation.js.map +1 -1
- package/node_modules/@opentelemetry/instrumentation/build/src/version.d.ts +1 -1
- package/node_modules/@opentelemetry/instrumentation/build/src/version.js +1 -1
- package/node_modules/@opentelemetry/instrumentation/build/src/version.js.map +1 -1
- package/node_modules/@opentelemetry/instrumentation/package.json +11 -11
- package/node_modules/@opentelemetry/otlp-exporter-base/build/esm/version.d.ts +1 -1
- package/node_modules/@opentelemetry/otlp-exporter-base/build/esm/version.js +1 -1
- package/node_modules/@opentelemetry/otlp-exporter-base/build/esm/version.js.map +1 -1
- package/node_modules/@opentelemetry/otlp-exporter-base/build/esnext/version.d.ts +1 -1
- package/node_modules/@opentelemetry/otlp-exporter-base/build/esnext/version.js +1 -1
- package/node_modules/@opentelemetry/otlp-exporter-base/build/esnext/version.js.map +1 -1
- package/node_modules/@opentelemetry/otlp-exporter-base/build/src/version.d.ts +1 -1
- package/node_modules/@opentelemetry/otlp-exporter-base/build/src/version.js +1 -1
- package/node_modules/@opentelemetry/otlp-exporter-base/build/src/version.js.map +1 -1
- package/node_modules/@opentelemetry/otlp-exporter-base/package.json +8 -8
- package/node_modules/@opentelemetry/otlp-grpc-exporter-base/build/src/version.d.ts +1 -1
- package/node_modules/@opentelemetry/otlp-grpc-exporter-base/build/src/version.js +1 -1
- package/node_modules/@opentelemetry/otlp-grpc-exporter-base/build/src/version.js.map +1 -1
- package/node_modules/@opentelemetry/otlp-grpc-exporter-base/package.json +6 -8
- package/node_modules/@opentelemetry/otlp-transformer/README.md +1 -1
- package/node_modules/@opentelemetry/otlp-transformer/build/esm/trace/internal.d.ts +1 -1
- package/node_modules/@opentelemetry/otlp-transformer/build/esm/trace/internal.js.map +1 -1
- package/node_modules/@opentelemetry/otlp-transformer/build/esm/trace/json/trace.d.ts +1 -1
- package/node_modules/@opentelemetry/otlp-transformer/build/esm/trace/json/trace.js.map +1 -1
- package/node_modules/@opentelemetry/otlp-transformer/build/esm/trace/protobuf/trace-serializer.d.ts +1 -1
- package/node_modules/@opentelemetry/otlp-transformer/build/esm/trace/protobuf/trace-serializer.js.map +1 -1
- package/node_modules/@opentelemetry/otlp-transformer/build/esm/trace/protobuf/trace.d.ts +1 -1
- package/node_modules/@opentelemetry/otlp-transformer/build/esm/trace/protobuf/trace.js.map +1 -1
- package/node_modules/@opentelemetry/otlp-transformer/build/esnext/trace/internal.d.ts +1 -1
- package/node_modules/@opentelemetry/otlp-transformer/build/esnext/trace/internal.js.map +1 -1
- package/node_modules/@opentelemetry/otlp-transformer/build/esnext/trace/json/trace.d.ts +1 -1
- package/node_modules/@opentelemetry/otlp-transformer/build/esnext/trace/json/trace.js.map +1 -1
- package/node_modules/@opentelemetry/otlp-transformer/build/esnext/trace/protobuf/trace-serializer.d.ts +1 -1
- package/node_modules/@opentelemetry/otlp-transformer/build/esnext/trace/protobuf/trace-serializer.js.map +1 -1
- package/node_modules/@opentelemetry/otlp-transformer/build/esnext/trace/protobuf/trace.d.ts +1 -1
- package/node_modules/@opentelemetry/otlp-transformer/build/esnext/trace/protobuf/trace.js.map +1 -1
- package/node_modules/@opentelemetry/otlp-transformer/build/src/trace/internal.d.ts +1 -1
- package/node_modules/@opentelemetry/otlp-transformer/build/src/trace/internal.js.map +1 -1
- package/node_modules/@opentelemetry/otlp-transformer/build/src/trace/json/trace.d.ts +1 -1
- package/node_modules/@opentelemetry/otlp-transformer/build/src/trace/json/trace.js.map +1 -1
- package/node_modules/@opentelemetry/otlp-transformer/build/src/trace/protobuf/trace-serializer.d.ts +1 -1
- package/node_modules/@opentelemetry/otlp-transformer/build/src/trace/protobuf/trace-serializer.js.map +1 -1
- package/node_modules/@opentelemetry/otlp-transformer/build/src/trace/protobuf/trace.d.ts +1 -1
- package/node_modules/@opentelemetry/otlp-transformer/build/src/trace/protobuf/trace.js.map +1 -1
- package/node_modules/@opentelemetry/otlp-transformer/package.json +12 -12
- package/node_modules/@opentelemetry/propagator-b3/build/esm/version.d.ts +1 -1
- package/node_modules/@opentelemetry/propagator-b3/build/esm/version.js +1 -1
- package/node_modules/@opentelemetry/propagator-b3/build/esm/version.js.map +1 -1
- package/node_modules/@opentelemetry/propagator-b3/build/esnext/version.d.ts +1 -1
- package/node_modules/@opentelemetry/propagator-b3/build/esnext/version.js +1 -1
- package/node_modules/@opentelemetry/propagator-b3/build/esnext/version.js.map +1 -1
- package/node_modules/@opentelemetry/propagator-b3/build/src/version.d.ts +1 -1
- package/node_modules/@opentelemetry/propagator-b3/build/src/version.js +1 -1
- package/node_modules/@opentelemetry/propagator-b3/build/src/version.js.map +1 -1
- package/node_modules/@opentelemetry/propagator-b3/package.json +4 -4
- package/node_modules/@opentelemetry/propagator-jaeger/README.md +3 -5
- package/node_modules/@opentelemetry/propagator-jaeger/build/esm/JaegerPropagator.js +16 -2
- package/node_modules/@opentelemetry/propagator-jaeger/build/esm/JaegerPropagator.js.map +1 -1
- package/node_modules/@opentelemetry/propagator-jaeger/build/esm/version.d.ts +1 -1
- package/node_modules/@opentelemetry/propagator-jaeger/build/esm/version.js +1 -1
- package/node_modules/@opentelemetry/propagator-jaeger/build/esm/version.js.map +1 -1
- package/node_modules/@opentelemetry/propagator-jaeger/build/esnext/JaegerPropagator.js +16 -2
- package/node_modules/@opentelemetry/propagator-jaeger/build/esnext/JaegerPropagator.js.map +1 -1
- package/node_modules/@opentelemetry/propagator-jaeger/build/esnext/version.d.ts +1 -1
- package/node_modules/@opentelemetry/propagator-jaeger/build/esnext/version.js +1 -1
- package/node_modules/@opentelemetry/propagator-jaeger/build/esnext/version.js.map +1 -1
- package/node_modules/@opentelemetry/propagator-jaeger/build/src/JaegerPropagator.js +16 -2
- package/node_modules/@opentelemetry/propagator-jaeger/build/src/JaegerPropagator.js.map +1 -1
- package/node_modules/@opentelemetry/propagator-jaeger/build/src/version.d.ts +1 -1
- package/node_modules/@opentelemetry/propagator-jaeger/build/src/version.js +1 -1
- package/node_modules/@opentelemetry/propagator-jaeger/build/src/version.js.map +1 -1
- package/node_modules/@opentelemetry/propagator-jaeger/package.json +4 -4
- package/node_modules/@opentelemetry/resources/build/esm/version.d.ts +1 -1
- package/node_modules/@opentelemetry/resources/build/esm/version.js +1 -1
- package/node_modules/@opentelemetry/resources/build/esm/version.js.map +1 -1
- package/node_modules/@opentelemetry/resources/build/esnext/version.d.ts +1 -1
- package/node_modules/@opentelemetry/resources/build/esnext/version.js +1 -1
- package/node_modules/@opentelemetry/resources/build/esnext/version.js.map +1 -1
- package/node_modules/@opentelemetry/resources/build/src/version.d.ts +1 -1
- package/node_modules/@opentelemetry/resources/build/src/version.js +1 -1
- package/node_modules/@opentelemetry/resources/build/src/version.js.map +1 -1
- package/node_modules/@opentelemetry/resources/package.json +5 -5
- package/node_modules/@opentelemetry/sdk-logs/README.md +10 -6
- package/node_modules/@opentelemetry/sdk-logs/build/esm/Logger.js +3 -0
- package/node_modules/@opentelemetry/sdk-logs/build/esm/Logger.js.map +1 -1
- package/node_modules/@opentelemetry/sdk-logs/build/esm/LoggerProvider.js +1 -0
- package/node_modules/@opentelemetry/sdk-logs/build/esm/LoggerProvider.js.map +1 -1
- package/node_modules/@opentelemetry/sdk-logs/build/esm/export/BatchLogRecordProcessorBase.d.ts +3 -4
- package/node_modules/@opentelemetry/sdk-logs/build/esm/export/BatchLogRecordProcessorBase.js +6 -6
- package/node_modules/@opentelemetry/sdk-logs/build/esm/export/BatchLogRecordProcessorBase.js.map +1 -1
- package/node_modules/@opentelemetry/sdk-logs/build/esm/export/SimpleLogRecordProcessor.d.ts +2 -2
- package/node_modules/@opentelemetry/sdk-logs/build/esm/export/SimpleLogRecordProcessor.js +2 -2
- package/node_modules/@opentelemetry/sdk-logs/build/esm/export/SimpleLogRecordProcessor.js.map +1 -1
- package/node_modules/@opentelemetry/sdk-logs/build/esm/index.d.ts +1 -1
- package/node_modules/@opentelemetry/sdk-logs/build/esm/index.js.map +1 -1
- package/node_modules/@opentelemetry/sdk-logs/build/esm/internal/LoggerProviderSharedState.d.ts +1 -0
- package/node_modules/@opentelemetry/sdk-logs/build/esm/internal/LoggerProviderSharedState.js +1 -0
- package/node_modules/@opentelemetry/sdk-logs/build/esm/internal/LoggerProviderSharedState.js.map +1 -1
- package/node_modules/@opentelemetry/sdk-logs/build/esm/platform/browser/export/BatchLogRecordProcessor.d.ts +3 -4
- package/node_modules/@opentelemetry/sdk-logs/build/esm/platform/browser/export/BatchLogRecordProcessor.js +5 -5
- package/node_modules/@opentelemetry/sdk-logs/build/esm/platform/browser/export/BatchLogRecordProcessor.js.map +1 -1
- package/node_modules/@opentelemetry/sdk-logs/build/esm/platform/node/export/BatchLogRecordProcessor.d.ts +2 -2
- package/node_modules/@opentelemetry/sdk-logs/build/esm/platform/node/export/BatchLogRecordProcessor.js.map +1 -1
- package/node_modules/@opentelemetry/sdk-logs/build/esm/types.d.ts +8 -4
- package/node_modules/@opentelemetry/sdk-logs/build/esm/types.js.map +1 -1
- package/node_modules/@opentelemetry/sdk-logs/build/esm/version.d.ts +1 -1
- package/node_modules/@opentelemetry/sdk-logs/build/esm/version.js +1 -1
- package/node_modules/@opentelemetry/sdk-logs/build/esm/version.js.map +1 -1
- package/node_modules/@opentelemetry/sdk-logs/build/esnext/Logger.js +3 -0
- package/node_modules/@opentelemetry/sdk-logs/build/esnext/Logger.js.map +1 -1
- package/node_modules/@opentelemetry/sdk-logs/build/esnext/LoggerProvider.js +1 -0
- package/node_modules/@opentelemetry/sdk-logs/build/esnext/LoggerProvider.js.map +1 -1
- package/node_modules/@opentelemetry/sdk-logs/build/esnext/export/BatchLogRecordProcessorBase.d.ts +3 -4
- package/node_modules/@opentelemetry/sdk-logs/build/esnext/export/BatchLogRecordProcessorBase.js +6 -6
- package/node_modules/@opentelemetry/sdk-logs/build/esnext/export/BatchLogRecordProcessorBase.js.map +1 -1
- package/node_modules/@opentelemetry/sdk-logs/build/esnext/export/SimpleLogRecordProcessor.d.ts +2 -2
- package/node_modules/@opentelemetry/sdk-logs/build/esnext/export/SimpleLogRecordProcessor.js +2 -2
- package/node_modules/@opentelemetry/sdk-logs/build/esnext/export/SimpleLogRecordProcessor.js.map +1 -1
- package/node_modules/@opentelemetry/sdk-logs/build/esnext/index.d.ts +1 -1
- package/node_modules/@opentelemetry/sdk-logs/build/esnext/index.js.map +1 -1
- package/node_modules/@opentelemetry/sdk-logs/build/esnext/internal/LoggerProviderSharedState.d.ts +1 -0
- package/node_modules/@opentelemetry/sdk-logs/build/esnext/internal/LoggerProviderSharedState.js +1 -0
- package/node_modules/@opentelemetry/sdk-logs/build/esnext/internal/LoggerProviderSharedState.js.map +1 -1
- package/node_modules/@opentelemetry/sdk-logs/build/esnext/platform/browser/export/BatchLogRecordProcessor.d.ts +3 -4
- package/node_modules/@opentelemetry/sdk-logs/build/esnext/platform/browser/export/BatchLogRecordProcessor.js +5 -5
- package/node_modules/@opentelemetry/sdk-logs/build/esnext/platform/browser/export/BatchLogRecordProcessor.js.map +1 -1
- package/node_modules/@opentelemetry/sdk-logs/build/esnext/platform/node/export/BatchLogRecordProcessor.d.ts +2 -2
- package/node_modules/@opentelemetry/sdk-logs/build/esnext/platform/node/export/BatchLogRecordProcessor.js.map +1 -1
- package/node_modules/@opentelemetry/sdk-logs/build/esnext/types.d.ts +8 -4
- package/node_modules/@opentelemetry/sdk-logs/build/esnext/types.js.map +1 -1
- package/node_modules/@opentelemetry/sdk-logs/build/esnext/version.d.ts +1 -1
- package/node_modules/@opentelemetry/sdk-logs/build/esnext/version.js +1 -1
- package/node_modules/@opentelemetry/sdk-logs/build/esnext/version.js.map +1 -1
- package/node_modules/@opentelemetry/sdk-logs/build/src/Logger.js +3 -0
- package/node_modules/@opentelemetry/sdk-logs/build/src/Logger.js.map +1 -1
- package/node_modules/@opentelemetry/sdk-logs/build/src/LoggerProvider.js +1 -0
- package/node_modules/@opentelemetry/sdk-logs/build/src/LoggerProvider.js.map +1 -1
- package/node_modules/@opentelemetry/sdk-logs/build/src/export/BatchLogRecordProcessorBase.d.ts +3 -4
- package/node_modules/@opentelemetry/sdk-logs/build/src/export/BatchLogRecordProcessorBase.js +6 -6
- package/node_modules/@opentelemetry/sdk-logs/build/src/export/BatchLogRecordProcessorBase.js.map +1 -1
- package/node_modules/@opentelemetry/sdk-logs/build/src/export/SimpleLogRecordProcessor.d.ts +2 -2
- package/node_modules/@opentelemetry/sdk-logs/build/src/export/SimpleLogRecordProcessor.js +2 -2
- package/node_modules/@opentelemetry/sdk-logs/build/src/export/SimpleLogRecordProcessor.js.map +1 -1
- package/node_modules/@opentelemetry/sdk-logs/build/src/index.d.ts +1 -1
- package/node_modules/@opentelemetry/sdk-logs/build/src/index.js.map +1 -1
- package/node_modules/@opentelemetry/sdk-logs/build/src/internal/LoggerProviderSharedState.d.ts +1 -0
- package/node_modules/@opentelemetry/sdk-logs/build/src/internal/LoggerProviderSharedState.js +1 -0
- package/node_modules/@opentelemetry/sdk-logs/build/src/internal/LoggerProviderSharedState.js.map +1 -1
- package/node_modules/@opentelemetry/sdk-logs/build/src/platform/browser/export/BatchLogRecordProcessor.d.ts +3 -4
- package/node_modules/@opentelemetry/sdk-logs/build/src/platform/browser/export/BatchLogRecordProcessor.js +5 -5
- package/node_modules/@opentelemetry/sdk-logs/build/src/platform/browser/export/BatchLogRecordProcessor.js.map +1 -1
- package/node_modules/@opentelemetry/sdk-logs/build/src/platform/node/export/BatchLogRecordProcessor.d.ts +2 -2
- package/node_modules/@opentelemetry/sdk-logs/build/src/platform/node/export/BatchLogRecordProcessor.js.map +1 -1
- package/node_modules/@opentelemetry/sdk-logs/build/src/types.d.ts +8 -4
- package/node_modules/@opentelemetry/sdk-logs/build/src/types.js.map +1 -1
- package/node_modules/@opentelemetry/sdk-logs/build/src/version.d.ts +1 -1
- package/node_modules/@opentelemetry/sdk-logs/build/src/version.js +1 -1
- package/node_modules/@opentelemetry/sdk-logs/build/src/version.js.map +1 -1
- package/node_modules/@opentelemetry/sdk-logs/package.json +10 -10
- package/node_modules/@opentelemetry/sdk-metrics/build/esm/Instruments.js +3 -4
- package/node_modules/@opentelemetry/sdk-metrics/build/esm/Instruments.js.map +1 -1
- package/node_modules/@opentelemetry/sdk-metrics/build/esm/export/MetricDataSplitter.d.ts +10 -0
- package/node_modules/@opentelemetry/sdk-metrics/build/esm/export/MetricDataSplitter.js +78 -0
- package/node_modules/@opentelemetry/sdk-metrics/build/esm/export/MetricDataSplitter.js.map +1 -0
- package/node_modules/@opentelemetry/sdk-metrics/build/esm/export/PeriodicExportingMetricReader.d.ts +13 -0
- package/node_modules/@opentelemetry/sdk-metrics/build/esm/export/PeriodicExportingMetricReader.js +90 -24
- package/node_modules/@opentelemetry/sdk-metrics/build/esm/export/PeriodicExportingMetricReader.js.map +1 -1
- package/node_modules/@opentelemetry/sdk-metrics/build/esm/state/AsyncMetricStorage.d.ts +2 -2
- package/node_modules/@opentelemetry/sdk-metrics/build/esm/state/AsyncMetricStorage.js +4 -0
- package/node_modules/@opentelemetry/sdk-metrics/build/esm/state/AsyncMetricStorage.js.map +1 -1
- package/node_modules/@opentelemetry/sdk-metrics/build/esm/state/DeltaMetricProcessor.d.ts +2 -2
- package/node_modules/@opentelemetry/sdk-metrics/build/esm/state/DeltaMetricProcessor.js +5 -3
- package/node_modules/@opentelemetry/sdk-metrics/build/esm/state/DeltaMetricProcessor.js.map +1 -1
- package/node_modules/@opentelemetry/sdk-metrics/build/esm/state/MeterSharedState.js +1 -2
- package/node_modules/@opentelemetry/sdk-metrics/build/esm/state/MeterSharedState.js.map +1 -1
- package/node_modules/@opentelemetry/sdk-metrics/build/esm/state/MultiWritableMetricStorage.d.ts +3 -2
- package/node_modules/@opentelemetry/sdk-metrics/build/esm/state/MultiWritableMetricStorage.js +6 -0
- package/node_modules/@opentelemetry/sdk-metrics/build/esm/state/MultiWritableMetricStorage.js.map +1 -1
- package/node_modules/@opentelemetry/sdk-metrics/build/esm/state/SyncMetricStorage.d.ts +4 -3
- package/node_modules/@opentelemetry/sdk-metrics/build/esm/state/SyncMetricStorage.js +7 -2
- package/node_modules/@opentelemetry/sdk-metrics/build/esm/state/SyncMetricStorage.js.map +1 -1
- package/node_modules/@opentelemetry/sdk-metrics/build/esm/state/WritableMetricStorage.d.ts +3 -1
- package/node_modules/@opentelemetry/sdk-metrics/build/esm/state/WritableMetricStorage.js.map +1 -1
- package/node_modules/@opentelemetry/sdk-metrics/build/esm/version.d.ts +1 -1
- package/node_modules/@opentelemetry/sdk-metrics/build/esm/version.js +1 -1
- package/node_modules/@opentelemetry/sdk-metrics/build/esm/version.js.map +1 -1
- package/node_modules/@opentelemetry/sdk-metrics/build/esnext/Instruments.js +3 -4
- package/node_modules/@opentelemetry/sdk-metrics/build/esnext/Instruments.js.map +1 -1
- package/node_modules/@opentelemetry/sdk-metrics/build/esnext/export/MetricDataSplitter.d.ts +10 -0
- package/node_modules/@opentelemetry/sdk-metrics/build/esnext/export/MetricDataSplitter.js +78 -0
- package/node_modules/@opentelemetry/sdk-metrics/build/esnext/export/MetricDataSplitter.js.map +1 -0
- package/node_modules/@opentelemetry/sdk-metrics/build/esnext/export/PeriodicExportingMetricReader.d.ts +13 -0
- package/node_modules/@opentelemetry/sdk-metrics/build/esnext/export/PeriodicExportingMetricReader.js +90 -24
- package/node_modules/@opentelemetry/sdk-metrics/build/esnext/export/PeriodicExportingMetricReader.js.map +1 -1
- package/node_modules/@opentelemetry/sdk-metrics/build/esnext/state/AsyncMetricStorage.d.ts +2 -2
- package/node_modules/@opentelemetry/sdk-metrics/build/esnext/state/AsyncMetricStorage.js +4 -0
- package/node_modules/@opentelemetry/sdk-metrics/build/esnext/state/AsyncMetricStorage.js.map +1 -1
- package/node_modules/@opentelemetry/sdk-metrics/build/esnext/state/DeltaMetricProcessor.d.ts +2 -2
- package/node_modules/@opentelemetry/sdk-metrics/build/esnext/state/DeltaMetricProcessor.js +5 -3
- package/node_modules/@opentelemetry/sdk-metrics/build/esnext/state/DeltaMetricProcessor.js.map +1 -1
- package/node_modules/@opentelemetry/sdk-metrics/build/esnext/state/MeterSharedState.js +1 -2
- package/node_modules/@opentelemetry/sdk-metrics/build/esnext/state/MeterSharedState.js.map +1 -1
- package/node_modules/@opentelemetry/sdk-metrics/build/esnext/state/MultiWritableMetricStorage.d.ts +3 -2
- package/node_modules/@opentelemetry/sdk-metrics/build/esnext/state/MultiWritableMetricStorage.js +6 -0
- package/node_modules/@opentelemetry/sdk-metrics/build/esnext/state/MultiWritableMetricStorage.js.map +1 -1
- package/node_modules/@opentelemetry/sdk-metrics/build/esnext/state/SyncMetricStorage.d.ts +4 -3
- package/node_modules/@opentelemetry/sdk-metrics/build/esnext/state/SyncMetricStorage.js +7 -2
- package/node_modules/@opentelemetry/sdk-metrics/build/esnext/state/SyncMetricStorage.js.map +1 -1
- package/node_modules/@opentelemetry/sdk-metrics/build/esnext/state/WritableMetricStorage.d.ts +3 -1
- package/node_modules/@opentelemetry/sdk-metrics/build/esnext/state/WritableMetricStorage.js.map +1 -1
- package/node_modules/@opentelemetry/sdk-metrics/build/esnext/version.d.ts +1 -1
- package/node_modules/@opentelemetry/sdk-metrics/build/esnext/version.js +1 -1
- package/node_modules/@opentelemetry/sdk-metrics/build/esnext/version.js.map +1 -1
- package/node_modules/@opentelemetry/sdk-metrics/build/src/Instruments.js +2 -3
- package/node_modules/@opentelemetry/sdk-metrics/build/src/Instruments.js.map +1 -1
- package/node_modules/@opentelemetry/sdk-metrics/build/src/export/MetricDataSplitter.d.ts +10 -0
- package/node_modules/@opentelemetry/sdk-metrics/build/src/export/MetricDataSplitter.js +82 -0
- package/node_modules/@opentelemetry/sdk-metrics/build/src/export/MetricDataSplitter.js.map +1 -0
- package/node_modules/@opentelemetry/sdk-metrics/build/src/export/PeriodicExportingMetricReader.d.ts +13 -0
- package/node_modules/@opentelemetry/sdk-metrics/build/src/export/PeriodicExportingMetricReader.js +90 -24
- package/node_modules/@opentelemetry/sdk-metrics/build/src/export/PeriodicExportingMetricReader.js.map +1 -1
- package/node_modules/@opentelemetry/sdk-metrics/build/src/state/AsyncMetricStorage.d.ts +2 -2
- package/node_modules/@opentelemetry/sdk-metrics/build/src/state/AsyncMetricStorage.js +4 -0
- package/node_modules/@opentelemetry/sdk-metrics/build/src/state/AsyncMetricStorage.js.map +1 -1
- package/node_modules/@opentelemetry/sdk-metrics/build/src/state/DeltaMetricProcessor.d.ts +2 -2
- package/node_modules/@opentelemetry/sdk-metrics/build/src/state/DeltaMetricProcessor.js +5 -3
- package/node_modules/@opentelemetry/sdk-metrics/build/src/state/DeltaMetricProcessor.js.map +1 -1
- package/node_modules/@opentelemetry/sdk-metrics/build/src/state/MeterSharedState.js +1 -2
- package/node_modules/@opentelemetry/sdk-metrics/build/src/state/MeterSharedState.js.map +1 -1
- package/node_modules/@opentelemetry/sdk-metrics/build/src/state/MultiWritableMetricStorage.d.ts +3 -2
- package/node_modules/@opentelemetry/sdk-metrics/build/src/state/MultiWritableMetricStorage.js +6 -0
- package/node_modules/@opentelemetry/sdk-metrics/build/src/state/MultiWritableMetricStorage.js.map +1 -1
- package/node_modules/@opentelemetry/sdk-metrics/build/src/state/SyncMetricStorage.d.ts +4 -3
- package/node_modules/@opentelemetry/sdk-metrics/build/src/state/SyncMetricStorage.js +7 -2
- package/node_modules/@opentelemetry/sdk-metrics/build/src/state/SyncMetricStorage.js.map +1 -1
- package/node_modules/@opentelemetry/sdk-metrics/build/src/state/WritableMetricStorage.d.ts +3 -1
- package/node_modules/@opentelemetry/sdk-metrics/build/src/state/WritableMetricStorage.js.map +1 -1
- package/node_modules/@opentelemetry/sdk-metrics/build/src/version.d.ts +1 -1
- package/node_modules/@opentelemetry/sdk-metrics/build/src/version.js +1 -1
- package/node_modules/@opentelemetry/sdk-metrics/build/src/version.js.map +1 -1
- package/node_modules/@opentelemetry/sdk-metrics/package.json +9 -8
- package/node_modules/@opentelemetry/sdk-node/README.md +31 -9
- package/node_modules/@opentelemetry/sdk-node/build/src/create-from-config.d.ts +8 -0
- package/node_modules/@opentelemetry/sdk-node/build/src/create-from-config.js +26 -0
- package/node_modules/@opentelemetry/sdk-node/build/src/create-from-config.js.map +1 -0
- package/node_modules/@opentelemetry/sdk-node/build/src/create-from-env.d.ts +11 -0
- package/node_modules/@opentelemetry/sdk-node/build/src/create-from-env.js +80 -0
- package/node_modules/@opentelemetry/sdk-node/build/src/create-from-env.js.map +1 -0
- package/node_modules/@opentelemetry/sdk-node/build/src/index.d.ts +7 -1
- package/node_modules/@opentelemetry/sdk-node/build/src/index.js +8 -2
- package/node_modules/@opentelemetry/sdk-node/build/src/index.js.map +1 -1
- package/node_modules/@opentelemetry/sdk-node/build/src/sdk.d.ts +0 -1
- package/node_modules/@opentelemetry/sdk-node/build/src/sdk.js +28 -33
- package/node_modules/@opentelemetry/sdk-node/build/src/sdk.js.map +1 -1
- package/node_modules/@opentelemetry/sdk-node/build/src/start.js +65 -51
- package/node_modules/@opentelemetry/sdk-node/build/src/start.js.map +1 -1
- package/node_modules/@opentelemetry/sdk-node/build/src/types.d.ts +12 -4
- package/node_modules/@opentelemetry/sdk-node/build/src/types.js.map +1 -1
- package/node_modules/@opentelemetry/sdk-node/build/src/utils.d.ts +19 -11
- package/node_modules/@opentelemetry/sdk-node/build/src/utils.js +352 -181
- package/node_modules/@opentelemetry/sdk-node/build/src/utils.js.map +1 -1
- package/node_modules/@opentelemetry/sdk-node/build/src/version.d.ts +1 -1
- package/node_modules/@opentelemetry/sdk-node/build/src/version.js +1 -1
- package/node_modules/@opentelemetry/sdk-node/build/src/version.js.map +1 -1
- package/node_modules/@opentelemetry/sdk-node/package.json +29 -28
- package/node_modules/@opentelemetry/sdk-trace/LICENSE +201 -0
- package/node_modules/@opentelemetry/sdk-trace/README.md +352 -0
- package/node_modules/@opentelemetry/{sdk-trace-base/build/esnext → sdk-trace/build/esm}/Tracer.d.ts +2 -9
- package/node_modules/@opentelemetry/{sdk-trace-base → sdk-trace}/build/esm/Tracer.js +7 -23
- package/node_modules/@opentelemetry/sdk-trace/build/esm/Tracer.js.map +1 -0
- package/node_modules/@opentelemetry/{sdk-trace-base/build/src/BasicTracerProvider.d.ts → sdk-trace/build/esm/TracerProvider.d.ts} +8 -13
- package/node_modules/@opentelemetry/{sdk-trace-base/build/esnext/BasicTracerProvider.js → sdk-trace/build/esm/TracerProvider.js} +39 -21
- package/node_modules/@opentelemetry/sdk-trace/build/esm/TracerProvider.js.map +1 -0
- package/node_modules/@opentelemetry/{sdk-trace-base/build/esnext → sdk-trace/build/esm}/export/BatchSpanProcessorBase.d.ts +4 -4
- package/node_modules/@opentelemetry/{sdk-trace-base/build/esnext → sdk-trace/build/esm}/export/BatchSpanProcessorBase.js +21 -20
- package/node_modules/@opentelemetry/sdk-trace/build/esm/export/BatchSpanProcessorBase.js.map +1 -0
- package/node_modules/@opentelemetry/{sdk-trace-base/build/src → sdk-trace/build/esm}/export/SimpleSpanProcessor.d.ts +3 -2
- package/node_modules/@opentelemetry/{sdk-trace-base → sdk-trace}/build/esm/export/SimpleSpanProcessor.js +12 -3
- package/node_modules/@opentelemetry/sdk-trace/build/esm/export/SimpleSpanProcessor.js.map +1 -0
- package/node_modules/@opentelemetry/sdk-trace/build/esm/export/SpanProcessorMetrics.d.ts +18 -0
- package/node_modules/@opentelemetry/sdk-trace/build/esm/export/SpanProcessorMetrics.js +64 -0
- package/node_modules/@opentelemetry/sdk-trace/build/esm/export/SpanProcessorMetrics.js.map +1 -0
- package/node_modules/@opentelemetry/{sdk-trace-base/build/esnext → sdk-trace/build/esm}/index.d.ts +3 -2
- package/node_modules/@opentelemetry/{sdk-trace-base → sdk-trace}/build/esm/index.js +2 -1
- package/node_modules/@opentelemetry/sdk-trace/build/esm/index.js.map +1 -0
- package/node_modules/@opentelemetry/sdk-trace/build/esm/platform/browser/export/BatchSpanProcessor.d.ts +10 -0
- package/node_modules/@opentelemetry/{sdk-trace-base → sdk-trace}/build/esm/platform/browser/export/BatchSpanProcessor.js +5 -5
- package/node_modules/@opentelemetry/sdk-trace/build/esm/platform/browser/export/BatchSpanProcessor.js.map +1 -0
- package/node_modules/@opentelemetry/{sdk-trace-base/build/src → sdk-trace/build/esm}/platform/node/export/BatchSpanProcessor.d.ts +2 -2
- package/node_modules/@opentelemetry/{sdk-trace-base → sdk-trace}/build/esm/platform/node/export/BatchSpanProcessor.js.map +1 -1
- package/node_modules/@opentelemetry/sdk-trace/build/esm/sampler/AlwaysRecordSampler.d.ts +7 -0
- package/node_modules/@opentelemetry/sdk-trace/build/esm/sampler/AlwaysRecordSampler.js +31 -0
- package/node_modules/@opentelemetry/sdk-trace/build/esm/sampler/AlwaysRecordSampler.js.map +1 -0
- package/node_modules/@opentelemetry/sdk-trace/build/esm/semconv.d.ts +103 -0
- package/node_modules/@opentelemetry/sdk-trace/build/esm/semconv.js +112 -0
- package/node_modules/@opentelemetry/sdk-trace/build/esm/semconv.js.map +1 -0
- package/node_modules/@opentelemetry/{sdk-trace-base → sdk-trace}/build/esm/types.d.ts +32 -25
- package/node_modules/@opentelemetry/sdk-trace/build/esm/types.js.map +1 -0
- package/node_modules/@opentelemetry/sdk-trace/build/esm/version.d.ts +2 -0
- package/node_modules/@opentelemetry/sdk-trace/build/esm/version.js +7 -0
- package/node_modules/@opentelemetry/sdk-trace/build/esm/version.js.map +1 -0
- package/node_modules/@opentelemetry/{sdk-trace-base/build/src → sdk-trace/build/esnext}/Tracer.d.ts +2 -9
- package/node_modules/@opentelemetry/{sdk-trace-base → sdk-trace}/build/esnext/Tracer.js +7 -23
- package/node_modules/@opentelemetry/sdk-trace/build/esnext/Tracer.js.map +1 -0
- package/node_modules/@opentelemetry/{sdk-trace-base/build/esm/BasicTracerProvider.d.ts → sdk-trace/build/esnext/TracerProvider.d.ts} +8 -13
- package/node_modules/@opentelemetry/{sdk-trace-base/build/esm/BasicTracerProvider.js → sdk-trace/build/esnext/TracerProvider.js} +39 -21
- package/node_modules/@opentelemetry/sdk-trace/build/esnext/TracerProvider.js.map +1 -0
- package/node_modules/@opentelemetry/{sdk-trace-base/build/src → sdk-trace/build/esnext}/export/BatchSpanProcessorBase.d.ts +4 -4
- package/node_modules/@opentelemetry/{sdk-trace-base/build/esm → sdk-trace/build/esnext}/export/BatchSpanProcessorBase.js +21 -20
- package/node_modules/@opentelemetry/sdk-trace/build/esnext/export/BatchSpanProcessorBase.js.map +1 -0
- package/node_modules/@opentelemetry/{sdk-trace-base/build/esm → sdk-trace/build/esnext}/export/SimpleSpanProcessor.d.ts +3 -2
- package/node_modules/@opentelemetry/{sdk-trace-base → sdk-trace}/build/esnext/export/SimpleSpanProcessor.js +12 -3
- package/node_modules/@opentelemetry/sdk-trace/build/esnext/export/SimpleSpanProcessor.js.map +1 -0
- package/node_modules/@opentelemetry/sdk-trace/build/esnext/export/SpanProcessorMetrics.d.ts +18 -0
- package/node_modules/@opentelemetry/sdk-trace/build/esnext/export/SpanProcessorMetrics.js +64 -0
- package/node_modules/@opentelemetry/sdk-trace/build/esnext/export/SpanProcessorMetrics.js.map +1 -0
- package/node_modules/@opentelemetry/{sdk-trace-base/build/src → sdk-trace/build/esnext}/index.d.ts +3 -2
- package/node_modules/@opentelemetry/{sdk-trace-base → sdk-trace}/build/esnext/index.js +2 -1
- package/node_modules/@opentelemetry/sdk-trace/build/esnext/index.js.map +1 -0
- package/node_modules/@opentelemetry/sdk-trace/build/esnext/platform/browser/export/BatchSpanProcessor.d.ts +10 -0
- package/node_modules/@opentelemetry/{sdk-trace-base → sdk-trace}/build/esnext/platform/browser/export/BatchSpanProcessor.js +5 -5
- package/node_modules/@opentelemetry/sdk-trace/build/esnext/platform/browser/export/BatchSpanProcessor.js.map +1 -0
- package/node_modules/@opentelemetry/{sdk-trace-base/build/esm → sdk-trace/build/esnext}/platform/node/export/BatchSpanProcessor.d.ts +2 -2
- package/node_modules/@opentelemetry/{sdk-trace-base → sdk-trace}/build/esnext/platform/node/export/BatchSpanProcessor.js.map +1 -1
- package/node_modules/@opentelemetry/sdk-trace/build/esnext/sampler/AlwaysRecordSampler.d.ts +7 -0
- package/node_modules/@opentelemetry/sdk-trace/build/esnext/sampler/AlwaysRecordSampler.js +31 -0
- package/node_modules/@opentelemetry/sdk-trace/build/esnext/sampler/AlwaysRecordSampler.js.map +1 -0
- package/node_modules/@opentelemetry/sdk-trace/build/esnext/semconv.d.ts +103 -0
- package/node_modules/@opentelemetry/sdk-trace/build/esnext/semconv.js +112 -0
- package/node_modules/@opentelemetry/sdk-trace/build/esnext/semconv.js.map +1 -0
- package/node_modules/@opentelemetry/{sdk-trace-base/build/src → sdk-trace/build/esnext}/types.d.ts +32 -25
- package/node_modules/@opentelemetry/sdk-trace/build/esnext/types.js.map +1 -0
- package/node_modules/@opentelemetry/sdk-trace/build/esnext/version.d.ts +2 -0
- package/node_modules/@opentelemetry/sdk-trace/build/esnext/version.js +7 -0
- package/node_modules/@opentelemetry/sdk-trace/build/esnext/version.js.map +1 -0
- package/node_modules/@opentelemetry/{sdk-trace-base/build/esm → sdk-trace/build/src}/Tracer.d.ts +2 -9
- package/node_modules/@opentelemetry/{sdk-trace-base → sdk-trace}/build/src/Tracer.js +7 -23
- package/node_modules/@opentelemetry/sdk-trace/build/src/Tracer.js.map +1 -0
- package/node_modules/@opentelemetry/{sdk-trace-base/build/esnext/BasicTracerProvider.d.ts → sdk-trace/build/src/TracerProvider.d.ts} +8 -13
- package/node_modules/@opentelemetry/{sdk-trace-base/build/src/BasicTracerProvider.js → sdk-trace/build/src/TracerProvider.js} +41 -23
- package/node_modules/@opentelemetry/sdk-trace/build/src/TracerProvider.js.map +1 -0
- package/node_modules/@opentelemetry/{sdk-trace-base/build/esm → sdk-trace/build/src}/export/BatchSpanProcessorBase.d.ts +4 -4
- package/node_modules/@opentelemetry/{sdk-trace-base → sdk-trace}/build/src/export/BatchSpanProcessorBase.js +19 -18
- package/node_modules/@opentelemetry/sdk-trace/build/src/export/BatchSpanProcessorBase.js.map +1 -0
- package/node_modules/@opentelemetry/{sdk-trace-base/build/esnext → sdk-trace/build/src}/export/SimpleSpanProcessor.d.ts +3 -2
- package/node_modules/@opentelemetry/{sdk-trace-base → sdk-trace}/build/src/export/SimpleSpanProcessor.js +11 -2
- package/node_modules/@opentelemetry/sdk-trace/build/src/export/SimpleSpanProcessor.js.map +1 -0
- package/node_modules/@opentelemetry/sdk-trace/build/src/export/SpanProcessorMetrics.d.ts +18 -0
- package/node_modules/@opentelemetry/sdk-trace/build/src/export/SpanProcessorMetrics.js +68 -0
- package/node_modules/@opentelemetry/sdk-trace/build/src/export/SpanProcessorMetrics.js.map +1 -0
- package/node_modules/@opentelemetry/{sdk-trace-base/build/esm → sdk-trace/build/src}/index.d.ts +3 -2
- package/node_modules/@opentelemetry/{sdk-trace-base → sdk-trace}/build/src/index.js +5 -3
- package/node_modules/@opentelemetry/sdk-trace/build/src/index.js.map +1 -0
- package/node_modules/@opentelemetry/sdk-trace/build/src/platform/browser/export/BatchSpanProcessor.d.ts +10 -0
- package/node_modules/@opentelemetry/{sdk-trace-base → sdk-trace}/build/src/platform/browser/export/BatchSpanProcessor.js +5 -5
- package/node_modules/@opentelemetry/sdk-trace/build/src/platform/browser/export/BatchSpanProcessor.js.map +1 -0
- package/node_modules/@opentelemetry/{sdk-trace-base/build/esnext → sdk-trace/build/src}/platform/node/export/BatchSpanProcessor.d.ts +2 -2
- package/node_modules/@opentelemetry/{sdk-trace-base → sdk-trace}/build/src/platform/node/export/BatchSpanProcessor.js.map +1 -1
- package/node_modules/@opentelemetry/sdk-trace/build/src/sampler/AlwaysRecordSampler.d.ts +7 -0
- package/node_modules/@opentelemetry/sdk-trace/build/src/sampler/AlwaysRecordSampler.js +35 -0
- package/node_modules/@opentelemetry/sdk-trace/build/src/sampler/AlwaysRecordSampler.js.map +1 -0
- package/node_modules/@opentelemetry/sdk-trace/build/src/semconv.d.ts +103 -0
- package/node_modules/@opentelemetry/sdk-trace/build/src/semconv.js +115 -0
- package/node_modules/@opentelemetry/sdk-trace/build/src/semconv.js.map +1 -0
- package/node_modules/@opentelemetry/{sdk-trace-base/build/esnext → sdk-trace/build/src}/types.d.ts +32 -25
- package/node_modules/@opentelemetry/sdk-trace/build/src/types.js.map +1 -0
- package/node_modules/@opentelemetry/sdk-trace/build/src/version.d.ts +2 -0
- package/node_modules/@opentelemetry/sdk-trace/build/src/version.js +10 -0
- package/node_modules/@opentelemetry/sdk-trace/build/src/version.js.map +1 -0
- package/node_modules/@opentelemetry/sdk-trace/package.json +99 -0
- package/node_modules/@opentelemetry/sdk-trace-base/build/esm/BasicTracerProvider-shim.d.ts +11 -0
- package/node_modules/@opentelemetry/sdk-trace-base/build/esm/BasicTracerProvider-shim.js +21 -0
- package/node_modules/@opentelemetry/sdk-trace-base/build/esm/BasicTracerProvider-shim.js.map +1 -0
- package/node_modules/@opentelemetry/sdk-trace-base/build/esm/BatchSpanProcessor-shim.d.ts +11 -0
- package/node_modules/@opentelemetry/sdk-trace-base/build/esm/BatchSpanProcessor-shim.js +33 -0
- package/node_modules/@opentelemetry/sdk-trace-base/build/esm/BatchSpanProcessor-shim.js.map +1 -0
- package/node_modules/@opentelemetry/sdk-trace-base/build/esm/SimpleSpanProcessor-shim.d.ts +11 -0
- package/node_modules/@opentelemetry/sdk-trace-base/build/esm/SimpleSpanProcessor-shim.js +16 -0
- package/node_modules/@opentelemetry/sdk-trace-base/build/esm/SimpleSpanProcessor-shim.js.map +1 -0
- package/node_modules/@opentelemetry/sdk-trace-base/build/esm/config.d.ts +1 -1
- package/node_modules/@opentelemetry/sdk-trace-base/build/esm/config.js +1 -4
- package/node_modules/@opentelemetry/sdk-trace-base/build/esm/config.js.map +1 -1
- package/node_modules/@opentelemetry/sdk-trace-base/build/esm/index-shim.d.ts +7 -0
- package/node_modules/@opentelemetry/sdk-trace-base/build/esm/index-shim.js +9 -0
- package/node_modules/@opentelemetry/sdk-trace-base/build/esm/index-shim.js.map +1 -0
- package/node_modules/@opentelemetry/sdk-trace-base/build/esm/types-shim.d.ts +49 -0
- package/node_modules/@opentelemetry/sdk-trace-base/build/esm/types-shim.js +6 -0
- package/node_modules/@opentelemetry/sdk-trace-base/build/esm/types-shim.js.map +1 -0
- package/node_modules/@opentelemetry/sdk-trace-base/build/esm/utility.d.ts +1 -11
- package/node_modules/@opentelemetry/sdk-trace-base/build/esm/utility.js +0 -15
- package/node_modules/@opentelemetry/sdk-trace-base/build/esm/utility.js.map +1 -1
- package/node_modules/@opentelemetry/sdk-trace-base/build/esm/version.d.ts +1 -1
- package/node_modules/@opentelemetry/sdk-trace-base/build/esm/version.js +1 -1
- package/node_modules/@opentelemetry/sdk-trace-base/build/esm/version.js.map +1 -1
- package/node_modules/@opentelemetry/sdk-trace-base/build/esnext/BasicTracerProvider-shim.d.ts +11 -0
- package/node_modules/@opentelemetry/sdk-trace-base/build/esnext/BasicTracerProvider-shim.js +21 -0
- package/node_modules/@opentelemetry/sdk-trace-base/build/esnext/BasicTracerProvider-shim.js.map +1 -0
- package/node_modules/@opentelemetry/sdk-trace-base/build/esnext/BatchSpanProcessor-shim.d.ts +11 -0
- package/node_modules/@opentelemetry/sdk-trace-base/build/esnext/BatchSpanProcessor-shim.js +33 -0
- package/node_modules/@opentelemetry/sdk-trace-base/build/esnext/BatchSpanProcessor-shim.js.map +1 -0
- package/node_modules/@opentelemetry/sdk-trace-base/build/esnext/SimpleSpanProcessor-shim.d.ts +11 -0
- package/node_modules/@opentelemetry/sdk-trace-base/build/esnext/SimpleSpanProcessor-shim.js +16 -0
- package/node_modules/@opentelemetry/sdk-trace-base/build/esnext/SimpleSpanProcessor-shim.js.map +1 -0
- package/node_modules/@opentelemetry/sdk-trace-base/build/esnext/config.d.ts +1 -1
- package/node_modules/@opentelemetry/sdk-trace-base/build/esnext/config.js +1 -4
- package/node_modules/@opentelemetry/sdk-trace-base/build/esnext/config.js.map +1 -1
- package/node_modules/@opentelemetry/sdk-trace-base/build/esnext/index-shim.d.ts +7 -0
- package/node_modules/@opentelemetry/sdk-trace-base/build/esnext/index-shim.js +9 -0
- package/node_modules/@opentelemetry/sdk-trace-base/build/esnext/index-shim.js.map +1 -0
- package/node_modules/@opentelemetry/sdk-trace-base/build/esnext/types-shim.d.ts +49 -0
- package/node_modules/@opentelemetry/sdk-trace-base/build/esnext/types-shim.js +6 -0
- package/node_modules/@opentelemetry/sdk-trace-base/build/esnext/types-shim.js.map +1 -0
- package/node_modules/@opentelemetry/sdk-trace-base/build/esnext/utility.d.ts +1 -11
- package/node_modules/@opentelemetry/sdk-trace-base/build/esnext/utility.js +0 -15
- package/node_modules/@opentelemetry/sdk-trace-base/build/esnext/utility.js.map +1 -1
- package/node_modules/@opentelemetry/sdk-trace-base/build/esnext/version.d.ts +1 -1
- package/node_modules/@opentelemetry/sdk-trace-base/build/esnext/version.js +1 -1
- package/node_modules/@opentelemetry/sdk-trace-base/build/esnext/version.js.map +1 -1
- package/node_modules/@opentelemetry/sdk-trace-base/build/src/BasicTracerProvider-shim.d.ts +11 -0
- package/node_modules/@opentelemetry/sdk-trace-base/build/src/BasicTracerProvider-shim.js +25 -0
- package/node_modules/@opentelemetry/sdk-trace-base/build/src/BasicTracerProvider-shim.js.map +1 -0
- package/node_modules/@opentelemetry/sdk-trace-base/build/src/BatchSpanProcessor-shim.d.ts +11 -0
- package/node_modules/@opentelemetry/sdk-trace-base/build/src/BatchSpanProcessor-shim.js +37 -0
- package/node_modules/@opentelemetry/sdk-trace-base/build/src/BatchSpanProcessor-shim.js.map +1 -0
- package/node_modules/@opentelemetry/sdk-trace-base/build/src/SimpleSpanProcessor-shim.d.ts +11 -0
- package/node_modules/@opentelemetry/sdk-trace-base/build/src/SimpleSpanProcessor-shim.js +20 -0
- package/node_modules/@opentelemetry/sdk-trace-base/build/src/SimpleSpanProcessor-shim.js.map +1 -0
- package/node_modules/@opentelemetry/sdk-trace-base/build/src/config.d.ts +1 -1
- package/node_modules/@opentelemetry/sdk-trace-base/build/src/config.js +12 -15
- package/node_modules/@opentelemetry/sdk-trace-base/build/src/config.js.map +1 -1
- package/node_modules/@opentelemetry/sdk-trace-base/build/src/index-shim.d.ts +7 -0
- package/node_modules/@opentelemetry/sdk-trace-base/build/src/index-shim.js +24 -0
- package/node_modules/@opentelemetry/sdk-trace-base/build/src/index-shim.js.map +1 -0
- package/node_modules/@opentelemetry/sdk-trace-base/build/src/types-shim.d.ts +49 -0
- package/node_modules/@opentelemetry/sdk-trace-base/build/src/types-shim.js +7 -0
- package/node_modules/@opentelemetry/sdk-trace-base/build/src/types-shim.js.map +1 -0
- package/node_modules/@opentelemetry/sdk-trace-base/build/src/utility.d.ts +1 -11
- package/node_modules/@opentelemetry/sdk-trace-base/build/src/utility.js +1 -17
- package/node_modules/@opentelemetry/sdk-trace-base/build/src/utility.js.map +1 -1
- package/node_modules/@opentelemetry/sdk-trace-base/build/src/version.d.ts +1 -1
- package/node_modules/@opentelemetry/sdk-trace-base/build/src/version.js +1 -1
- package/node_modules/@opentelemetry/sdk-trace-base/build/src/version.js.map +1 -1
- package/node_modules/@opentelemetry/sdk-trace-base/package.json +12 -12
- package/node_modules/@opentelemetry/sdk-trace-node/build/src/version.d.ts +1 -1
- package/node_modules/@opentelemetry/sdk-trace-node/build/src/version.js +1 -1
- package/node_modules/@opentelemetry/sdk-trace-node/build/src/version.js.map +1 -1
- package/node_modules/@opentelemetry/sdk-trace-node/package.json +7 -7
- package/node_modules/@opentelemetry/semantic-conventions/build/esm/experimental_attributes.d.ts +271 -602
- package/node_modules/@opentelemetry/semantic-conventions/build/esm/experimental_attributes.js +271 -602
- package/node_modules/@opentelemetry/semantic-conventions/build/esm/experimental_attributes.js.map +1 -1
- package/node_modules/@opentelemetry/semantic-conventions/build/esm/experimental_events.d.ts +26 -0
- package/node_modules/@opentelemetry/semantic-conventions/build/esm/experimental_events.js +26 -0
- package/node_modules/@opentelemetry/semantic-conventions/build/esm/experimental_events.js.map +1 -1
- package/node_modules/@opentelemetry/semantic-conventions/build/esm/experimental_metrics.d.ts +176 -111
- package/node_modules/@opentelemetry/semantic-conventions/build/esm/experimental_metrics.js +176 -111
- package/node_modules/@opentelemetry/semantic-conventions/build/esm/experimental_metrics.js.map +1 -1
- package/node_modules/@opentelemetry/semantic-conventions/build/esm/stable_attributes.d.ts +511 -6
- package/node_modules/@opentelemetry/semantic-conventions/build/esm/stable_attributes.js +511 -6
- package/node_modules/@opentelemetry/semantic-conventions/build/esm/stable_attributes.js.map +1 -1
- package/node_modules/@opentelemetry/semantic-conventions/build/esm/version.d.ts +1 -1
- package/node_modules/@opentelemetry/semantic-conventions/build/esm/version.js +1 -1
- package/node_modules/@opentelemetry/semantic-conventions/build/esm/version.js.map +1 -1
- package/node_modules/@opentelemetry/semantic-conventions/build/esnext/experimental_attributes.d.ts +271 -602
- package/node_modules/@opentelemetry/semantic-conventions/build/esnext/experimental_attributes.js +271 -602
- package/node_modules/@opentelemetry/semantic-conventions/build/esnext/experimental_attributes.js.map +1 -1
- package/node_modules/@opentelemetry/semantic-conventions/build/esnext/experimental_events.d.ts +26 -0
- package/node_modules/@opentelemetry/semantic-conventions/build/esnext/experimental_events.js +26 -0
- package/node_modules/@opentelemetry/semantic-conventions/build/esnext/experimental_events.js.map +1 -1
- package/node_modules/@opentelemetry/semantic-conventions/build/esnext/experimental_metrics.d.ts +176 -111
- package/node_modules/@opentelemetry/semantic-conventions/build/esnext/experimental_metrics.js +176 -111
- package/node_modules/@opentelemetry/semantic-conventions/build/esnext/experimental_metrics.js.map +1 -1
- package/node_modules/@opentelemetry/semantic-conventions/build/esnext/stable_attributes.d.ts +511 -6
- package/node_modules/@opentelemetry/semantic-conventions/build/esnext/stable_attributes.js +511 -6
- package/node_modules/@opentelemetry/semantic-conventions/build/esnext/stable_attributes.js.map +1 -1
- package/node_modules/@opentelemetry/semantic-conventions/build/esnext/version.d.ts +1 -1
- package/node_modules/@opentelemetry/semantic-conventions/build/esnext/version.js +1 -1
- package/node_modules/@opentelemetry/semantic-conventions/build/esnext/version.js.map +1 -1
- package/node_modules/@opentelemetry/semantic-conventions/build/src/experimental_attributes.d.ts +271 -602
- package/node_modules/@opentelemetry/semantic-conventions/build/src/experimental_attributes.js +307 -655
- package/node_modules/@opentelemetry/semantic-conventions/build/src/experimental_attributes.js.map +1 -1
- package/node_modules/@opentelemetry/semantic-conventions/build/src/experimental_events.d.ts +26 -0
- package/node_modules/@opentelemetry/semantic-conventions/build/src/experimental_events.js +27 -1
- package/node_modules/@opentelemetry/semantic-conventions/build/src/experimental_events.js.map +1 -1
- package/node_modules/@opentelemetry/semantic-conventions/build/src/experimental_metrics.d.ts +176 -111
- package/node_modules/@opentelemetry/semantic-conventions/build/src/experimental_metrics.js +183 -118
- package/node_modules/@opentelemetry/semantic-conventions/build/src/experimental_metrics.js.map +1 -1
- package/node_modules/@opentelemetry/semantic-conventions/build/src/stable_attributes.d.ts +511 -6
- package/node_modules/@opentelemetry/semantic-conventions/build/src/stable_attributes.js +533 -9
- package/node_modules/@opentelemetry/semantic-conventions/build/src/stable_attributes.js.map +1 -1
- package/node_modules/@opentelemetry/semantic-conventions/build/src/version.d.ts +1 -1
- package/node_modules/@opentelemetry/semantic-conventions/build/src/version.js +1 -1
- package/node_modules/@opentelemetry/semantic-conventions/build/src/version.js.map +1 -1
- package/node_modules/@opentelemetry/semantic-conventions/package.json +4 -4
- package/node_modules/@protobufjs/utf8/CHANGELOG.md +8 -0
- package/node_modules/@protobufjs/utf8/index.js +29 -18
- package/node_modules/@protobufjs/utf8/package.json +2 -2
- package/node_modules/@protobufjs/utf8/tests/index.js +5 -0
- package/node_modules/@types/node/README.md +1 -1
- package/node_modules/@types/node/fs/promises.d.ts +16 -6
- package/node_modules/@types/node/package.json +2 -2
- package/node_modules/es-module-lexer/LICENSE +10 -0
- package/node_modules/es-module-lexer/README.md +403 -0
- package/node_modules/es-module-lexer/dist/lexer.asm.js +2 -0
- package/node_modules/es-module-lexer/dist/lexer.cjs +1 -0
- package/node_modules/es-module-lexer/dist/lexer.js +2 -0
- package/node_modules/es-module-lexer/dist/lexer.minimal.asm.js +2 -0
- package/node_modules/es-module-lexer/dist/lexer.minimal.cjs +1 -0
- package/node_modules/es-module-lexer/dist/lexer.minimal.js +2 -0
- package/node_modules/es-module-lexer/lexer.js +1009 -0
- package/node_modules/es-module-lexer/package.json +67 -0
- package/node_modules/es-module-lexer/types/lexer.d.ts +227 -0
- package/node_modules/es-module-lexer/types/lexer.minimal.d.ts +46 -0
- package/node_modules/import-in-the-middle/CHANGELOG.md +37 -0
- package/node_modules/import-in-the-middle/README.md +63 -7
- package/node_modules/import-in-the-middle/create-hook.mjs +192 -158
- package/node_modules/import-in-the-middle/lib/get-esm-exports.mjs +128 -93
- package/node_modules/import-in-the-middle/lib/get-exports.mjs +55 -138
- package/node_modules/import-in-the-middle/lib/register.js +136 -0
- package/node_modules/import-in-the-middle/package.json +2 -3
- package/node_modules/import-in-the-middle/register-hooks.d.ts +11 -2
- package/node_modules/import-in-the-middle/register-hooks.mjs +2 -1
- package/node_modules/import-in-the-middle/supports-sync-hooks.mjs +47 -0
- package/node_modules/protobufjs/dist/light/protobuf.js +145 -188
- package/node_modules/protobufjs/dist/light/protobuf.js.map +1 -1
- package/node_modules/protobufjs/dist/light/protobuf.min.js +3 -3
- package/node_modules/protobufjs/dist/light/protobuf.min.js.map +1 -1
- package/node_modules/protobufjs/dist/minimal/protobuf.js +33 -76
- package/node_modules/protobufjs/dist/minimal/protobuf.js.map +1 -1
- package/node_modules/protobufjs/dist/minimal/protobuf.min.js +3 -3
- package/node_modules/protobufjs/dist/minimal/protobuf.min.js.map +1 -1
- package/node_modules/protobufjs/dist/protobuf.js +168 -208
- package/node_modules/protobufjs/dist/protobuf.js.map +1 -1
- package/node_modules/protobufjs/dist/protobuf.min.js +3 -3
- package/node_modules/protobufjs/dist/protobuf.min.js.map +1 -1
- package/node_modules/protobufjs/index.d.ts +0 -8
- package/node_modules/protobufjs/package.json +2 -3
- package/node_modules/protobufjs/src/parse.js +3 -0
- package/node_modules/protobufjs/src/util/minimal.js +0 -3
- package/npm-shrinkwrap.json +239 -249
- package/package.json +14 -14
- package/node_modules/@opentelemetry/sdk-trace-base/build/esm/BasicTracerProvider.js.map +0 -1
- package/node_modules/@opentelemetry/sdk-trace-base/build/esm/Tracer.js.map +0 -1
- package/node_modules/@opentelemetry/sdk-trace-base/build/esm/export/BatchSpanProcessorBase.js.map +0 -1
- package/node_modules/@opentelemetry/sdk-trace-base/build/esm/export/SimpleSpanProcessor.js.map +0 -1
- package/node_modules/@opentelemetry/sdk-trace-base/build/esm/index.js.map +0 -1
- package/node_modules/@opentelemetry/sdk-trace-base/build/esm/platform/browser/export/BatchSpanProcessor.d.ts +0 -11
- package/node_modules/@opentelemetry/sdk-trace-base/build/esm/platform/browser/export/BatchSpanProcessor.js.map +0 -1
- package/node_modules/@opentelemetry/sdk-trace-base/build/esm/semconv.d.ts +0 -27
- package/node_modules/@opentelemetry/sdk-trace-base/build/esm/semconv.js +0 -36
- package/node_modules/@opentelemetry/sdk-trace-base/build/esm/semconv.js.map +0 -1
- package/node_modules/@opentelemetry/sdk-trace-base/build/esm/types.js.map +0 -1
- package/node_modules/@opentelemetry/sdk-trace-base/build/esnext/BasicTracerProvider.js.map +0 -1
- package/node_modules/@opentelemetry/sdk-trace-base/build/esnext/Tracer.js.map +0 -1
- package/node_modules/@opentelemetry/sdk-trace-base/build/esnext/export/BatchSpanProcessorBase.js.map +0 -1
- package/node_modules/@opentelemetry/sdk-trace-base/build/esnext/export/SimpleSpanProcessor.js.map +0 -1
- package/node_modules/@opentelemetry/sdk-trace-base/build/esnext/index.js.map +0 -1
- package/node_modules/@opentelemetry/sdk-trace-base/build/esnext/platform/browser/export/BatchSpanProcessor.d.ts +0 -11
- package/node_modules/@opentelemetry/sdk-trace-base/build/esnext/platform/browser/export/BatchSpanProcessor.js.map +0 -1
- package/node_modules/@opentelemetry/sdk-trace-base/build/esnext/semconv.d.ts +0 -27
- package/node_modules/@opentelemetry/sdk-trace-base/build/esnext/semconv.js +0 -36
- package/node_modules/@opentelemetry/sdk-trace-base/build/esnext/semconv.js.map +0 -1
- package/node_modules/@opentelemetry/sdk-trace-base/build/esnext/types.js.map +0 -1
- package/node_modules/@opentelemetry/sdk-trace-base/build/src/BasicTracerProvider.js.map +0 -1
- package/node_modules/@opentelemetry/sdk-trace-base/build/src/Tracer.js.map +0 -1
- package/node_modules/@opentelemetry/sdk-trace-base/build/src/export/BatchSpanProcessorBase.js.map +0 -1
- package/node_modules/@opentelemetry/sdk-trace-base/build/src/export/SimpleSpanProcessor.js.map +0 -1
- package/node_modules/@opentelemetry/sdk-trace-base/build/src/index.js.map +0 -1
- package/node_modules/@opentelemetry/sdk-trace-base/build/src/platform/browser/export/BatchSpanProcessor.d.ts +0 -11
- package/node_modules/@opentelemetry/sdk-trace-base/build/src/platform/browser/export/BatchSpanProcessor.js.map +0 -1
- package/node_modules/@opentelemetry/sdk-trace-base/build/src/semconv.d.ts +0 -27
- package/node_modules/@opentelemetry/sdk-trace-base/build/src/semconv.js +0 -39
- package/node_modules/@opentelemetry/sdk-trace-base/build/src/semconv.js.map +0 -1
- package/node_modules/@opentelemetry/sdk-trace-base/build/src/types.js.map +0 -1
- package/node_modules/@protobufjs/inquire/CHANGELOG.md +0 -8
- package/node_modules/@protobufjs/inquire/LICENSE +0 -26
- package/node_modules/@protobufjs/inquire/README.md +0 -13
- package/node_modules/@protobufjs/inquire/index.d.ts +0 -10
- package/node_modules/@protobufjs/inquire/index.js +0 -38
- package/node_modules/@protobufjs/inquire/package.json +0 -21
- package/node_modules/@protobufjs/inquire/tests/data/array.js +0 -1
- package/node_modules/@protobufjs/inquire/tests/data/emptyArray.js +0 -1
- package/node_modules/@protobufjs/inquire/tests/data/emptyObject.js +0 -1
- package/node_modules/@protobufjs/inquire/tests/data/object.js +0 -1
- package/node_modules/@protobufjs/inquire/tests/index.js +0 -20
- package/node_modules/acorn/CHANGELOG.md +0 -986
- package/node_modules/acorn/LICENSE +0 -21
- package/node_modules/acorn/README.md +0 -304
- package/node_modules/acorn/bin/acorn +0 -4
- package/node_modules/acorn/dist/acorn.d.mts +0 -889
- package/node_modules/acorn/dist/acorn.d.ts +0 -889
- package/node_modules/acorn/dist/acorn.js +0 -6333
- package/node_modules/acorn/dist/acorn.mjs +0 -6304
- package/node_modules/acorn/dist/bin.js +0 -90
- package/node_modules/acorn/package.json +0 -50
- package/node_modules/acorn-import-attributes/LICENSE +0 -21
- package/node_modules/acorn-import-attributes/README.md +0 -21
- package/node_modules/acorn-import-attributes/lib/index.js +0 -286
- package/node_modules/acorn-import-attributes/lib/index.mjs +0 -291
- package/node_modules/acorn-import-attributes/package.json +0 -49
- package/node_modules/acorn-import-attributes/src/index.js +0 -291
- /package/node_modules/@opentelemetry/{sdk-trace-base → sdk-trace}/build/esm/IdGenerator.d.ts +0 -0
- /package/node_modules/@opentelemetry/{sdk-trace-base → sdk-trace}/build/esm/IdGenerator.js +0 -0
- /package/node_modules/@opentelemetry/{sdk-trace-base → sdk-trace}/build/esm/IdGenerator.js.map +0 -0
- /package/node_modules/@opentelemetry/{sdk-trace-base → sdk-trace}/build/esm/MultiSpanProcessor.d.ts +0 -0
- /package/node_modules/@opentelemetry/{sdk-trace-base → sdk-trace}/build/esm/MultiSpanProcessor.js +0 -0
- /package/node_modules/@opentelemetry/{sdk-trace-base → sdk-trace}/build/esm/MultiSpanProcessor.js.map +0 -0
- /package/node_modules/@opentelemetry/{sdk-trace-base → sdk-trace}/build/esm/Sampler.d.ts +0 -0
- /package/node_modules/@opentelemetry/{sdk-trace-base → sdk-trace}/build/esm/Sampler.js +0 -0
- /package/node_modules/@opentelemetry/{sdk-trace-base → sdk-trace}/build/esm/Sampler.js.map +0 -0
- /package/node_modules/@opentelemetry/{sdk-trace-base → sdk-trace}/build/esm/Span.d.ts +0 -0
- /package/node_modules/@opentelemetry/{sdk-trace-base → sdk-trace}/build/esm/Span.js +0 -0
- /package/node_modules/@opentelemetry/{sdk-trace-base → sdk-trace}/build/esm/Span.js.map +0 -0
- /package/node_modules/@opentelemetry/{sdk-trace-base → sdk-trace}/build/esm/SpanProcessor.d.ts +0 -0
- /package/node_modules/@opentelemetry/{sdk-trace-base → sdk-trace}/build/esm/SpanProcessor.js +0 -0
- /package/node_modules/@opentelemetry/{sdk-trace-base → sdk-trace}/build/esm/SpanProcessor.js.map +0 -0
- /package/node_modules/@opentelemetry/{sdk-trace-base → sdk-trace}/build/esm/TimedEvent.d.ts +0 -0
- /package/node_modules/@opentelemetry/{sdk-trace-base → sdk-trace}/build/esm/TimedEvent.js +0 -0
- /package/node_modules/@opentelemetry/{sdk-trace-base → sdk-trace}/build/esm/TimedEvent.js.map +0 -0
- /package/node_modules/@opentelemetry/{sdk-trace-base → sdk-trace}/build/esm/TracerMetrics.d.ts +0 -0
- /package/node_modules/@opentelemetry/{sdk-trace-base → sdk-trace}/build/esm/TracerMetrics.js +0 -0
- /package/node_modules/@opentelemetry/{sdk-trace-base → sdk-trace}/build/esm/TracerMetrics.js.map +0 -0
- /package/node_modules/@opentelemetry/{sdk-trace-base → sdk-trace}/build/esm/enums.d.ts +0 -0
- /package/node_modules/@opentelemetry/{sdk-trace-base → sdk-trace}/build/esm/enums.js +0 -0
- /package/node_modules/@opentelemetry/{sdk-trace-base → sdk-trace}/build/esm/enums.js.map +0 -0
- /package/node_modules/@opentelemetry/{sdk-trace-base → sdk-trace}/build/esm/export/ConsoleSpanExporter.d.ts +0 -0
- /package/node_modules/@opentelemetry/{sdk-trace-base → sdk-trace}/build/esm/export/ConsoleSpanExporter.js +0 -0
- /package/node_modules/@opentelemetry/{sdk-trace-base → sdk-trace}/build/esm/export/ConsoleSpanExporter.js.map +0 -0
- /package/node_modules/@opentelemetry/{sdk-trace-base → sdk-trace}/build/esm/export/InMemorySpanExporter.d.ts +0 -0
- /package/node_modules/@opentelemetry/{sdk-trace-base → sdk-trace}/build/esm/export/InMemorySpanExporter.js +0 -0
- /package/node_modules/@opentelemetry/{sdk-trace-base → sdk-trace}/build/esm/export/InMemorySpanExporter.js.map +0 -0
- /package/node_modules/@opentelemetry/{sdk-trace-base → sdk-trace}/build/esm/export/NoopSpanProcessor.d.ts +0 -0
- /package/node_modules/@opentelemetry/{sdk-trace-base → sdk-trace}/build/esm/export/NoopSpanProcessor.js +0 -0
- /package/node_modules/@opentelemetry/{sdk-trace-base → sdk-trace}/build/esm/export/NoopSpanProcessor.js.map +0 -0
- /package/node_modules/@opentelemetry/{sdk-trace-base → sdk-trace}/build/esm/export/ReadableSpan.d.ts +0 -0
- /package/node_modules/@opentelemetry/{sdk-trace-base → sdk-trace}/build/esm/export/ReadableSpan.js +0 -0
- /package/node_modules/@opentelemetry/{sdk-trace-base → sdk-trace}/build/esm/export/ReadableSpan.js.map +0 -0
- /package/node_modules/@opentelemetry/{sdk-trace-base → sdk-trace}/build/esm/export/SpanExporter.d.ts +0 -0
- /package/node_modules/@opentelemetry/{sdk-trace-base → sdk-trace}/build/esm/export/SpanExporter.js +0 -0
- /package/node_modules/@opentelemetry/{sdk-trace-base → sdk-trace}/build/esm/export/SpanExporter.js.map +0 -0
- /package/node_modules/@opentelemetry/{sdk-trace-base → sdk-trace}/build/esm/inspect.d.ts +0 -0
- /package/node_modules/@opentelemetry/{sdk-trace-base → sdk-trace}/build/esm/inspect.js +0 -0
- /package/node_modules/@opentelemetry/{sdk-trace-base → sdk-trace}/build/esm/inspect.js.map +0 -0
- /package/node_modules/@opentelemetry/{sdk-trace-base → sdk-trace}/build/esm/platform/browser/RandomIdGenerator.d.ts +0 -0
- /package/node_modules/@opentelemetry/{sdk-trace-base → sdk-trace}/build/esm/platform/browser/RandomIdGenerator.js +0 -0
- /package/node_modules/@opentelemetry/{sdk-trace-base → sdk-trace}/build/esm/platform/browser/RandomIdGenerator.js.map +0 -0
- /package/node_modules/@opentelemetry/{sdk-trace-base → sdk-trace}/build/esm/platform/browser/index.d.ts +0 -0
- /package/node_modules/@opentelemetry/{sdk-trace-base → sdk-trace}/build/esm/platform/browser/index.js +0 -0
- /package/node_modules/@opentelemetry/{sdk-trace-base → sdk-trace}/build/esm/platform/browser/index.js.map +0 -0
- /package/node_modules/@opentelemetry/{sdk-trace-base → sdk-trace}/build/esm/platform/index.d.ts +0 -0
- /package/node_modules/@opentelemetry/{sdk-trace-base → sdk-trace}/build/esm/platform/index.js +0 -0
- /package/node_modules/@opentelemetry/{sdk-trace-base → sdk-trace}/build/esm/platform/index.js.map +0 -0
- /package/node_modules/@opentelemetry/{sdk-trace-base → sdk-trace}/build/esm/platform/node/RandomIdGenerator.d.ts +0 -0
- /package/node_modules/@opentelemetry/{sdk-trace-base → sdk-trace}/build/esm/platform/node/RandomIdGenerator.js +0 -0
- /package/node_modules/@opentelemetry/{sdk-trace-base → sdk-trace}/build/esm/platform/node/RandomIdGenerator.js.map +0 -0
- /package/node_modules/@opentelemetry/{sdk-trace-base → sdk-trace}/build/esm/platform/node/export/BatchSpanProcessor.js +0 -0
- /package/node_modules/@opentelemetry/{sdk-trace-base → sdk-trace}/build/esm/platform/node/index.d.ts +0 -0
- /package/node_modules/@opentelemetry/{sdk-trace-base → sdk-trace}/build/esm/platform/node/index.js +0 -0
- /package/node_modules/@opentelemetry/{sdk-trace-base → sdk-trace}/build/esm/platform/node/index.js.map +0 -0
- /package/node_modules/@opentelemetry/{sdk-trace-base → sdk-trace}/build/esm/sampler/AlwaysOffSampler.d.ts +0 -0
- /package/node_modules/@opentelemetry/{sdk-trace-base → sdk-trace}/build/esm/sampler/AlwaysOffSampler.js +0 -0
- /package/node_modules/@opentelemetry/{sdk-trace-base → sdk-trace}/build/esm/sampler/AlwaysOffSampler.js.map +0 -0
- /package/node_modules/@opentelemetry/{sdk-trace-base → sdk-trace}/build/esm/sampler/AlwaysOnSampler.d.ts +0 -0
- /package/node_modules/@opentelemetry/{sdk-trace-base → sdk-trace}/build/esm/sampler/AlwaysOnSampler.js +0 -0
- /package/node_modules/@opentelemetry/{sdk-trace-base → sdk-trace}/build/esm/sampler/AlwaysOnSampler.js.map +0 -0
- /package/node_modules/@opentelemetry/{sdk-trace-base → sdk-trace}/build/esm/sampler/ParentBasedSampler.d.ts +0 -0
- /package/node_modules/@opentelemetry/{sdk-trace-base → sdk-trace}/build/esm/sampler/ParentBasedSampler.js +0 -0
- /package/node_modules/@opentelemetry/{sdk-trace-base → sdk-trace}/build/esm/sampler/ParentBasedSampler.js.map +0 -0
- /package/node_modules/@opentelemetry/{sdk-trace-base → sdk-trace}/build/esm/sampler/TraceIdRatioBasedSampler.d.ts +0 -0
- /package/node_modules/@opentelemetry/{sdk-trace-base → sdk-trace}/build/esm/sampler/TraceIdRatioBasedSampler.js +0 -0
- /package/node_modules/@opentelemetry/{sdk-trace-base → sdk-trace}/build/esm/sampler/TraceIdRatioBasedSampler.js.map +0 -0
- /package/node_modules/@opentelemetry/{sdk-trace-base → sdk-trace}/build/esm/types.js +0 -0
- /package/node_modules/@opentelemetry/{sdk-trace-base → sdk-trace}/build/esnext/IdGenerator.d.ts +0 -0
- /package/node_modules/@opentelemetry/{sdk-trace-base → sdk-trace}/build/esnext/IdGenerator.js +0 -0
- /package/node_modules/@opentelemetry/{sdk-trace-base → sdk-trace}/build/esnext/IdGenerator.js.map +0 -0
- /package/node_modules/@opentelemetry/{sdk-trace-base → sdk-trace}/build/esnext/MultiSpanProcessor.d.ts +0 -0
- /package/node_modules/@opentelemetry/{sdk-trace-base → sdk-trace}/build/esnext/MultiSpanProcessor.js +0 -0
- /package/node_modules/@opentelemetry/{sdk-trace-base → sdk-trace}/build/esnext/MultiSpanProcessor.js.map +0 -0
- /package/node_modules/@opentelemetry/{sdk-trace-base → sdk-trace}/build/esnext/Sampler.d.ts +0 -0
- /package/node_modules/@opentelemetry/{sdk-trace-base → sdk-trace}/build/esnext/Sampler.js +0 -0
- /package/node_modules/@opentelemetry/{sdk-trace-base → sdk-trace}/build/esnext/Sampler.js.map +0 -0
- /package/node_modules/@opentelemetry/{sdk-trace-base → sdk-trace}/build/esnext/Span.d.ts +0 -0
- /package/node_modules/@opentelemetry/{sdk-trace-base → sdk-trace}/build/esnext/Span.js +0 -0
- /package/node_modules/@opentelemetry/{sdk-trace-base → sdk-trace}/build/esnext/Span.js.map +0 -0
- /package/node_modules/@opentelemetry/{sdk-trace-base → sdk-trace}/build/esnext/SpanProcessor.d.ts +0 -0
- /package/node_modules/@opentelemetry/{sdk-trace-base → sdk-trace}/build/esnext/SpanProcessor.js +0 -0
- /package/node_modules/@opentelemetry/{sdk-trace-base → sdk-trace}/build/esnext/SpanProcessor.js.map +0 -0
- /package/node_modules/@opentelemetry/{sdk-trace-base → sdk-trace}/build/esnext/TimedEvent.d.ts +0 -0
- /package/node_modules/@opentelemetry/{sdk-trace-base → sdk-trace}/build/esnext/TimedEvent.js +0 -0
- /package/node_modules/@opentelemetry/{sdk-trace-base → sdk-trace}/build/esnext/TimedEvent.js.map +0 -0
- /package/node_modules/@opentelemetry/{sdk-trace-base → sdk-trace}/build/esnext/TracerMetrics.d.ts +0 -0
- /package/node_modules/@opentelemetry/{sdk-trace-base → sdk-trace}/build/esnext/TracerMetrics.js +0 -0
- /package/node_modules/@opentelemetry/{sdk-trace-base → sdk-trace}/build/esnext/TracerMetrics.js.map +0 -0
- /package/node_modules/@opentelemetry/{sdk-trace-base → sdk-trace}/build/esnext/enums.d.ts +0 -0
- /package/node_modules/@opentelemetry/{sdk-trace-base → sdk-trace}/build/esnext/enums.js +0 -0
- /package/node_modules/@opentelemetry/{sdk-trace-base → sdk-trace}/build/esnext/enums.js.map +0 -0
- /package/node_modules/@opentelemetry/{sdk-trace-base → sdk-trace}/build/esnext/export/ConsoleSpanExporter.d.ts +0 -0
- /package/node_modules/@opentelemetry/{sdk-trace-base → sdk-trace}/build/esnext/export/ConsoleSpanExporter.js +0 -0
- /package/node_modules/@opentelemetry/{sdk-trace-base → sdk-trace}/build/esnext/export/ConsoleSpanExporter.js.map +0 -0
- /package/node_modules/@opentelemetry/{sdk-trace-base → sdk-trace}/build/esnext/export/InMemorySpanExporter.d.ts +0 -0
- /package/node_modules/@opentelemetry/{sdk-trace-base → sdk-trace}/build/esnext/export/InMemorySpanExporter.js +0 -0
- /package/node_modules/@opentelemetry/{sdk-trace-base → sdk-trace}/build/esnext/export/InMemorySpanExporter.js.map +0 -0
- /package/node_modules/@opentelemetry/{sdk-trace-base → sdk-trace}/build/esnext/export/NoopSpanProcessor.d.ts +0 -0
- /package/node_modules/@opentelemetry/{sdk-trace-base → sdk-trace}/build/esnext/export/NoopSpanProcessor.js +0 -0
- /package/node_modules/@opentelemetry/{sdk-trace-base → sdk-trace}/build/esnext/export/NoopSpanProcessor.js.map +0 -0
- /package/node_modules/@opentelemetry/{sdk-trace-base → sdk-trace}/build/esnext/export/ReadableSpan.d.ts +0 -0
- /package/node_modules/@opentelemetry/{sdk-trace-base → sdk-trace}/build/esnext/export/ReadableSpan.js +0 -0
- /package/node_modules/@opentelemetry/{sdk-trace-base → sdk-trace}/build/esnext/export/ReadableSpan.js.map +0 -0
- /package/node_modules/@opentelemetry/{sdk-trace-base → sdk-trace}/build/esnext/export/SpanExporter.d.ts +0 -0
- /package/node_modules/@opentelemetry/{sdk-trace-base → sdk-trace}/build/esnext/export/SpanExporter.js +0 -0
- /package/node_modules/@opentelemetry/{sdk-trace-base → sdk-trace}/build/esnext/export/SpanExporter.js.map +0 -0
- /package/node_modules/@opentelemetry/{sdk-trace-base → sdk-trace}/build/esnext/inspect.d.ts +0 -0
- /package/node_modules/@opentelemetry/{sdk-trace-base → sdk-trace}/build/esnext/inspect.js +0 -0
- /package/node_modules/@opentelemetry/{sdk-trace-base → sdk-trace}/build/esnext/inspect.js.map +0 -0
- /package/node_modules/@opentelemetry/{sdk-trace-base → sdk-trace}/build/esnext/platform/browser/RandomIdGenerator.d.ts +0 -0
- /package/node_modules/@opentelemetry/{sdk-trace-base → sdk-trace}/build/esnext/platform/browser/RandomIdGenerator.js +0 -0
- /package/node_modules/@opentelemetry/{sdk-trace-base → sdk-trace}/build/esnext/platform/browser/RandomIdGenerator.js.map +0 -0
- /package/node_modules/@opentelemetry/{sdk-trace-base → sdk-trace}/build/esnext/platform/browser/index.d.ts +0 -0
- /package/node_modules/@opentelemetry/{sdk-trace-base → sdk-trace}/build/esnext/platform/browser/index.js +0 -0
- /package/node_modules/@opentelemetry/{sdk-trace-base → sdk-trace}/build/esnext/platform/browser/index.js.map +0 -0
- /package/node_modules/@opentelemetry/{sdk-trace-base → sdk-trace}/build/esnext/platform/index.d.ts +0 -0
- /package/node_modules/@opentelemetry/{sdk-trace-base → sdk-trace}/build/esnext/platform/index.js +0 -0
- /package/node_modules/@opentelemetry/{sdk-trace-base → sdk-trace}/build/esnext/platform/index.js.map +0 -0
- /package/node_modules/@opentelemetry/{sdk-trace-base → sdk-trace}/build/esnext/platform/node/RandomIdGenerator.d.ts +0 -0
- /package/node_modules/@opentelemetry/{sdk-trace-base → sdk-trace}/build/esnext/platform/node/RandomIdGenerator.js +0 -0
- /package/node_modules/@opentelemetry/{sdk-trace-base → sdk-trace}/build/esnext/platform/node/RandomIdGenerator.js.map +0 -0
- /package/node_modules/@opentelemetry/{sdk-trace-base → sdk-trace}/build/esnext/platform/node/export/BatchSpanProcessor.js +0 -0
- /package/node_modules/@opentelemetry/{sdk-trace-base → sdk-trace}/build/esnext/platform/node/index.d.ts +0 -0
- /package/node_modules/@opentelemetry/{sdk-trace-base → sdk-trace}/build/esnext/platform/node/index.js +0 -0
- /package/node_modules/@opentelemetry/{sdk-trace-base → sdk-trace}/build/esnext/platform/node/index.js.map +0 -0
- /package/node_modules/@opentelemetry/{sdk-trace-base → sdk-trace}/build/esnext/sampler/AlwaysOffSampler.d.ts +0 -0
- /package/node_modules/@opentelemetry/{sdk-trace-base → sdk-trace}/build/esnext/sampler/AlwaysOffSampler.js +0 -0
- /package/node_modules/@opentelemetry/{sdk-trace-base → sdk-trace}/build/esnext/sampler/AlwaysOffSampler.js.map +0 -0
- /package/node_modules/@opentelemetry/{sdk-trace-base → sdk-trace}/build/esnext/sampler/AlwaysOnSampler.d.ts +0 -0
- /package/node_modules/@opentelemetry/{sdk-trace-base → sdk-trace}/build/esnext/sampler/AlwaysOnSampler.js +0 -0
- /package/node_modules/@opentelemetry/{sdk-trace-base → sdk-trace}/build/esnext/sampler/AlwaysOnSampler.js.map +0 -0
- /package/node_modules/@opentelemetry/{sdk-trace-base → sdk-trace}/build/esnext/sampler/ParentBasedSampler.d.ts +0 -0
- /package/node_modules/@opentelemetry/{sdk-trace-base → sdk-trace}/build/esnext/sampler/ParentBasedSampler.js +0 -0
- /package/node_modules/@opentelemetry/{sdk-trace-base → sdk-trace}/build/esnext/sampler/ParentBasedSampler.js.map +0 -0
- /package/node_modules/@opentelemetry/{sdk-trace-base → sdk-trace}/build/esnext/sampler/TraceIdRatioBasedSampler.d.ts +0 -0
- /package/node_modules/@opentelemetry/{sdk-trace-base → sdk-trace}/build/esnext/sampler/TraceIdRatioBasedSampler.js +0 -0
- /package/node_modules/@opentelemetry/{sdk-trace-base → sdk-trace}/build/esnext/sampler/TraceIdRatioBasedSampler.js.map +0 -0
- /package/node_modules/@opentelemetry/{sdk-trace-base → sdk-trace}/build/esnext/types.js +0 -0
- /package/node_modules/@opentelemetry/{sdk-trace-base → sdk-trace}/build/src/IdGenerator.d.ts +0 -0
- /package/node_modules/@opentelemetry/{sdk-trace-base → sdk-trace}/build/src/IdGenerator.js +0 -0
- /package/node_modules/@opentelemetry/{sdk-trace-base → sdk-trace}/build/src/IdGenerator.js.map +0 -0
- /package/node_modules/@opentelemetry/{sdk-trace-base → sdk-trace}/build/src/MultiSpanProcessor.d.ts +0 -0
- /package/node_modules/@opentelemetry/{sdk-trace-base → sdk-trace}/build/src/MultiSpanProcessor.js +0 -0
- /package/node_modules/@opentelemetry/{sdk-trace-base → sdk-trace}/build/src/MultiSpanProcessor.js.map +0 -0
- /package/node_modules/@opentelemetry/{sdk-trace-base → sdk-trace}/build/src/Sampler.d.ts +0 -0
- /package/node_modules/@opentelemetry/{sdk-trace-base → sdk-trace}/build/src/Sampler.js +0 -0
- /package/node_modules/@opentelemetry/{sdk-trace-base → sdk-trace}/build/src/Sampler.js.map +0 -0
- /package/node_modules/@opentelemetry/{sdk-trace-base → sdk-trace}/build/src/Span.d.ts +0 -0
- /package/node_modules/@opentelemetry/{sdk-trace-base → sdk-trace}/build/src/Span.js +0 -0
- /package/node_modules/@opentelemetry/{sdk-trace-base → sdk-trace}/build/src/Span.js.map +0 -0
- /package/node_modules/@opentelemetry/{sdk-trace-base → sdk-trace}/build/src/SpanProcessor.d.ts +0 -0
- /package/node_modules/@opentelemetry/{sdk-trace-base → sdk-trace}/build/src/SpanProcessor.js +0 -0
- /package/node_modules/@opentelemetry/{sdk-trace-base → sdk-trace}/build/src/SpanProcessor.js.map +0 -0
- /package/node_modules/@opentelemetry/{sdk-trace-base → sdk-trace}/build/src/TimedEvent.d.ts +0 -0
- /package/node_modules/@opentelemetry/{sdk-trace-base → sdk-trace}/build/src/TimedEvent.js +0 -0
- /package/node_modules/@opentelemetry/{sdk-trace-base → sdk-trace}/build/src/TimedEvent.js.map +0 -0
- /package/node_modules/@opentelemetry/{sdk-trace-base → sdk-trace}/build/src/TracerMetrics.d.ts +0 -0
- /package/node_modules/@opentelemetry/{sdk-trace-base → sdk-trace}/build/src/TracerMetrics.js +0 -0
- /package/node_modules/@opentelemetry/{sdk-trace-base → sdk-trace}/build/src/TracerMetrics.js.map +0 -0
- /package/node_modules/@opentelemetry/{sdk-trace-base → sdk-trace}/build/src/enums.d.ts +0 -0
- /package/node_modules/@opentelemetry/{sdk-trace-base → sdk-trace}/build/src/enums.js +0 -0
- /package/node_modules/@opentelemetry/{sdk-trace-base → sdk-trace}/build/src/enums.js.map +0 -0
- /package/node_modules/@opentelemetry/{sdk-trace-base → sdk-trace}/build/src/export/ConsoleSpanExporter.d.ts +0 -0
- /package/node_modules/@opentelemetry/{sdk-trace-base → sdk-trace}/build/src/export/ConsoleSpanExporter.js +0 -0
- /package/node_modules/@opentelemetry/{sdk-trace-base → sdk-trace}/build/src/export/ConsoleSpanExporter.js.map +0 -0
- /package/node_modules/@opentelemetry/{sdk-trace-base → sdk-trace}/build/src/export/InMemorySpanExporter.d.ts +0 -0
- /package/node_modules/@opentelemetry/{sdk-trace-base → sdk-trace}/build/src/export/InMemorySpanExporter.js +0 -0
- /package/node_modules/@opentelemetry/{sdk-trace-base → sdk-trace}/build/src/export/InMemorySpanExporter.js.map +0 -0
- /package/node_modules/@opentelemetry/{sdk-trace-base → sdk-trace}/build/src/export/NoopSpanProcessor.d.ts +0 -0
- /package/node_modules/@opentelemetry/{sdk-trace-base → sdk-trace}/build/src/export/NoopSpanProcessor.js +0 -0
- /package/node_modules/@opentelemetry/{sdk-trace-base → sdk-trace}/build/src/export/NoopSpanProcessor.js.map +0 -0
- /package/node_modules/@opentelemetry/{sdk-trace-base → sdk-trace}/build/src/export/ReadableSpan.d.ts +0 -0
- /package/node_modules/@opentelemetry/{sdk-trace-base → sdk-trace}/build/src/export/ReadableSpan.js +0 -0
- /package/node_modules/@opentelemetry/{sdk-trace-base → sdk-trace}/build/src/export/ReadableSpan.js.map +0 -0
- /package/node_modules/@opentelemetry/{sdk-trace-base → sdk-trace}/build/src/export/SpanExporter.d.ts +0 -0
- /package/node_modules/@opentelemetry/{sdk-trace-base → sdk-trace}/build/src/export/SpanExporter.js +0 -0
- /package/node_modules/@opentelemetry/{sdk-trace-base → sdk-trace}/build/src/export/SpanExporter.js.map +0 -0
- /package/node_modules/@opentelemetry/{sdk-trace-base → sdk-trace}/build/src/inspect.d.ts +0 -0
- /package/node_modules/@opentelemetry/{sdk-trace-base → sdk-trace}/build/src/inspect.js +0 -0
- /package/node_modules/@opentelemetry/{sdk-trace-base → sdk-trace}/build/src/inspect.js.map +0 -0
- /package/node_modules/@opentelemetry/{sdk-trace-base → sdk-trace}/build/src/platform/browser/RandomIdGenerator.d.ts +0 -0
- /package/node_modules/@opentelemetry/{sdk-trace-base → sdk-trace}/build/src/platform/browser/RandomIdGenerator.js +0 -0
- /package/node_modules/@opentelemetry/{sdk-trace-base → sdk-trace}/build/src/platform/browser/RandomIdGenerator.js.map +0 -0
- /package/node_modules/@opentelemetry/{sdk-trace-base → sdk-trace}/build/src/platform/browser/index.d.ts +0 -0
- /package/node_modules/@opentelemetry/{sdk-trace-base → sdk-trace}/build/src/platform/browser/index.js +0 -0
- /package/node_modules/@opentelemetry/{sdk-trace-base → sdk-trace}/build/src/platform/browser/index.js.map +0 -0
- /package/node_modules/@opentelemetry/{sdk-trace-base → sdk-trace}/build/src/platform/index.d.ts +0 -0
- /package/node_modules/@opentelemetry/{sdk-trace-base → sdk-trace}/build/src/platform/index.js +0 -0
- /package/node_modules/@opentelemetry/{sdk-trace-base → sdk-trace}/build/src/platform/index.js.map +0 -0
- /package/node_modules/@opentelemetry/{sdk-trace-base → sdk-trace}/build/src/platform/node/RandomIdGenerator.d.ts +0 -0
- /package/node_modules/@opentelemetry/{sdk-trace-base → sdk-trace}/build/src/platform/node/RandomIdGenerator.js +0 -0
- /package/node_modules/@opentelemetry/{sdk-trace-base → sdk-trace}/build/src/platform/node/RandomIdGenerator.js.map +0 -0
- /package/node_modules/@opentelemetry/{sdk-trace-base → sdk-trace}/build/src/platform/node/export/BatchSpanProcessor.js +0 -0
- /package/node_modules/@opentelemetry/{sdk-trace-base → sdk-trace}/build/src/platform/node/index.d.ts +0 -0
- /package/node_modules/@opentelemetry/{sdk-trace-base → sdk-trace}/build/src/platform/node/index.js +0 -0
- /package/node_modules/@opentelemetry/{sdk-trace-base → sdk-trace}/build/src/platform/node/index.js.map +0 -0
- /package/node_modules/@opentelemetry/{sdk-trace-base → sdk-trace}/build/src/sampler/AlwaysOffSampler.d.ts +0 -0
- /package/node_modules/@opentelemetry/{sdk-trace-base → sdk-trace}/build/src/sampler/AlwaysOffSampler.js +0 -0
- /package/node_modules/@opentelemetry/{sdk-trace-base → sdk-trace}/build/src/sampler/AlwaysOffSampler.js.map +0 -0
- /package/node_modules/@opentelemetry/{sdk-trace-base → sdk-trace}/build/src/sampler/AlwaysOnSampler.d.ts +0 -0
- /package/node_modules/@opentelemetry/{sdk-trace-base → sdk-trace}/build/src/sampler/AlwaysOnSampler.js +0 -0
- /package/node_modules/@opentelemetry/{sdk-trace-base → sdk-trace}/build/src/sampler/AlwaysOnSampler.js.map +0 -0
- /package/node_modules/@opentelemetry/{sdk-trace-base → sdk-trace}/build/src/sampler/ParentBasedSampler.d.ts +0 -0
- /package/node_modules/@opentelemetry/{sdk-trace-base → sdk-trace}/build/src/sampler/ParentBasedSampler.js +0 -0
- /package/node_modules/@opentelemetry/{sdk-trace-base → sdk-trace}/build/src/sampler/ParentBasedSampler.js.map +0 -0
- /package/node_modules/@opentelemetry/{sdk-trace-base → sdk-trace}/build/src/sampler/TraceIdRatioBasedSampler.d.ts +0 -0
- /package/node_modules/@opentelemetry/{sdk-trace-base → sdk-trace}/build/src/sampler/TraceIdRatioBasedSampler.js +0 -0
- /package/node_modules/@opentelemetry/{sdk-trace-base → sdk-trace}/build/src/sampler/TraceIdRatioBasedSampler.js.map +0 -0
- /package/node_modules/@opentelemetry/{sdk-trace-base → sdk-trace}/build/src/types.js +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openclaw/diagnostics-otel",
|
|
3
|
-
"version": "2026.7.2-beta.
|
|
3
|
+
"version": "2026.7.2-beta.4",
|
|
4
4
|
"description": "OpenClaw diagnostics OpenTelemetry exporter for metrics, traces, and logs.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -9,16 +9,16 @@
|
|
|
9
9
|
"type": "module",
|
|
10
10
|
"dependencies": {
|
|
11
11
|
"@opentelemetry/api": "1.9.1",
|
|
12
|
-
"@opentelemetry/api-logs": "0.
|
|
13
|
-
"@opentelemetry/exporter-logs-otlp-proto": "0.
|
|
14
|
-
"@opentelemetry/exporter-metrics-otlp-proto": "0.
|
|
15
|
-
"@opentelemetry/exporter-trace-otlp-proto": "0.
|
|
16
|
-
"@opentelemetry/resources": "2.
|
|
17
|
-
"@opentelemetry/sdk-logs": "0.
|
|
18
|
-
"@opentelemetry/sdk-metrics": "2.
|
|
19
|
-
"@opentelemetry/sdk-node": "0.
|
|
20
|
-
"@opentelemetry/sdk-trace-base": "2.
|
|
21
|
-
"@opentelemetry/semantic-conventions": "1.
|
|
12
|
+
"@opentelemetry/api-logs": "0.220.0",
|
|
13
|
+
"@opentelemetry/exporter-logs-otlp-proto": "0.220.0",
|
|
14
|
+
"@opentelemetry/exporter-metrics-otlp-proto": "0.220.0",
|
|
15
|
+
"@opentelemetry/exporter-trace-otlp-proto": "0.220.0",
|
|
16
|
+
"@opentelemetry/resources": "2.9.0",
|
|
17
|
+
"@opentelemetry/sdk-logs": "0.220.0",
|
|
18
|
+
"@opentelemetry/sdk-metrics": "2.9.0",
|
|
19
|
+
"@opentelemetry/sdk-node": "0.220.0",
|
|
20
|
+
"@opentelemetry/sdk-trace-base": "2.9.0",
|
|
21
|
+
"@opentelemetry/semantic-conventions": "1.43.0"
|
|
22
22
|
},
|
|
23
23
|
"openclaw": {
|
|
24
24
|
"extensions": [
|
|
@@ -31,10 +31,10 @@
|
|
|
31
31
|
"minHostVersion": ">=2026.4.25"
|
|
32
32
|
},
|
|
33
33
|
"compat": {
|
|
34
|
-
"pluginApi": ">=2026.7.2-beta.
|
|
34
|
+
"pluginApi": ">=2026.7.2-beta.4"
|
|
35
35
|
},
|
|
36
36
|
"build": {
|
|
37
|
-
"openclawVersion": "2026.7.2-beta.
|
|
37
|
+
"openclawVersion": "2026.7.2-beta.4"
|
|
38
38
|
},
|
|
39
39
|
"release": {
|
|
40
40
|
"publishToClawHub": true,
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
"README.md"
|
|
52
52
|
],
|
|
53
53
|
"peerDependencies": {
|
|
54
|
-
"openclaw": ">=2026.7.2-beta.
|
|
54
|
+
"openclaw": ">=2026.7.2-beta.4"
|
|
55
55
|
},
|
|
56
56
|
"peerDependenciesMeta": {
|
|
57
57
|
"openclaw": {
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"BasicTracerProvider.js","sourceRoot":"","sources":["../../src/BasicTracerProvider.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AAE5C,OAAO,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAE3D,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAC7C,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAE1D,OAAO,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAC;AAE9C,OAAO,EACL,aAAa,EACb,aAAa,EACb,yBAAyB,GAC1B,MAAM,WAAW,CAAC;AAEnB,MAAM,CAAN,IAAY,eAKX;AALD,WAAY,eAAe;IACzB,6DAAU,CAAA;IACV,2DAAS,CAAA;IACT,uDAAO,CAAA;IACP,iEAAY,CAAA;AACd,CAAC,EALW,eAAe,KAAf,eAAe,QAK1B;AAED;;GAEG;AACH,MAAM,OAAO,mBAAmB;IACb,OAAO,CAAe;IACtB,QAAQ,GAAwB,IAAI,GAAG,EAAE,CAAC;IAC1C,SAAS,CAAW;IACpB,oBAAoB,CAAqB;IAE1D,YAAY,SAAuB,EA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ACD,KAAK,CAAC,KAAK,CAAC,EAAE,CAAC,MAAM,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;QACrC,CAAC,CAAC,CAAC;IACL,CAAC;IAED,QAAQ;QACN,OAAO,IAAI,CAAC,oBAAoB,CAAC,QAAQ,EAAE,CAAC;IAC9C,CAAC;IAED,CAAC,aAAa,CAAC,CACb,KAAa,EACb,OAA0C,EAC1C,OAA8B;QAE9B,MAAM,UAAU,GAAG,IAAI,CAAC,oBAAoB,CAC1C,iBAAiB,CACC,CAAC;QACrB,MAAM,OAAO,GAAG;YACd,QAAQ,EAAE,EAAE,UAAU,EAAE,yBAAyB,CAAC,IAAI,CAAC,SAAS,CAAC,EAAE;YACnE,OAAO,EAAE,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,IAAI,EAAE,CAAC;YACzC,cAAc,EAAE,UAAU,CAAC,GAAG,CAC5B,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,WAAW,EAAE,IAAI,IAAI,eAAe,CAC5C;SACF,CAAC;QACF,OAAO,aAAa,CAClB,qBAAqB,EACrB,OAAO,EACP,KAAK,EACL,OAAO,EACP,OAAO,CACR,CAAC;IACJ,CAAC;CACF","sourcesContent":["/*\n * Copyright The OpenTelemetry Authors\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport type { TracerProvider, Tracer as ApiTracer } from '@opentelemetry/api';\nimport { merge } from '@opentelemetry/core';\nimport type { Resource } from '@opentelemetry/resources';\nimport { defaultResource } from '@opentelemetry/resources';\nimport type { SpanProcessor } from './SpanProcessor';\nimport { Tracer } from './Tracer';\nimport { loadDefaultConfig } from './config';\nimport { MultiSpanProcessor } from './MultiSpanProcessor';\nimport type { TracerConfig } from './types';\nimport { reconfigureLimits } from './utility';\nimport type { InspectFn, InspectStylizeOptions } from './inspect';\nimport {\n formatInspect,\n inspectCustom,\n settledResourceAttributes,\n} from './inspect';\n\nexport enum ForceFlushState {\n 'resolved',\n 'timeout',\n 'error',\n 'unresolved',\n}\n\n/**\n * This class represents a basic tracer provider which platform libraries can extend\n */\nexport class BasicTracerProvider implements TracerProvider {\n private readonly _config: TracerConfig;\n private readonly _tracers: Map<string, Tracer> = new Map();\n private readonly _resource: Resource;\n private readonly _activeSpanProcessor: MultiSpanProcessor;\n\n constructor(config: TracerConfig = {}) {\n const mergedConfig = merge(\n {},\n loadDefaultConfig(),\n reconfigureLimits(config)\n );\n this._resource = mergedConfig.resource ?? defaultResource();\n\n this._config = Object.assign({}, mergedConfig, {\n resource: this._resource,\n });\n\n const spanProcessors: SpanProcessor[] = [];\n\n if (config.spanProcessors?.length) {\n spanProcessors.push(...config.spanProcessors);\n }\n\n this._activeSpanProcessor = new MultiSpanProcessor(spanProcessors);\n }\n\n getTracer(\n name: string,\n version?: string,\n options?: { schemaUrl?: string }\n ): ApiTracer {\n const key = `${name}@${version || ''}:${options?.schemaUrl || ''}`;\n if (!this._tracers.has(key)) {\n this._tracers.set(\n key,\n new Tracer(\n { name, version, schemaUrl: options?.schemaUrl },\n this._config,\n this._resource,\n this._activeSpanProcessor\n )\n );\n }\n\n return this._tracers.get(key)!;\n }\n\n forceFlush(): Promise<void> {\n const timeout = this._config.forceFlushTimeoutMillis;\n const promises = this._activeSpanProcessor['_spanProcessors'].map(\n (spanProcessor: SpanProcessor) => {\n return new Promise(resolve => {\n let state: ForceFlushState;\n const timeoutInterval = setTimeout(() => {\n resolve(\n new Error(\n `Span processor did not completed within timeout period of ${timeout} ms`\n )\n );\n state = ForceFlushState.timeout;\n }, timeout);\n\n spanProcessor\n .forceFlush()\n .then(() => {\n clearTimeout(timeoutInterval);\n if (state !== ForceFlushState.timeout) {\n state = ForceFlushState.resolved;\n resolve(state);\n }\n })\n .catch(error => {\n clearTimeout(timeoutInterval);\n state = ForceFlushState.error;\n resolve(error);\n });\n });\n }\n );\n\n return new Promise<void>((resolve, reject) => {\n Promise.all(promises)\n .then(results => {\n const errors = results.filter(\n result => result !== ForceFlushState.resolved\n );\n if (errors.length > 0) {\n reject(errors);\n } else {\n resolve();\n }\n })\n .catch(error => reject([error]));\n });\n }\n\n shutdown(): Promise<void> {\n return this._activeSpanProcessor.shutdown();\n }\n\n [inspectCustom](\n depth: number,\n options: InspectStylizeOptions | undefined,\n inspect: InspectFn | undefined\n ): unknown {\n const processors = this._activeSpanProcessor[\n '_spanProcessors'\n ] as SpanProcessor[];\n const payload = {\n resource: { attributes: settledResourceAttributes(this._resource) },\n tracers: Array.from(this._tracers.keys()),\n spanProcessors: processors.map(\n p => p.constructor?.name ?? 'SpanProcessor'\n ),\n };\n return formatInspect(\n 'BasicTracerProvider',\n payload,\n depth,\n options,\n inspect\n );\n }\n}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Tracer.js","sourceRoot":"","sources":["../../src/Tracer.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,GAAG,MAAM,oBAAoB,CAAC;AAE1C,OAAO,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAC9E,OAAO,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAC;AAElC,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AAIxC,OAAO,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAE/C,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEpC,OAAO,EACL,aAAa,EACb,aAAa,EACb,yBAAyB,GAC1B,MAAM,WAAW,CAAC;AAEnB;;GAEG;AACH,MAAM,OAAO,MAAM;IACA,QAAQ,CAAU;IAClB,cAAc,CAAgB;IAC9B,WAAW,CAAa;IACxB,YAAY,CAAc;IAClC,oBAAoB,CAAuB;IAEnC,SAAS,CAAW;IACpB,cAAc,CAAgB;IAC9B,cAAc,CAAgB;IAE/C;;OAEG;IACH,YACE,oBAA0C,EAC1C,MAAoB,EACpB,QAAkB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,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;IACnE,CAAC;CACF","sourcesContent":["/*\n * Copyright The OpenTelemetry Authors\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport * as api from '@opentelemetry/api';\nimport type { InstrumentationScope } from '@opentelemetry/core';\nimport { sanitizeAttributes, isTracingSuppressed } from '@opentelemetry/core';\nimport { SpanImpl } from './Span';\nimport type { GeneralLimits, SpanLimits, TracerConfig } from './types';\nimport { mergeConfig } from './utility';\nimport type { SpanProcessor } from './SpanProcessor';\nimport type { Sampler } from './Sampler';\nimport type { IdGenerator } from './IdGenerator';\nimport { RandomIdGenerator } from './platform';\nimport type { Resource } from '@opentelemetry/resources';\nimport { TracerMetrics } from './TracerMetrics';\nimport { VERSION } from './version';\nimport type { InspectFn, InspectStylizeOptions } from './inspect';\nimport {\n formatInspect,\n inspectCustom,\n settledResourceAttributes,\n} from './inspect';\n\n/**\n * This class represents a basic tracer.\n */\nexport class Tracer implements api.Tracer {\n private readonly _sampler: Sampler;\n private readonly _generalLimits: GeneralLimits;\n private readonly _spanLimits: SpanLimits;\n private readonly _idGenerator: IdGenerator;\n readonly instrumentationScope: InstrumentationScope;\n\n private readonly _resource: Resource;\n private readonly _spanProcessor: SpanProcessor;\n private readonly _tracerMetrics: TracerMetrics;\n\n /**\n * Constructs a new Tracer instance.\n */\n constructor(\n instrumentationScope: InstrumentationScope,\n config: TracerConfig,\n resource: Resource,\n spanProcessor: SpanProcessor\n ) {\n const localConfig = mergeConfig(config);\n this._sampler = localConfig.sampler;\n this._generalLimits = localConfig.generalLimits;\n this._spanLimits = localConfig.spanLimits;\n this._idGenerator = config.idGenerator || new RandomIdGenerator();\n this._resource = resource;\n this._spanProcessor = spanProcessor;\n this.instrumentationScope = instrumentationScope;\n\n const meter = localConfig.meterProvider\n ? localConfig.meterProvider.getMeter('@opentelemetry/sdk-trace', VERSION)\n : api.createNoopMeter();\n this._tracerMetrics = new TracerMetrics(meter);\n }\n\n /**\n * Starts a new Span or returns the default NoopSpan based on the sampling\n * decision.\n */\n startSpan(\n name: string,\n options: api.SpanOptions = {},\n context = api.context.active()\n ): api.Span {\n // remove span from context in case a root span is requested via options\n if (options.root) {\n context = api.trace.deleteSpan(context);\n }\n const parentSpan = api.trace.getSpan(context);\n\n if (isTracingSuppressed(context)) {\n api.diag.debug('Instrumentation suppressed, returning Noop Span');\n const nonRecordingSpan = api.trace.wrapSpanContext(\n api.INVALID_SPAN_CONTEXT\n );\n return nonRecordingSpan;\n }\n\n const parentSpanContext = parentSpan?.spanContext();\n const spanId = this._idGenerator.generateSpanId();\n let validParentSpanContext;\n let traceId;\n let traceState;\n if (\n !parentSpanContext ||\n !api.trace.isSpanContextValid(parentSpanContext)\n ) {\n // New root span.\n traceId = this._idGenerator.generateTraceId();\n } else {\n // New child span.\n traceId = parentSpanContext.traceId;\n traceState = parentSpanContext.traceState;\n validParentSpanContext = parentSpanContext;\n }\n\n const spanKind = options.kind ?? api.SpanKind.INTERNAL;\n const links = (options.links ?? []).map(link => {\n return {\n context: link.context,\n attributes: sanitizeAttributes(link.attributes),\n };\n });\n const attributes = sanitizeAttributes(options.attributes);\n // make sampling decision\n const samplingResult = this._sampler.shouldSample(\n context,\n traceId,\n name,\n spanKind,\n attributes,\n links\n );\n\n const recordEndMetrics = this._tracerMetrics.startSpan(\n parentSpanContext,\n samplingResult.decision\n );\n\n traceState = samplingResult.traceState ?? traceState;\n\n const traceFlags =\n samplingResult.decision === api.SamplingDecision.RECORD_AND_SAMPLED\n ? api.TraceFlags.SAMPLED\n : api.TraceFlags.NONE;\n const spanContext = { traceId, spanId, traceFlags, traceState };\n if (samplingResult.decision === api.SamplingDecision.NOT_RECORD) {\n api.diag.debug(\n 'Recording is off, propagating context in a non-recording span'\n );\n const nonRecordingSpan = api.trace.wrapSpanContext(spanContext);\n return nonRecordingSpan;\n }\n\n // Set initial span attributes. The attributes object may have been mutated\n // by the sampler, so we sanitize the merged attributes before setting them.\n const initAttributes = sanitizeAttributes(\n Object.assign(attributes, samplingResult.attributes)\n );\n\n const span = new SpanImpl({\n resource: this._resource,\n scope: this.instrumentationScope,\n context,\n spanContext,\n name,\n kind: spanKind,\n links,\n parentSpanContext: validParentSpanContext,\n attributes: initAttributes,\n startTime: options.startTime,\n spanProcessor: this._spanProcessor,\n spanLimits: this._spanLimits,\n recordEndMetrics,\n });\n return span;\n }\n\n /**\n * Starts a new {@link Span} and calls the given function passing it the\n * created span as first argument.\n * Additionally the new span gets set in context and this context is activated\n * for the duration of the function call.\n *\n * **Important**: The callback function is responsible for calling `span.end()`\n * to finish the span. Unlike some other OpenTelemetry implementations, the span\n * is NOT automatically ended when the callback returns. If `span.end()` is not\n * called, the span will never be exported and will be silently lost.\n *\n * @param name The name of the span\n * @param [options] SpanOptions used for span creation\n * @param [context] Context to use to extract parent\n * @param fn function called in the context of the span and receives the newly created span as an argument\n * @returns return value of fn\n * @example\n * const something = tracer.startActiveSpan('op', span => {\n * try {\n * do some work\n * span.setStatus({code: SpanStatusCode.OK});\n * return something;\n * } catch (err) {\n * span.setStatus({\n * code: SpanStatusCode.ERROR,\n * message: err.message,\n * });\n * throw err;\n * } finally {\n * span.end();\n * }\n * });\n * @example\n * const span = tracer.startActiveSpan('op', span => {\n * try {\n * do some work\n * return span;\n * } catch (err) {\n * span.setStatus({\n * code: SpanStatusCode.ERROR,\n * message: err.message,\n * });\n * throw err;\n * }\n * });\n * do some more work\n * span.end();\n */\n startActiveSpan<F extends (span: api.Span) => ReturnType<F>>(\n name: string,\n fn: F\n ): ReturnType<F>;\n startActiveSpan<F extends (span: api.Span) => ReturnType<F>>(\n name: string,\n opts: api.SpanOptions,\n fn: F\n ): ReturnType<F>;\n startActiveSpan<F extends (span: api.Span) => ReturnType<F>>(\n name: string,\n opts: api.SpanOptions,\n ctx: api.Context,\n fn: F\n ): ReturnType<F>;\n startActiveSpan<F extends (span: api.Span) => ReturnType<F>>(\n name: string,\n arg2?: F | api.SpanOptions,\n arg3?: F | api.Context,\n arg4?: F\n ): ReturnType<F> | undefined {\n let opts: api.SpanOptions | undefined;\n let ctx: api.Context | undefined;\n let fn: F;\n\n if (arguments.length < 2) {\n return;\n } else if (arguments.length === 2) {\n fn = arg2 as F;\n } else if (arguments.length === 3) {\n opts = arg2 as api.SpanOptions | undefined;\n fn = arg3 as F;\n } else {\n opts = arg2 as api.SpanOptions | undefined;\n ctx = arg3 as api.Context | undefined;\n fn = arg4 as F;\n }\n\n const parentContext = ctx ?? api.context.active();\n const span = this.startSpan(name, opts, parentContext);\n const contextWithSpanSet = api.trace.setSpan(parentContext, span);\n\n return api.context.with(contextWithSpanSet, fn, undefined, span);\n }\n\n /** Returns the active {@link GeneralLimits}. */\n getGeneralLimits(): GeneralLimits {\n return this._generalLimits;\n }\n\n /** Returns the active {@link SpanLimits}. */\n getSpanLimits(): SpanLimits {\n return this._spanLimits;\n }\n\n [inspectCustom](\n depth: number,\n options: InspectStylizeOptions | undefined,\n inspect: InspectFn | undefined\n ): unknown {\n const payload = {\n instrumentationScope: this.instrumentationScope,\n resource: { attributes: settledResourceAttributes(this._resource) },\n spanLimits: this._spanLimits,\n generalLimits: this._generalLimits,\n };\n return formatInspect('Tracer', payload, depth, options, inspect);\n }\n}\n"]}
|
package/node_modules/@opentelemetry/sdk-trace-base/build/esm/export/BatchSpanProcessorBase.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"BatchSpanProcessorBase.js","sourceRoot":"","sources":["../../../src/export/BatchSpanProcessorBase.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAC/D,OAAO,EACL,cAAc,EACd,gBAAgB,EAChB,gBAAgB,EAChB,kBAAkB,EAClB,eAAe,GAChB,MAAM,qBAAqB,CAAC;AAO7B;;;GAGG;AACH,MAAM,OAAgB,sBAAsB;IAGzB,mBAAmB,CAAS;IAC5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AAE;YAC1D,OAAO,KAAK,EAAE,CAAC;SAChB;QACD,IAAI,IAAI,CAAC,MAAM,KAAK,SAAS;YAAE,OAAO;QACtC,IAAI,CAAC,MAAM,GAAG,UAAU,CAAC,GAAG,EAAE,CAAC,KAAK,EAAE,EAAE,IAAI,CAAC,qBAAqB,CAAC,CAAC;QAEpE,iEAAiE;QACjE,IAAI,OAAO,IAAI,CAAC,MAAM,KAAK,QAAQ,EAAE;YACnC,IAAI,CAAC,MAAM,CAAC,KAAK,EAAE,CAAC;SACrB;IACH,CAAC;IAEO,WAAW;QACjB,IAAI,IAAI,CAAC,MAAM,KAAK,SAAS,EAAE;YAC7B,YAAY,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;YAC1B,IAAI,CAAC,MAAM,GAAG,SAAS,CAAC;SACzB;IACH,CAAC;CAGF","sourcesContent":["/*\n * Copyright The OpenTelemetry Authors\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport type { Context } from '@opentelemetry/api';\nimport { context, diag, TraceFlags } from '@opentelemetry/api';\nimport {\n BindOnceFuture,\n ExportResultCode,\n getNumberFromEnv,\n globalErrorHandler,\n suppressTracing,\n} from '@opentelemetry/core';\nimport type { Span } from '../Span';\nimport type { SpanProcessor } from '../SpanProcessor';\nimport type { BufferConfig } from '../types';\nimport type { ReadableSpan } from './ReadableSpan';\nimport type { SpanExporter } from './SpanExporter';\n\n/**\n * Implementation of the {@link SpanProcessor} that batches spans exported by\n * the SDK then pushes them to the exporter pipeline.\n */\nexport abstract class BatchSpanProcessorBase<T extends BufferConfig>\n implements SpanProcessor\n{\n private readonly _maxExportBatchSize: number;\n private readonly _maxQueueSize: number;\n private readonly _scheduledDelayMillis: number;\n private readonly _exportTimeoutMillis: number;\n private readonly _exporter: SpanExporter;\n\n private _isExporting = false;\n private _finishedSpans: ReadableSpan[] = [];\n private _timer: NodeJS.Timeout | number | undefined;\n private _shutdownOnce: BindOnceFuture<void>;\n private _droppedSpansCount: number = 0;\n\n constructor(exporter: SpanExporter, config?: T) {\n this._exporter = exporter;\n this._maxExportBatchSize =\n typeof config?.maxExportBatchSize === 'number'\n ? config.maxExportBatchSize\n : (getNumberFromEnv('OTEL_BSP_MAX_EXPORT_BATCH_SIZE') ?? 512);\n this._maxQueueSize =\n typeof config?.maxQueueSize === 'number'\n ? config.maxQueueSize\n : (getNumberFromEnv('OTEL_BSP_MAX_QUEUE_SIZE') ?? 2048);\n this._scheduledDelayMillis =\n typeof config?.scheduledDelayMillis === 'number'\n ? config.scheduledDelayMillis\n : (getNumberFromEnv('OTEL_BSP_SCHEDULE_DELAY') ?? 5000);\n this._exportTimeoutMillis =\n typeof config?.exportTimeoutMillis === 'number'\n ? config.exportTimeoutMillis\n : (getNumberFromEnv('OTEL_BSP_EXPORT_TIMEOUT') ?? 30000);\n\n this._shutdownOnce = new BindOnceFuture(this._shutdown, this);\n\n if (this._maxExportBatchSize > this._maxQueueSize) {\n diag.warn(\n 'BatchSpanProcessor: maxExportBatchSize must be smaller or equal to maxQueueSize, setting maxExportBatchSize to match maxQueueSize'\n );\n this._maxExportBatchSize = this._maxQueueSize;\n }\n }\n\n forceFlush(): Promise<void> {\n if (this._shutdownOnce.isCalled) {\n return this._shutdownOnce.promise;\n }\n return this._flushAll();\n }\n\n // does nothing.\n onStart(_span: Span, _parentContext: Context): void {}\n\n onEnd(span: ReadableSpan): void {\n if (this._shutdownOnce.isCalled) {\n return;\n }\n\n if ((span.spanContext().traceFlags & TraceFlags.SAMPLED) === 0) {\n return;\n }\n\n this._addToBuffer(span);\n }\n\n shutdown(): Promise<void> {\n return this._shutdownOnce.call();\n }\n\n private _shutdown() {\n return Promise.resolve()\n .then(() => {\n return this.onShutdown();\n })\n .then(() => {\n return this._flushAll();\n })\n .then(() => {\n return this._exporter.shutdown();\n });\n }\n\n /** Add a span in the buffer. */\n private _addToBuffer(span: ReadableSpan) {\n if (this._finishedSpans.length >= this._maxQueueSize) {\n // limit reached, drop span\n\n if (this._droppedSpansCount === 0) {\n diag.debug('maxQueueSize reached, dropping spans');\n }\n this._droppedSpansCount++;\n\n return;\n }\n\n if (this._droppedSpansCount > 0) {\n // some spans were dropped, log once with count of spans dropped\n diag.warn(\n `Dropped ${this._droppedSpansCount} spans because maxQueueSize reached`\n );\n this._droppedSpansCount = 0;\n }\n\n this._finishedSpans.push(span);\n this._maybeStartTimer();\n }\n\n /**\n * Send all spans to the exporter respecting the batch size limit\n * This function is used only on forceFlush or shutdown,\n * for all other cases _flush should be used\n * */\n private _flushAll(): Promise<void> {\n return new Promise((resolve, reject) => {\n const promises = [];\n // calculate number of batches\n const count = Math.ceil(\n this._finishedSpans.length / this._maxExportBatchSize\n );\n for (let i = 0, j = count; i < j; i++) {\n promises.push(this._flushOneBatch());\n }\n Promise.all(promises)\n .then(() => {\n resolve();\n })\n .catch(reject);\n });\n }\n\n private _flushOneBatch(): Promise<void> {\n this._clearTimer();\n if (this._finishedSpans.length === 0) {\n return Promise.resolve();\n }\n return new Promise((resolve, reject) => {\n const timer = setTimeout(() => {\n // don't wait anymore for export, this way the next batch can start\n reject(new Error('Timeout'));\n }, this._exportTimeoutMillis);\n // prevent downstream exporter calls from generating spans\n context.with(suppressTracing(context.active()), () => {\n // Reset the finished spans buffer here because the next invocations of the _flush method\n // could pass the same finished spans to the exporter if the buffer is cleared\n // outside the execution of this callback.\n let spans: ReadableSpan[];\n if (this._finishedSpans.length <= this._maxExportBatchSize) {\n spans = this._finishedSpans;\n this._finishedSpans = [];\n } else {\n spans = this._finishedSpans.splice(0, this._maxExportBatchSize);\n }\n\n const doExport = () =>\n this._exporter.export(spans, result => {\n clearTimeout(timer);\n if (result.code === ExportResultCode.SUCCESS) {\n resolve();\n } else {\n reject(\n result.error ??\n new Error('BatchSpanProcessor: span export failed')\n );\n }\n });\n\n let pendingResources: Array<Promise<void>> | null = null;\n for (let i = 0, len = spans.length; i < len; i++) {\n const span = spans[i];\n if (\n span.resource.asyncAttributesPending &&\n span.resource.waitForAsyncAttributes\n ) {\n pendingResources ??= [];\n pendingResources.push(span.resource.waitForAsyncAttributes());\n }\n }\n\n // Avoid scheduling a promise to make the behavior more predictable and easier to test\n if (pendingResources === null) {\n doExport();\n } else {\n Promise.all(pendingResources).then(doExport, err => {\n globalErrorHandler(err);\n reject(err);\n });\n }\n });\n });\n }\n\n private _maybeStartTimer() {\n if (this._isExporting) return;\n const flush = () => {\n this._isExporting = true;\n this._flushOneBatch()\n .finally(() => {\n this._isExporting = false;\n if (this._finishedSpans.length > 0) {\n this._clearTimer();\n this._maybeStartTimer();\n }\n })\n .catch(e => {\n this._isExporting = false;\n globalErrorHandler(e);\n });\n };\n // we only wait if the queue doesn't have enough elements yet\n if (this._finishedSpans.length >= this._maxExportBatchSize) {\n return flush();\n }\n if (this._timer !== undefined) return;\n this._timer = setTimeout(() => flush(), this._scheduledDelayMillis);\n\n // depending on runtime, this may be a 'number' or NodeJS.Timeout\n if (typeof this._timer !== 'number') {\n this._timer.unref();\n }\n }\n\n private _clearTimer() {\n if (this._timer !== undefined) {\n clearTimeout(this._timer);\n this._timer = undefined;\n }\n }\n\n protected abstract onShutdown(): void;\n}\n"]}
|
package/node_modules/@opentelemetry/sdk-trace-base/build/esm/export/SimpleSpanProcessor.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SimpleSpanProcessor.js","sourceRoot":"","sources":["../../../src/export/SimpleSpanProcessor.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAChD,OAAO,EACL,QAAQ,EACR,gBAAgB,EAChB,kBAAkB,EAClB,cAAc,GACf,MAAM,qBAAqB,CAAC;AAM7B;;;;;;;GAOG;AACH,MAAM,OAAO,mBAAmB;IACb,SAAS,CAAe;IACjC,aAAa,CAAuB;IACpC,eAAe,CAAqB;IAE5C,YAAY,QAAsB;QAChC,IAAI,CAAC,SAAS,GAAG,QAAQ,CAAC;QAC1B,IAAI,CAAC,aAAa,GAAG,IAAI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AC,CAAC,CAAC;QAC9D,IAAI,MAAM,CAAC,IAAI,KAAK,gBAAgB,CAAC,OAAO,EAAE;YAC5C,MAAM,CACJ,MAAM,CAAC,KAAK;gBACZ,IAAI,KAAK,CAAC,mDAAmD,MAAM,GAAG,CAAC,CACxE,CAAC;SACH;IACH,CAAC;IAED,QAAQ;QACN,OAAO,IAAI,CAAC,aAAa,CAAC,IAAI,EAAE,CAAC;IACnC,CAAC;IAEO,SAAS;QACf,OAAO,IAAI,CAAC,SAAS,CAAC,QAAQ,EAAE,CAAC;IACnC,CAAC;CACF","sourcesContent":["/*\n * Copyright The OpenTelemetry Authors\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport type { Context } from '@opentelemetry/api';\nimport { TraceFlags } from '@opentelemetry/api';\nimport {\n internal,\n ExportResultCode,\n globalErrorHandler,\n BindOnceFuture,\n} from '@opentelemetry/core';\nimport type { Span } from '../Span';\nimport type { SpanProcessor } from '../SpanProcessor';\nimport type { ReadableSpan } from './ReadableSpan';\nimport type { SpanExporter } from './SpanExporter';\n\n/**\n * An implementation of the {@link SpanProcessor} that converts the {@link Span}\n * to {@link ReadableSpan} and passes it to the configured exporter.\n *\n * Only spans that are sampled are converted.\n *\n * NOTE: This {@link SpanProcessor} exports every ended span individually instead of batching spans together, which causes significant performance overhead with most exporters. For production use, please consider using the {@link BatchSpanProcessor} instead.\n */\nexport class SimpleSpanProcessor implements SpanProcessor {\n private readonly _exporter: SpanExporter;\n private _shutdownOnce: BindOnceFuture<void>;\n private _pendingExports: Set<Promise<void>>;\n\n constructor(exporter: SpanExporter) {\n this._exporter = exporter;\n this._shutdownOnce = new BindOnceFuture(this._shutdown, this);\n this._pendingExports = new Set<Promise<void>>();\n }\n\n async forceFlush(): Promise<void> {\n await Promise.all(Array.from(this._pendingExports));\n if (this._exporter.forceFlush) {\n await this._exporter.forceFlush();\n }\n }\n\n onStart(_span: Span, _parentContext: Context): void {}\n\n onEnd(span: ReadableSpan): void {\n if (this._shutdownOnce.isCalled) {\n return;\n }\n\n if ((span.spanContext().traceFlags & TraceFlags.SAMPLED) === 0) {\n return;\n }\n\n const pendingExport = this._doExport(span).catch(err =>\n globalErrorHandler(err)\n );\n // Enqueue this export to the pending list so it can be flushed by the user.\n this._pendingExports.add(pendingExport);\n void pendingExport.finally(() =>\n this._pendingExports.delete(pendingExport)\n );\n }\n\n private async _doExport(span: ReadableSpan): Promise<void> {\n if (span.resource.asyncAttributesPending) {\n // Ensure resource is fully resolved before exporting.\n await span.resource.waitForAsyncAttributes?.();\n }\n\n const result = await internal._export(this._exporter, [span]);\n if (result.code !== ExportResultCode.SUCCESS) {\n throw (\n result.error ??\n new Error(`SimpleSpanProcessor: span export failed (status ${result})`)\n );\n }\n }\n\n shutdown(): Promise<void> {\n return this._shutdownOnce.call();\n }\n\n private _shutdown(): Promise<void> {\n return this._exporter.shutdown();\n }\n}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AACnE,OAAO,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AACnE,OAAO,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;AAErE,OAAO,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AAEnE,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAC/D,OAAO,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAC9D,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAC5D,OAAO,EAAE,kBAAkB,EAAE,MAAM,8BAA8B,CAAC;AAClE,OAAO,EAAE,wBAAwB,EAAE,MAAM,oCAAoC,CAAC;AAC9E,OAAO,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAC","sourcesContent":["/*\n * Copyright The OpenTelemetry Authors\n * SPDX-License-Identifier: Apache-2.0\n */\n\nexport { BasicTracerProvider } from './BasicTracerProvider';\nexport { BatchSpanProcessor, RandomIdGenerator } from './platform';\nexport { ConsoleSpanExporter } from './export/ConsoleSpanExporter';\nexport { InMemorySpanExporter } from './export/InMemorySpanExporter';\nexport type { ReadableSpan } from './export/ReadableSpan';\nexport { SimpleSpanProcessor } from './export/SimpleSpanProcessor';\nexport type { SpanExporter } from './export/SpanExporter';\nexport { NoopSpanProcessor } from './export/NoopSpanProcessor';\nexport { AlwaysOffSampler } from './sampler/AlwaysOffSampler';\nexport { AlwaysOnSampler } from './sampler/AlwaysOnSampler';\nexport { ParentBasedSampler } from './sampler/ParentBasedSampler';\nexport { TraceIdRatioBasedSampler } from './sampler/TraceIdRatioBasedSampler';\nexport { SamplingDecision } from './Sampler';\nexport type { Sampler, SamplingResult } from './Sampler';\nexport type { Span } from './Span';\nexport type { SpanProcessor } from './SpanProcessor';\nexport type { TimedEvent } from './TimedEvent';\nexport type {\n BatchSpanProcessorBrowserConfig,\n BufferConfig,\n GeneralLimits,\n SDKRegistrationConfig,\n SpanLimits,\n TracerConfig,\n} from './types';\nexport type { IdGenerator } from './IdGenerator';\n"]}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { BatchSpanProcessorBase } from '../../../export/BatchSpanProcessorBase';
|
|
2
|
-
import type { SpanExporter } from '../../../export/SpanExporter';
|
|
3
|
-
import type { BatchSpanProcessorBrowserConfig } from '../../../types';
|
|
4
|
-
export declare class BatchSpanProcessor extends BatchSpanProcessorBase<BatchSpanProcessorBrowserConfig> {
|
|
5
|
-
private _visibilityChangeListener?;
|
|
6
|
-
private _pageHideListener?;
|
|
7
|
-
constructor(_exporter: SpanExporter, config?: BatchSpanProcessorBrowserConfig);
|
|
8
|
-
private onInit;
|
|
9
|
-
protected onShutdown(): void;
|
|
10
|
-
}
|
|
11
|
-
//# sourceMappingURL=BatchSpanProcessor.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"BatchSpanProcessor.js","sourceRoot":"","sources":["../../../../../src/platform/browser/export/BatchSpanProcessor.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,sBAAsB,EAAE,MAAM,wCAAwC,CAAC;AAGhF,OAAO,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAEzD,MAAM,OAAO,kBAAmB,SAAQ,sBAAuD;IACrF,yBAAyB,CAAc;IACvC,iBAAiB,CAAc;IAEvC,YACE,SAAuB,EACvB,MAAwC;QAExC,KAAK,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC;QACzB,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;IAEO,MAAM,CAAC,MAAwC;QACrD,IACE,MAAM,EAAE,8BAA8B,KAAK,IAAI;YAC/C,OAAO,QAAQ,KAAK,WAAW,EAC/B;YACA,IAAI,CAAC,yBAAyB,GAAG,GAAG,EAAE;gBACpC,IAAI,QAAQ,CAAC,eAAe,KAAK,QAAQ,EAAE;oBACzC,IAAI,CAAC,UAAU,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC,EAAE;wBAC9B,kBAAkB,CAAC,KAAK,CAAC,CAAC;oBAC5B,CAAC,CAAC,CAAC;iBACJ;YACH,CAAC,CAAC;YACF,IAAI,CAAC,iBAAiB,GAAG,GAAG,EAAE;gBAC5B,IAAI,CAAC,UAAU,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC,EAAE;oBAC9B,kBAAkB,CAAC,KAAK,CAAC,CAAC;gBAC5B,CAAC,CAAC,CAAC;YACL,CAAC,CAAC;YACF,QAAQ,CAAC,gBAAgB,CACvB,kBAAkB,EAClB,IAAI,CAAC,yBAAyB,CAC/B,CAAC;YAEF,oGAAoG;YACpG,QAAQ,CAAC,gBAAgB,CAAC,UAAU,EAAE,IAAI,CAAC,iBAAiB,CAAC,CAAC;SAC/D;IACH,CAAC;IAES,UAAU;QAClB,IAAI,OAAO,QAAQ,KAAK,WAAW,EAAE;YACnC,IAAI,IAAI,CAAC,yBAAyB,EAAE;gBAClC,QAAQ,CAAC,mBAAmB,CAC1B,kBAAkB,EAClB,IAAI,CAAC,yBAAyB,CAC/B,CAAC;aACH;YACD,IAAI,IAAI,CAAC,iBAAiB,EAAE;gBAC1B,QAAQ,CAAC,mBAAmB,CAAC,UAAU,EAAE,IAAI,CAAC,iBAAiB,CAAC,CAAC;aAClE;SACF;IACH,CAAC;CACF","sourcesContent":["/*\n * Copyright The OpenTelemetry Authors\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { BatchSpanProcessorBase } from '../../../export/BatchSpanProcessorBase';\nimport type { SpanExporter } from '../../../export/SpanExporter';\nimport type { BatchSpanProcessorBrowserConfig } from '../../../types';\nimport { globalErrorHandler } from '@opentelemetry/core';\n\nexport class BatchSpanProcessor extends BatchSpanProcessorBase<BatchSpanProcessorBrowserConfig> {\n private _visibilityChangeListener?: () => void;\n private _pageHideListener?: () => void;\n\n constructor(\n _exporter: SpanExporter,\n config?: BatchSpanProcessorBrowserConfig\n ) {\n super(_exporter, config);\n this.onInit(config);\n }\n\n private onInit(config?: BatchSpanProcessorBrowserConfig): void {\n if (\n config?.disableAutoFlushOnDocumentHide !== true &&\n typeof document !== 'undefined'\n ) {\n this._visibilityChangeListener = () => {\n if (document.visibilityState === 'hidden') {\n this.forceFlush().catch(error => {\n globalErrorHandler(error);\n });\n }\n };\n this._pageHideListener = () => {\n this.forceFlush().catch(error => {\n globalErrorHandler(error);\n });\n };\n document.addEventListener(\n 'visibilitychange',\n this._visibilityChangeListener\n );\n\n // use 'pagehide' event as a fallback for Safari; see https://bugs.webkit.org/show_bug.cgi?id=116769\n document.addEventListener('pagehide', this._pageHideListener);\n }\n }\n\n protected onShutdown(): void {\n if (typeof document !== 'undefined') {\n if (this._visibilityChangeListener) {\n document.removeEventListener(\n 'visibilitychange',\n this._visibilityChangeListener\n );\n }\n if (this._pageHideListener) {\n document.removeEventListener('pagehide', this._pageHideListener);\n }\n }\n }\n}\n"]}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Determines whether the span has a parent span, and if so, [whether it is a remote parent](https://opentelemetry.io/docs/specs/otel/trace/api/#isremote)
|
|
3
|
-
*
|
|
4
|
-
* @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`.
|
|
5
|
-
*/
|
|
6
|
-
export declare const ATTR_OTEL_SPAN_PARENT_ORIGIN: "otel.span.parent.origin";
|
|
7
|
-
/**
|
|
8
|
-
* The result value of the sampler for this span
|
|
9
|
-
*
|
|
10
|
-
* @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`.
|
|
11
|
-
*/
|
|
12
|
-
export declare const ATTR_OTEL_SPAN_SAMPLING_RESULT: "otel.span.sampling_result";
|
|
13
|
-
/**
|
|
14
|
-
* The number of created spans with `recording=true` for which the end operation has not been called yet.
|
|
15
|
-
*
|
|
16
|
-
* @experimental This metric is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`.
|
|
17
|
-
*/
|
|
18
|
-
export declare const METRIC_OTEL_SDK_SPAN_LIVE: "otel.sdk.span.live";
|
|
19
|
-
/**
|
|
20
|
-
* The number of created spans.
|
|
21
|
-
*
|
|
22
|
-
* @note Implementations **MUST** record this metric for all spans, even for non-recording ones.
|
|
23
|
-
*
|
|
24
|
-
* @experimental This metric is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`.
|
|
25
|
-
*/
|
|
26
|
-
export declare const METRIC_OTEL_SDK_SPAN_STARTED: "otel.sdk.span.started";
|
|
27
|
-
//# sourceMappingURL=semconv.d.ts.map
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright The OpenTelemetry Authors
|
|
3
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
4
|
-
*/
|
|
5
|
-
/*
|
|
6
|
-
* This file contains a copy of unstable semantic convention definitions
|
|
7
|
-
* used by this package.
|
|
8
|
-
* @see https://github.com/open-telemetry/opentelemetry-js/tree/main/semantic-conventions#unstable-semconv
|
|
9
|
-
*/
|
|
10
|
-
/**
|
|
11
|
-
* Determines whether the span has a parent span, and if so, [whether it is a remote parent](https://opentelemetry.io/docs/specs/otel/trace/api/#isremote)
|
|
12
|
-
*
|
|
13
|
-
* @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`.
|
|
14
|
-
*/
|
|
15
|
-
export const ATTR_OTEL_SPAN_PARENT_ORIGIN = 'otel.span.parent.origin';
|
|
16
|
-
/**
|
|
17
|
-
* The result value of the sampler for this span
|
|
18
|
-
*
|
|
19
|
-
* @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`.
|
|
20
|
-
*/
|
|
21
|
-
export const ATTR_OTEL_SPAN_SAMPLING_RESULT = 'otel.span.sampling_result';
|
|
22
|
-
/**
|
|
23
|
-
* The number of created spans with `recording=true` for which the end operation has not been called yet.
|
|
24
|
-
*
|
|
25
|
-
* @experimental This metric is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`.
|
|
26
|
-
*/
|
|
27
|
-
export const METRIC_OTEL_SDK_SPAN_LIVE = 'otel.sdk.span.live';
|
|
28
|
-
/**
|
|
29
|
-
* The number of created spans.
|
|
30
|
-
*
|
|
31
|
-
* @note Implementations **MUST** record this metric for all spans, even for non-recording ones.
|
|
32
|
-
*
|
|
33
|
-
* @experimental This metric is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`.
|
|
34
|
-
*/
|
|
35
|
-
export const METRIC_OTEL_SDK_SPAN_STARTED = 'otel.sdk.span.started';
|
|
36
|
-
//# sourceMappingURL=semconv.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"semconv.js","sourceRoot":"","sources":["../../src/semconv.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;GAIG;AAEH;;;;GAIG;AACH,MAAM,CAAC,MAAM,4BAA4B,GAAG,yBAAkC,CAAC;AAE/E;;;;GAIG;AACH,MAAM,CAAC,MAAM,8BAA8B,GACzC,2BAAoC,CAAC;AAEvC;;;;GAIG;AACH,MAAM,CAAC,MAAM,yBAAyB,GAAG,oBAA6B,CAAC;AAEvE;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,4BAA4B,GAAG,uBAAgC,CAAC","sourcesContent":["/*\n * Copyright The OpenTelemetry Authors\n * SPDX-License-Identifier: Apache-2.0\n */\n\n/*\n * This file contains a copy of unstable semantic convention definitions\n * used by this package.\n * @see https://github.com/open-telemetry/opentelemetry-js/tree/main/semantic-conventions#unstable-semconv\n */\n\n/**\n * Determines whether the span has a parent span, and if so, [whether it is a remote parent](https://opentelemetry.io/docs/specs/otel/trace/api/#isremote)\n *\n * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`.\n */\nexport const ATTR_OTEL_SPAN_PARENT_ORIGIN = 'otel.span.parent.origin' as const;\n\n/**\n * The result value of the sampler for this span\n *\n * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`.\n */\nexport const ATTR_OTEL_SPAN_SAMPLING_RESULT =\n 'otel.span.sampling_result' as const;\n\n/**\n * The number of created spans with `recording=true` for which the end operation has not been called yet.\n *\n * @experimental This metric is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`.\n */\nexport const METRIC_OTEL_SDK_SPAN_LIVE = 'otel.sdk.span.live' as const;\n\n/**\n * The number of created spans.\n *\n * @note Implementations **MUST** record this metric for all spans, even for non-recording ones.\n *\n * @experimental This metric is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`.\n */\nexport const METRIC_OTEL_SDK_SPAN_STARTED = 'otel.sdk.span.started' as const;\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":"AAAA;;;GAGG","sourcesContent":["/*\n * Copyright The OpenTelemetry Authors\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport type {\n ContextManager,\n MeterProvider,\n TextMapPropagator,\n} from '@opentelemetry/api';\nimport type { Resource } from '@opentelemetry/resources';\nimport type { IdGenerator } from './IdGenerator';\nimport type { Sampler } from './Sampler';\nimport type { SpanProcessor } from './SpanProcessor';\n\n/**\n * TracerConfig provides an interface for configuring a Basic Tracer.\n */\nexport interface TracerConfig {\n /**\n * Sampler determines if a span should be recorded or should be a NoopSpan.\n */\n sampler?: Sampler;\n\n /** General Limits */\n generalLimits?: GeneralLimits;\n\n /** Span Limits */\n spanLimits?: SpanLimits;\n\n /** Resource associated with trace telemetry */\n resource?: Resource;\n\n /**\n * Generator of trace and span IDs\n * The default idGenerator generates random ids\n */\n idGenerator?: IdGenerator;\n\n /**\n * How long the forceFlush can run before it is cancelled.\n * The default value is 30000ms\n */\n forceFlushTimeoutMillis?: number;\n\n /**\n * List of SpanProcessor for the tracer\n */\n spanProcessors?: SpanProcessor[];\n\n /**\n * A meter provider to record trace SDK metrics to.\n * @experimental This option is experimental and is subject to breaking changes in minor releases.\n */\n meterProvider?: MeterProvider;\n}\n\n/**\n * Configuration options for registering the API with the SDK.\n * Undefined values may be substituted for defaults, and null\n * values will not be registered.\n */\nexport interface SDKRegistrationConfig {\n /** Propagator to register as the global propagator */\n propagator?: TextMapPropagator | null;\n\n /** Context manager to register as the global context manager */\n contextManager?: ContextManager | null;\n}\n\n/** Global configuration limits of trace service */\nexport interface GeneralLimits {\n /** attributeValueLengthLimit is maximum allowed attribute value size */\n attributeValueLengthLimit?: number;\n /** attributeCountLimit is number of attributes per trace */\n attributeCountLimit?: number;\n}\n\n/** Global configuration of trace service */\nexport interface SpanLimits {\n /** attributeValueLengthLimit is maximum allowed attribute value size */\n attributeValueLengthLimit?: number;\n /** attributeCountLimit is number of attributes per span */\n attributeCountLimit?: number;\n /** linkCountLimit is number of links per span */\n linkCountLimit?: number;\n /** eventCountLimit is number of message events per span */\n eventCountLimit?: number;\n /** attributePerEventCountLimit is the maximum number of attributes allowed per span event */\n attributePerEventCountLimit?: number;\n /** attributePerLinkCountLimit is the maximum number of attributes allowed per span link */\n attributePerLinkCountLimit?: number;\n}\n\n/** Interface configuration for a buffer. */\nexport interface BufferConfig {\n /** The maximum batch size of every export. It must be smaller or equal to\n * maxQueueSize. The default value is 512. */\n maxExportBatchSize?: number;\n\n /** The delay interval in milliseconds between two consecutive exports.\n * The default value is 5000ms. */\n scheduledDelayMillis?: number;\n\n /** How long the export can run before it is cancelled.\n * The default value is 30000ms */\n exportTimeoutMillis?: number;\n\n /** The maximum queue size. After the size is reached spans are dropped.\n * The default value is 2048. */\n maxQueueSize?: number;\n}\n\n/** Interface configuration for BatchSpanProcessor on browser */\nexport interface BatchSpanProcessorBrowserConfig extends BufferConfig {\n /** Disable flush when a user navigates to a new page, closes the tab or the browser, or,\n * on mobile, switches to a different app. Auto flush is enabled by default. */\n disableAutoFlushOnDocumentHide?: boolean;\n}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"BasicTracerProvider.js","sourceRoot":"","sources":["../../src/BasicTracerProvider.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AAE5C,OAAO,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAE3D,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAC7C,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAE1D,OAAO,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAC;AAE9C,OAAO,EACL,aAAa,EACb,aAAa,EACb,yBAAyB,GAC1B,MAAM,WAAW,CAAC;AAEnB,MAAM,CAAN,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;iBAClB,IAAI,CAAC,OAAO,CAAC,EAAE;gBACd,MAAM,MAAM,GAAG,OAAO,CAAC,MAAM,CAC3B,MAAM,CAAC,EAAE,CAAC,MAAM,KAAK,eAAe,CAAC,QAAQ,CAC9C,CAAC;gBACF,IAAI,MAAM,CAAC,MAAM,GAAG,CAAC,EAAE;oBACrB,MAAM,CAAC,MAAM,CAAC,CAAC;iBAChB;qBAAM;oBACL,OAAO,EAAE,CAAC;iBACX;YACH,CAAC,CAAC;iBACD,KAAK,CAAC,KAAK,CAAC,EAAE,CAAC,MAAM,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;QACrC,CAAC,CAAC,CAAC;IACL,CAAC;IAED,QAAQ;QACN,OAAO,IAAI,CAAC,oBAAoB,CAAC,QAAQ,EAAE,CAAC;IAC9C,CAAC;IAED,CAAC,aAAa,CAAC,CACb,KAAa,EACb,OAA0C,EAC1C,OAA8B;QAE9B,MAAM,UAAU,GAAG,IAAI,CAAC,oBAAoB,CAC1C,iBAAiB,CACC,CAAC;QACrB,MAAM,OAAO,GAAG;YACd,QAAQ,EAAE,EAAE,UAAU,EAAE,yBAAyB,CAAC,IAAI,CAAC,SAAS,CAAC,EAAE;YACnE,OAAO,EAAE,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,IAAI,EAAE,CAAC;YACzC,cAAc,EAAE,UAAU,CAAC,GAAG,CAC5B,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,WAAW,EAAE,IAAI,IAAI,eAAe,CAC5C;SACF,CAAC;QACF,OAAO,aAAa,CAClB,qBAAqB,EACrB,OAAO,EACP,KAAK,EACL,OAAO,EACP,OAAO,CACR,CAAC;IACJ,CAAC;CACF","sourcesContent":["/*\n * Copyright The OpenTelemetry Authors\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport type { TracerProvider, Tracer as ApiTracer } from '@opentelemetry/api';\nimport { merge } from '@opentelemetry/core';\nimport type { Resource } from '@opentelemetry/resources';\nimport { defaultResource } from '@opentelemetry/resources';\nimport type { SpanProcessor } from './SpanProcessor';\nimport { Tracer } from './Tracer';\nimport { loadDefaultConfig } from './config';\nimport { MultiSpanProcessor } from './MultiSpanProcessor';\nimport type { TracerConfig } from './types';\nimport { reconfigureLimits } from './utility';\nimport type { InspectFn, InspectStylizeOptions } from './inspect';\nimport {\n formatInspect,\n inspectCustom,\n settledResourceAttributes,\n} from './inspect';\n\nexport enum ForceFlushState {\n 'resolved',\n 'timeout',\n 'error',\n 'unresolved',\n}\n\n/**\n * This class represents a basic tracer provider which platform libraries can extend\n */\nexport class BasicTracerProvider implements TracerProvider {\n private readonly _config: TracerConfig;\n private readonly _tracers: Map<string, Tracer> = new Map();\n private readonly _resource: Resource;\n private readonly _activeSpanProcessor: MultiSpanProcessor;\n\n constructor(config: TracerConfig = {}) {\n const mergedConfig = merge(\n {},\n loadDefaultConfig(),\n reconfigureLimits(config)\n );\n this._resource = mergedConfig.resource ?? defaultResource();\n\n this._config = Object.assign({}, mergedConfig, {\n resource: this._resource,\n });\n\n const spanProcessors: SpanProcessor[] = [];\n\n if (config.spanProcessors?.length) {\n spanProcessors.push(...config.spanProcessors);\n }\n\n this._activeSpanProcessor = new MultiSpanProcessor(spanProcessors);\n }\n\n getTracer(\n name: string,\n version?: string,\n options?: { schemaUrl?: string }\n ): ApiTracer {\n const key = `${name}@${version || ''}:${options?.schemaUrl || ''}`;\n if (!this._tracers.has(key)) {\n this._tracers.set(\n key,\n new Tracer(\n { name, version, schemaUrl: options?.schemaUrl },\n this._config,\n this._resource,\n this._activeSpanProcessor\n )\n );\n }\n\n return this._tracers.get(key)!;\n }\n\n forceFlush(): Promise<void> {\n const timeout = this._config.forceFlushTimeoutMillis;\n const promises = this._activeSpanProcessor['_spanProcessors'].map(\n (spanProcessor: SpanProcessor) => {\n return new Promise(resolve => {\n let state: ForceFlushState;\n const timeoutInterval = setTimeout(() => {\n resolve(\n new Error(\n `Span processor did not completed within timeout period of ${timeout} ms`\n )\n );\n state = ForceFlushState.timeout;\n }, timeout);\n\n spanProcessor\n .forceFlush()\n .then(() => {\n clearTimeout(timeoutInterval);\n if (state !== ForceFlushState.timeout) {\n state = ForceFlushState.resolved;\n resolve(state);\n }\n })\n .catch(error => {\n clearTimeout(timeoutInterval);\n state = ForceFlushState.error;\n resolve(error);\n });\n });\n }\n );\n\n return new Promise<void>((resolve, reject) => {\n Promise.all(promises)\n .then(results => {\n const errors = results.filter(\n result => result !== ForceFlushState.resolved\n );\n if (errors.length > 0) {\n reject(errors);\n } else {\n resolve();\n }\n })\n .catch(error => reject([error]));\n });\n }\n\n shutdown(): Promise<void> {\n return this._activeSpanProcessor.shutdown();\n }\n\n [inspectCustom](\n depth: number,\n options: InspectStylizeOptions | undefined,\n inspect: InspectFn | undefined\n ): unknown {\n const processors = this._activeSpanProcessor[\n '_spanProcessors'\n ] as SpanProcessor[];\n const payload = {\n resource: { attributes: settledResourceAttributes(this._resource) },\n tracers: Array.from(this._tracers.keys()),\n spanProcessors: processors.map(\n p => p.constructor?.name ?? 'SpanProcessor'\n ),\n };\n return formatInspect(\n 'BasicTracerProvider',\n payload,\n depth,\n options,\n inspect\n );\n }\n}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Tracer.js","sourceRoot":"","sources":["../../src/Tracer.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,GAAG,MAAM,oBAAoB,CAAC;AAE1C,OAAO,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAC9E,OAAO,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAC;AAElC,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AAIxC,OAAO,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAE/C,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEpC,OAAO,EACL,a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,CAAC,CACb,KAAa,EACb,OAA0C,EAC1C,OAA8B;QAE9B,MAAM,OAAO,GAAG;YACd,oBAAoB,EAAE,IAAI,CAAC,oBAAoB;YAC/C,QAAQ,EAAE,EAAE,UAAU,EAAE,yBAAyB,CAAC,IAAI,CAAC,SAAS,CAAC,EAAE;YACnE,UAAU,EAAE,IAAI,CAAC,WAAW;YAC5B,aAAa,EAAE,IAAI,CAAC,cAAc;SACnC,CAAC;QACF,OAAO,aAAa,CAAC,QAAQ,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;IACnE,CAAC;CACF","sourcesContent":["/*\n * Copyright The OpenTelemetry Authors\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport * as api from '@opentelemetry/api';\nimport type { InstrumentationScope } from '@opentelemetry/core';\nimport { sanitizeAttributes, isTracingSuppressed } from '@opentelemetry/core';\nimport { SpanImpl } from './Span';\nimport type { GeneralLimits, SpanLimits, TracerConfig } from './types';\nimport { mergeConfig } from './utility';\nimport type { SpanProcessor } from './SpanProcessor';\nimport type { Sampler } from './Sampler';\nimport type { IdGenerator } from './IdGenerator';\nimport { RandomIdGenerator } from './platform';\nimport type { Resource } from '@opentelemetry/resources';\nimport { TracerMetrics } from './TracerMetrics';\nimport { VERSION } from './version';\nimport type { InspectFn, InspectStylizeOptions } from './inspect';\nimport {\n formatInspect,\n inspectCustom,\n settledResourceAttributes,\n} from './inspect';\n\n/**\n * This class represents a basic tracer.\n */\nexport class Tracer implements api.Tracer {\n private readonly _sampler: Sampler;\n private readonly _generalLimits: GeneralLimits;\n private readonly _spanLimits: SpanLimits;\n private readonly _idGenerator: IdGenerator;\n readonly instrumentationScope: InstrumentationScope;\n\n private readonly _resource: Resource;\n private readonly _spanProcessor: SpanProcessor;\n private readonly _tracerMetrics: TracerMetrics;\n\n /**\n * Constructs a new Tracer instance.\n */\n constructor(\n instrumentationScope: InstrumentationScope,\n config: TracerConfig,\n resource: Resource,\n spanProcessor: SpanProcessor\n ) {\n const localConfig = mergeConfig(config);\n this._sampler = localConfig.sampler;\n this._generalLimits = localConfig.generalLimits;\n this._spanLimits = localConfig.spanLimits;\n this._idGenerator = config.idGenerator || new RandomIdGenerator();\n this._resource = resource;\n this._spanProcessor = spanProcessor;\n this.instrumentationScope = instrumentationScope;\n\n const meter = localConfig.meterProvider\n ? localConfig.meterProvider.getMeter('@opentelemetry/sdk-trace', VERSION)\n : api.createNoopMeter();\n this._tracerMetrics = new TracerMetrics(meter);\n }\n\n /**\n * Starts a new Span or returns the default NoopSpan based on the sampling\n * decision.\n */\n startSpan(\n name: string,\n options: api.SpanOptions = {},\n context = api.context.active()\n ): api.Span {\n // remove span from context in case a root span is requested via options\n if (options.root) {\n context = api.trace.deleteSpan(context);\n }\n const parentSpan = api.trace.getSpan(context);\n\n if (isTracingSuppressed(context)) {\n api.diag.debug('Instrumentation suppressed, returning Noop Span');\n const nonRecordingSpan = api.trace.wrapSpanContext(\n api.INVALID_SPAN_CONTEXT\n );\n return nonRecordingSpan;\n }\n\n const parentSpanContext = parentSpan?.spanContext();\n const spanId = this._idGenerator.generateSpanId();\n let validParentSpanContext;\n let traceId;\n let traceState;\n if (\n !parentSpanContext ||\n !api.trace.isSpanContextValid(parentSpanContext)\n ) {\n // New root span.\n traceId = this._idGenerator.generateTraceId();\n } else {\n // New child span.\n traceId = parentSpanContext.traceId;\n traceState = parentSpanContext.traceState;\n validParentSpanContext = parentSpanContext;\n }\n\n const spanKind = options.kind ?? api.SpanKind.INTERNAL;\n const links = (options.links ?? []).map(link => {\n return {\n context: link.context,\n attributes: sanitizeAttributes(link.attributes),\n };\n });\n const attributes = sanitizeAttributes(options.attributes);\n // make sampling decision\n const samplingResult = this._sampler.shouldSample(\n context,\n traceId,\n name,\n spanKind,\n attributes,\n links\n );\n\n const recordEndMetrics = this._tracerMetrics.startSpan(\n parentSpanContext,\n samplingResult.decision\n );\n\n traceState = samplingResult.traceState ?? traceState;\n\n const traceFlags =\n samplingResult.decision === api.SamplingDecision.RECORD_AND_SAMPLED\n ? api.TraceFlags.SAMPLED\n : api.TraceFlags.NONE;\n const spanContext = { traceId, spanId, traceFlags, traceState };\n if (samplingResult.decision === api.SamplingDecision.NOT_RECORD) {\n api.diag.debug(\n 'Recording is off, propagating context in a non-recording span'\n );\n const nonRecordingSpan = api.trace.wrapSpanContext(spanContext);\n return nonRecordingSpan;\n }\n\n // Set initial span attributes. The attributes object may have been mutated\n // by the sampler, so we sanitize the merged attributes before setting them.\n const initAttributes = sanitizeAttributes(\n Object.assign(attributes, samplingResult.attributes)\n );\n\n const span = new SpanImpl({\n resource: this._resource,\n scope: this.instrumentationScope,\n context,\n spanContext,\n name,\n kind: spanKind,\n links,\n parentSpanContext: validParentSpanContext,\n attributes: initAttributes,\n startTime: options.startTime,\n spanProcessor: this._spanProcessor,\n spanLimits: this._spanLimits,\n recordEndMetrics,\n });\n return span;\n }\n\n /**\n * Starts a new {@link Span} and calls the given function passing it the\n * created span as first argument.\n * Additionally the new span gets set in context and this context is activated\n * for the duration of the function call.\n *\n * **Important**: The callback function is responsible for calling `span.end()`\n * to finish the span. Unlike some other OpenTelemetry implementations, the span\n * is NOT automatically ended when the callback returns. If `span.end()` is not\n * called, the span will never be exported and will be silently lost.\n *\n * @param name The name of the span\n * @param [options] SpanOptions used for span creation\n * @param [context] Context to use to extract parent\n * @param fn function called in the context of the span and receives the newly created span as an argument\n * @returns return value of fn\n * @example\n * const something = tracer.startActiveSpan('op', span => {\n * try {\n * do some work\n * span.setStatus({code: SpanStatusCode.OK});\n * return something;\n * } catch (err) {\n * span.setStatus({\n * code: SpanStatusCode.ERROR,\n * message: err.message,\n * });\n * throw err;\n * } finally {\n * span.end();\n * }\n * });\n * @example\n * const span = tracer.startActiveSpan('op', span => {\n * try {\n * do some work\n * return span;\n * } catch (err) {\n * span.setStatus({\n * code: SpanStatusCode.ERROR,\n * message: err.message,\n * });\n * throw err;\n * }\n * });\n * do some more work\n * span.end();\n */\n startActiveSpan<F extends (span: api.Span) => ReturnType<F>>(\n name: string,\n fn: F\n ): ReturnType<F>;\n startActiveSpan<F extends (span: api.Span) => ReturnType<F>>(\n name: string,\n opts: api.SpanOptions,\n fn: F\n ): ReturnType<F>;\n startActiveSpan<F extends (span: api.Span) => ReturnType<F>>(\n name: string,\n opts: api.SpanOptions,\n ctx: api.Context,\n fn: F\n ): ReturnType<F>;\n startActiveSpan<F extends (span: api.Span) => ReturnType<F>>(\n name: string,\n arg2?: F | api.SpanOptions,\n arg3?: F | api.Context,\n arg4?: F\n ): ReturnType<F> | undefined {\n let opts: api.SpanOptions | undefined;\n let ctx: api.Context | undefined;\n let fn: F;\n\n if (arguments.length < 2) {\n return;\n } else if (arguments.length === 2) {\n fn = arg2 as F;\n } else if (arguments.length === 3) {\n opts = arg2 as api.SpanOptions | undefined;\n fn = arg3 as F;\n } else {\n opts = arg2 as api.SpanOptions | undefined;\n ctx = arg3 as api.Context | undefined;\n fn = arg4 as F;\n }\n\n const parentContext = ctx ?? api.context.active();\n const span = this.startSpan(name, opts, parentContext);\n const contextWithSpanSet = api.trace.setSpan(parentContext, span);\n\n return api.context.with(contextWithSpanSet, fn, undefined, span);\n }\n\n /** Returns the active {@link GeneralLimits}. */\n getGeneralLimits(): GeneralLimits {\n return this._generalLimits;\n }\n\n /** Returns the active {@link SpanLimits}. */\n getSpanLimits(): SpanLimits {\n return this._spanLimits;\n }\n\n [inspectCustom](\n depth: number,\n options: InspectStylizeOptions | undefined,\n inspect: InspectFn | undefined\n ): unknown {\n const payload = {\n instrumentationScope: this.instrumentationScope,\n resource: { attributes: settledResourceAttributes(this._resource) },\n spanLimits: this._spanLimits,\n generalLimits: this._generalLimits,\n };\n return formatInspect('Tracer', payload, depth, options, inspect);\n }\n}\n"]}
|
package/node_modules/@opentelemetry/sdk-trace-base/build/esnext/export/BatchSpanProcessorBase.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"BatchSpanProcessorBase.js","sourceRoot":"","sources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BACnB,IAAI,CAAC,gBAAgB,EAAE,CAAC;iBACzB;YACH,CAAC,CAAC;iBACD,KAAK,CAAC,CAAC,CAAC,EAAE;gBACT,IAAI,CAAC,YAAY,GAAG,KAAK,CAAC;gBAC1B,kBAAkB,CAAC,CAAC,CAAC,CAAC;YACxB,CAAC,CAAC,CAAC;QACP,CAAC,CAAC;QACF,6DAA6D;QAC7D,IAAI,IAAI,CAAC,cAAc,CAAC,MAAM,IAAI,IAAI,CAAC,mBAAmB,EAAE;YAC1D,OAAO,KAAK,EAAE,CAAC;SAChB;QACD,IAAI,IAAI,CAAC,MAAM,KAAK,SAAS;YAAE,OAAO;QACtC,IAAI,CAAC,MAAM,GAAG,UAAU,CAAC,GAAG,EAAE,CAAC,KAAK,EAAE,EAAE,IAAI,CAAC,qBAAqB,CAAC,CAAC;QAEpE,iEAAiE;QACjE,IAAI,OAAO,IAAI,CAAC,MAAM,KAAK,QAAQ,EAAE;YACnC,IAAI,CAAC,MAAM,CAAC,KAAK,EAAE,CAAC;SACrB;IACH,CAAC;IAEO,WAAW;QACjB,IAAI,IAAI,CAAC,MAAM,KAAK,SAAS,EAAE;YAC7B,YAAY,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;YAC1B,IAAI,CAAC,MAAM,GAAG,SAAS,CAAC;SACzB;IACH,CAAC;CAGF","sourcesContent":["/*\n * Copyright The OpenTelemetry Authors\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport type { Context } from '@opentelemetry/api';\nimport { context, diag, TraceFlags } from '@opentelemetry/api';\nimport {\n BindOnceFuture,\n ExportResultCode,\n getNumberFromEnv,\n globalErrorHandler,\n suppressTracing,\n} from '@opentelemetry/core';\nimport type { Span } from '../Span';\nimport type { SpanProcessor } from '../SpanProcessor';\nimport type { BufferConfig } from '../types';\nimport type { ReadableSpan } from './ReadableSpan';\nimport type { SpanExporter } from './SpanExporter';\n\n/**\n * Implementation of the {@link SpanProcessor} that batches spans exported by\n * the SDK then pushes them to the exporter pipeline.\n */\nexport abstract class BatchSpanProcessorBase<T extends BufferConfig>\n implements SpanProcessor\n{\n private readonly _maxExportBatchSize: number;\n private readonly _maxQueueSize: number;\n private readonly _scheduledDelayMillis: number;\n private readonly _exportTimeoutMillis: number;\n private readonly _exporter: SpanExporter;\n\n private _isExporting = false;\n private _finishedSpans: ReadableSpan[] = [];\n private _timer: NodeJS.Timeout | number | undefined;\n private _shutdownOnce: BindOnceFuture<void>;\n private _droppedSpansCount: number = 0;\n\n constructor(exporter: SpanExporter, config?: T) {\n this._exporter = exporter;\n this._maxExportBatchSize =\n typeof config?.maxExportBatchSize === 'number'\n ? config.maxExportBatchSize\n : (getNumberFromEnv('OTEL_BSP_MAX_EXPORT_BATCH_SIZE') ?? 512);\n this._maxQueueSize =\n typeof config?.maxQueueSize === 'number'\n ? config.maxQueueSize\n : (getNumberFromEnv('OTEL_BSP_MAX_QUEUE_SIZE') ?? 2048);\n this._scheduledDelayMillis =\n typeof config?.scheduledDelayMillis === 'number'\n ? config.scheduledDelayMillis\n : (getNumberFromEnv('OTEL_BSP_SCHEDULE_DELAY') ?? 5000);\n this._exportTimeoutMillis =\n typeof config?.exportTimeoutMillis === 'number'\n ? config.exportTimeoutMillis\n : (getNumberFromEnv('OTEL_BSP_EXPORT_TIMEOUT') ?? 30000);\n\n this._shutdownOnce = new BindOnceFuture(this._shutdown, this);\n\n if (this._maxExportBatchSize > this._maxQueueSize) {\n diag.warn(\n 'BatchSpanProcessor: maxExportBatchSize must be smaller or equal to maxQueueSize, setting maxExportBatchSize to match maxQueueSize'\n );\n this._maxExportBatchSize = this._maxQueueSize;\n }\n }\n\n forceFlush(): Promise<void> {\n if (this._shutdownOnce.isCalled) {\n return this._shutdownOnce.promise;\n }\n return this._flushAll();\n }\n\n // does nothing.\n onStart(_span: Span, _parentContext: Context): void {}\n\n onEnd(span: ReadableSpan): void {\n if (this._shutdownOnce.isCalled) {\n return;\n }\n\n if ((span.spanContext().traceFlags & TraceFlags.SAMPLED) === 0) {\n return;\n }\n\n this._addToBuffer(span);\n }\n\n shutdown(): Promise<void> {\n return this._shutdownOnce.call();\n }\n\n private _shutdown() {\n return Promise.resolve()\n .then(() => {\n return this.onShutdown();\n })\n .then(() => {\n return this._flushAll();\n })\n .then(() => {\n return this._exporter.shutdown();\n });\n }\n\n /** Add a span in the buffer. */\n private _addToBuffer(span: ReadableSpan) {\n if (this._finishedSpans.length >= this._maxQueueSize) {\n // limit reached, drop span\n\n if (this._droppedSpansCount === 0) {\n diag.debug('maxQueueSize reached, dropping spans');\n }\n this._droppedSpansCount++;\n\n return;\n }\n\n if (this._droppedSpansCount > 0) {\n // some spans were dropped, log once with count of spans dropped\n diag.warn(\n `Dropped ${this._droppedSpansCount} spans because maxQueueSize reached`\n );\n this._droppedSpansCount = 0;\n }\n\n this._finishedSpans.push(span);\n this._maybeStartTimer();\n }\n\n /**\n * Send all spans to the exporter respecting the batch size limit\n * This function is used only on forceFlush or shutdown,\n * for all other cases _flush should be used\n * */\n private _flushAll(): Promise<void> {\n return new Promise((resolve, reject) => {\n const promises = [];\n // calculate number of batches\n const count = Math.ceil(\n this._finishedSpans.length / this._maxExportBatchSize\n );\n for (let i = 0, j = count; i < j; i++) {\n promises.push(this._flushOneBatch());\n }\n Promise.all(promises)\n .then(() => {\n resolve();\n })\n .catch(reject);\n });\n }\n\n private _flushOneBatch(): Promise<void> {\n this._clearTimer();\n if (this._finishedSpans.length === 0) {\n return Promise.resolve();\n }\n return new Promise((resolve, reject) => {\n const timer = setTimeout(() => {\n // don't wait anymore for export, this way the next batch can start\n reject(new Error('Timeout'));\n }, this._exportTimeoutMillis);\n // prevent downstream exporter calls from generating spans\n context.with(suppressTracing(context.active()), () => {\n // Reset the finished spans buffer here because the next invocations of the _flush method\n // could pass the same finished spans to the exporter if the buffer is cleared\n // outside the execution of this callback.\n let spans: ReadableSpan[];\n if (this._finishedSpans.length <= this._maxExportBatchSize) {\n spans = this._finishedSpans;\n this._finishedSpans = [];\n } else {\n spans = this._finishedSpans.splice(0, this._maxExportBatchSize);\n }\n\n const doExport = () =>\n this._exporter.export(spans, result => {\n clearTimeout(timer);\n if (result.code === ExportResultCode.SUCCESS) {\n resolve();\n } else {\n reject(\n result.error ??\n new Error('BatchSpanProcessor: span export failed')\n );\n }\n });\n\n let pendingResources: Array<Promise<void>> | null = null;\n for (let i = 0, len = spans.length; i < len; i++) {\n const span = spans[i];\n if (\n span.resource.asyncAttributesPending &&\n span.resource.waitForAsyncAttributes\n ) {\n pendingResources ??= [];\n pendingResources.push(span.resource.waitForAsyncAttributes());\n }\n }\n\n // Avoid scheduling a promise to make the behavior more predictable and easier to test\n if (pendingResources === null) {\n doExport();\n } else {\n Promise.all(pendingResources).then(doExport, err => {\n globalErrorHandler(err);\n reject(err);\n });\n }\n });\n });\n }\n\n private _maybeStartTimer() {\n if (this._isExporting) return;\n const flush = () => {\n this._isExporting = true;\n this._flushOneBatch()\n .finally(() => {\n this._isExporting = false;\n if (this._finishedSpans.length > 0) {\n this._clearTimer();\n this._maybeStartTimer();\n }\n })\n .catch(e => {\n this._isExporting = false;\n globalErrorHandler(e);\n });\n };\n // we only wait if the queue doesn't have enough elements yet\n if (this._finishedSpans.length >= this._maxExportBatchSize) {\n return flush();\n }\n if (this._timer !== undefined) return;\n this._timer = setTimeout(() => flush(), this._scheduledDelayMillis);\n\n // depending on runtime, this may be a 'number' or NodeJS.Timeout\n if (typeof this._timer !== 'number') {\n this._timer.unref();\n }\n }\n\n private _clearTimer() {\n if (this._timer !== undefined) {\n clearTimeout(this._timer);\n this._timer = undefined;\n }\n }\n\n protected abstract onShutdown(): void;\n}\n"]}
|
package/node_modules/@opentelemetry/sdk-trace-base/build/esnext/export/SimpleSpanProcessor.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SimpleSpanProcessor.js","sourceRoot":"","sources":["../../../src/export/SimpleSpanProcessor.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,EAAE,UAAU,EAAE,MA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AAC,aAAa,CAAC,CAC3C,CAAC;IACJ,CAAC;IAEO,KAAK,CAAC,SAAS,CAAC,IAAkB;QACxC,IAAI,IAAI,CAAC,QAAQ,CAAC,sBAAsB,EAAE;YACxC,sDAAsD;YACtD,MAAM,IAAI,CAAC,QAAQ,CAAC,sBAAsB,EAAE,EAAE,CAAC;SAChD;QAED,MAAM,MAAM,GAAG,MAAM,QAAQ,CAAC,OAAO,CAAC,IAAI,CAAC,SAAS,EAAE,CAAC,IAAI,CAAC,CAAC,CAAC;QAC9D,IAAI,MAAM,CAAC,IAAI,KAAK,gBAAgB,CAAC,OAAO,EAAE;YAC5C,MAAM,CACJ,MAAM,CAAC,KAAK;gBACZ,IAAI,KAAK,CAAC,mDAAmD,MAAM,GAAG,CAAC,CACxE,CAAC;SACH;IACH,CAAC;IAED,QAAQ;QACN,OAAO,IAAI,CAAC,aAAa,CAAC,IAAI,EAAE,CAAC;IACnC,CAAC;IAEO,SAAS;QACf,OAAO,IAAI,CAAC,SAAS,CAAC,QAAQ,EAAE,CAAC;IACnC,CAAC;CACF","sourcesContent":["/*\n * Copyright The OpenTelemetry Authors\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport type { Context } from '@opentelemetry/api';\nimport { TraceFlags } from '@opentelemetry/api';\nimport {\n internal,\n ExportResultCode,\n globalErrorHandler,\n BindOnceFuture,\n} from '@opentelemetry/core';\nimport type { Span } from '../Span';\nimport type { SpanProcessor } from '../SpanProcessor';\nimport type { ReadableSpan } from './ReadableSpan';\nimport type { SpanExporter } from './SpanExporter';\n\n/**\n * An implementation of the {@link SpanProcessor} that converts the {@link Span}\n * to {@link ReadableSpan} and passes it to the configured exporter.\n *\n * Only spans that are sampled are converted.\n *\n * NOTE: This {@link SpanProcessor} exports every ended span individually instead of batching spans together, which causes significant performance overhead with most exporters. For production use, please consider using the {@link BatchSpanProcessor} instead.\n */\nexport class SimpleSpanProcessor implements SpanProcessor {\n private readonly _exporter: SpanExporter;\n private _shutdownOnce: BindOnceFuture<void>;\n private _pendingExports: Set<Promise<void>>;\n\n constructor(exporter: SpanExporter) {\n this._exporter = exporter;\n this._shutdownOnce = new BindOnceFuture(this._shutdown, this);\n this._pendingExports = new Set<Promise<void>>();\n }\n\n async forceFlush(): Promise<void> {\n await Promise.all(Array.from(this._pendingExports));\n if (this._exporter.forceFlush) {\n await this._exporter.forceFlush();\n }\n }\n\n onStart(_span: Span, _parentContext: Context): void {}\n\n onEnd(span: ReadableSpan): void {\n if (this._shutdownOnce.isCalled) {\n return;\n }\n\n if ((span.spanContext().traceFlags & TraceFlags.SAMPLED) === 0) {\n return;\n }\n\n const pendingExport = this._doExport(span).catch(err =>\n globalErrorHandler(err)\n );\n // Enqueue this export to the pending list so it can be flushed by the user.\n this._pendingExports.add(pendingExport);\n void pendingExport.finally(() =>\n this._pendingExports.delete(pendingExport)\n );\n }\n\n private async _doExport(span: ReadableSpan): Promise<void> {\n if (span.resource.asyncAttributesPending) {\n // Ensure resource is fully resolved before exporting.\n await span.resource.waitForAsyncAttributes?.();\n }\n\n const result = await internal._export(this._exporter, [span]);\n if (result.code !== ExportResultCode.SUCCESS) {\n throw (\n result.error ??\n new Error(`SimpleSpanProcessor: span export failed (status ${result})`)\n );\n }\n }\n\n shutdown(): Promise<void> {\n return this._shutdownOnce.call();\n }\n\n private _shutdown(): Promise<void> {\n return this._exporter.shutdown();\n }\n}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AACnE,OAAO,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AACnE,OAAO,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;AAErE,OAAO,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AAEnE,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAC/D,OAAO,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAC9D,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAC5D,OAAO,EAAE,kBAAkB,EAAE,MAAM,8BAA8B,CAAC;AAClE,OAAO,EAAE,wBAAwB,EAAE,MAAM,oCAAoC,CAAC;AAC9E,OAAO,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAC","sourcesContent":["/*\n * Copyright The OpenTelemetry Authors\n * SPDX-License-Identifier: Apache-2.0\n */\n\nexport { BasicTracerProvider } from './BasicTracerProvider';\nexport { BatchSpanProcessor, RandomIdGenerator } from './platform';\nexport { ConsoleSpanExporter } from './export/ConsoleSpanExporter';\nexport { InMemorySpanExporter } from './export/InMemorySpanExporter';\nexport type { ReadableSpan } from './export/ReadableSpan';\nexport { SimpleSpanProcessor } from './export/SimpleSpanProcessor';\nexport type { SpanExporter } from './export/SpanExporter';\nexport { NoopSpanProcessor } from './export/NoopSpanProcessor';\nexport { AlwaysOffSampler } from './sampler/AlwaysOffSampler';\nexport { AlwaysOnSampler } from './sampler/AlwaysOnSampler';\nexport { ParentBasedSampler } from './sampler/ParentBasedSampler';\nexport { TraceIdRatioBasedSampler } from './sampler/TraceIdRatioBasedSampler';\nexport { SamplingDecision } from './Sampler';\nexport type { Sampler, SamplingResult } from './Sampler';\nexport type { Span } from './Span';\nexport type { SpanProcessor } from './SpanProcessor';\nexport type { TimedEvent } from './TimedEvent';\nexport type {\n BatchSpanProcessorBrowserConfig,\n BufferConfig,\n GeneralLimits,\n SDKRegistrationConfig,\n SpanLimits,\n TracerConfig,\n} from './types';\nexport type { IdGenerator } from './IdGenerator';\n"]}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { BatchSpanProcessorBase } from '../../../export/BatchSpanProcessorBase';
|
|
2
|
-
import type { SpanExporter } from '../../../export/SpanExporter';
|
|
3
|
-
import type { BatchSpanProcessorBrowserConfig } from '../../../types';
|
|
4
|
-
export declare class BatchSpanProcessor extends BatchSpanProcessorBase<BatchSpanProcessorBrowserConfig> {
|
|
5
|
-
private _visibilityChangeListener?;
|
|
6
|
-
private _pageHideListener?;
|
|
7
|
-
constructor(_exporter: SpanExporter, config?: BatchSpanProcessorBrowserConfig);
|
|
8
|
-
private onInit;
|
|
9
|
-
protected onShutdown(): void;
|
|
10
|
-
}
|
|
11
|
-
//# sourceMappingURL=BatchSpanProcessor.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"BatchSpanProcessor.js","sourceRoot":"","sources":["../../../../../src/platform/browser/export/BatchSpanProcessor.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,sBAAsB,EAAE,MAAM,wCAAwC,CAAC;AAGhF,OAAO,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAEzD,MAAM,OAAO,kBAAmB,SAAQ,sBAAuD;IACrF,yBAAyB,CAAc;IACvC,iBAAiB,CAAc;IAEvC,YACE,SAAuB,EACvB,MAAwC;QAExC,KAAK,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC;QACzB,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;IAEO,MAAM,CAAC,MAAwC;QACrD,IACE,MAAM,EAAE,8BAA8B,KAAK,IAAI;YAC/C,OAAO,QAAQ,KAAK,WAAW,EAC/B;YACA,IAAI,CAAC,yBAAyB,GAAG,GAAG,EAAE;gBACpC,IAAI,QAAQ,CAAC,eAAe,KAAK,QAAQ,EAAE;oBACzC,IAAI,CAAC,UAAU,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC,EAAE;wBAC9B,kBAAkB,CAAC,KAAK,CAAC,CAAC;oBAC5B,CAAC,CAAC,CAAC;iBACJ;YACH,CAAC,CAAC;YACF,IAAI,CAAC,iBAAiB,GAAG,GAAG,EAAE;gBAC5B,IAAI,CAAC,UAAU,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC,EAAE;oBAC9B,kBAAkB,CAAC,KAAK,CAAC,CAAC;gBAC5B,CAAC,CAAC,CAAC;YACL,CAAC,CAAC;YACF,QAAQ,CAAC,gBAAgB,CACvB,kBAAkB,EAClB,IAAI,CAAC,yBAAyB,CAC/B,CAAC;YAEF,oGAAoG;YACpG,QAAQ,CAAC,gBAAgB,CAAC,UAAU,EAAE,IAAI,CAAC,iBAAiB,CAAC,CAAC;SAC/D;IACH,CAAC;IAES,UAAU;QAClB,IAAI,OAAO,QAAQ,KAAK,WAAW,EAAE;YACnC,IAAI,IAAI,CAAC,yBAAyB,EAAE;gBAClC,QAAQ,CAAC,mBAAmB,CAC1B,kBAAkB,EAClB,IAAI,CAAC,yBAAyB,CAC/B,CAAC;aACH;YACD,IAAI,IAAI,CAAC,iBAAiB,EAAE;gBAC1B,QAAQ,CAAC,mBAAmB,CAAC,UAAU,EAAE,IAAI,CAAC,iBAAiB,CAAC,CAAC;aAClE;SACF;IACH,CAAC;CACF","sourcesContent":["/*\n * Copyright The OpenTelemetry Authors\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { BatchSpanProcessorBase } from '../../../export/BatchSpanProcessorBase';\nimport type { SpanExporter } from '../../../export/SpanExporter';\nimport type { BatchSpanProcessorBrowserConfig } from '../../../types';\nimport { globalErrorHandler } from '@opentelemetry/core';\n\nexport class BatchSpanProcessor extends BatchSpanProcessorBase<BatchSpanProcessorBrowserConfig> {\n private _visibilityChangeListener?: () => void;\n private _pageHideListener?: () => void;\n\n constructor(\n _exporter: SpanExporter,\n config?: BatchSpanProcessorBrowserConfig\n ) {\n super(_exporter, config);\n this.onInit(config);\n }\n\n private onInit(config?: BatchSpanProcessorBrowserConfig): void {\n if (\n config?.disableAutoFlushOnDocumentHide !== true &&\n typeof document !== 'undefined'\n ) {\n this._visibilityChangeListener = () => {\n if (document.visibilityState === 'hidden') {\n this.forceFlush().catch(error => {\n globalErrorHandler(error);\n });\n }\n };\n this._pageHideListener = () => {\n this.forceFlush().catch(error => {\n globalErrorHandler(error);\n });\n };\n document.addEventListener(\n 'visibilitychange',\n this._visibilityChangeListener\n );\n\n // use 'pagehide' event as a fallback for Safari; see https://bugs.webkit.org/show_bug.cgi?id=116769\n document.addEventListener('pagehide', this._pageHideListener);\n }\n }\n\n protected onShutdown(): void {\n if (typeof document !== 'undefined') {\n if (this._visibilityChangeListener) {\n document.removeEventListener(\n 'visibilitychange',\n this._visibilityChangeListener\n );\n }\n if (this._pageHideListener) {\n document.removeEventListener('pagehide', this._pageHideListener);\n }\n }\n }\n}\n"]}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Determines whether the span has a parent span, and if so, [whether it is a remote parent](https://opentelemetry.io/docs/specs/otel/trace/api/#isremote)
|
|
3
|
-
*
|
|
4
|
-
* @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`.
|
|
5
|
-
*/
|
|
6
|
-
export declare const ATTR_OTEL_SPAN_PARENT_ORIGIN: "otel.span.parent.origin";
|
|
7
|
-
/**
|
|
8
|
-
* The result value of the sampler for this span
|
|
9
|
-
*
|
|
10
|
-
* @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`.
|
|
11
|
-
*/
|
|
12
|
-
export declare const ATTR_OTEL_SPAN_SAMPLING_RESULT: "otel.span.sampling_result";
|
|
13
|
-
/**
|
|
14
|
-
* The number of created spans with `recording=true` for which the end operation has not been called yet.
|
|
15
|
-
*
|
|
16
|
-
* @experimental This metric is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`.
|
|
17
|
-
*/
|
|
18
|
-
export declare const METRIC_OTEL_SDK_SPAN_LIVE: "otel.sdk.span.live";
|
|
19
|
-
/**
|
|
20
|
-
* The number of created spans.
|
|
21
|
-
*
|
|
22
|
-
* @note Implementations **MUST** record this metric for all spans, even for non-recording ones.
|
|
23
|
-
*
|
|
24
|
-
* @experimental This metric is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`.
|
|
25
|
-
*/
|
|
26
|
-
export declare const METRIC_OTEL_SDK_SPAN_STARTED: "otel.sdk.span.started";
|
|
27
|
-
//# sourceMappingURL=semconv.d.ts.map
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright The OpenTelemetry Authors
|
|
3
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
4
|
-
*/
|
|
5
|
-
/*
|
|
6
|
-
* This file contains a copy of unstable semantic convention definitions
|
|
7
|
-
* used by this package.
|
|
8
|
-
* @see https://github.com/open-telemetry/opentelemetry-js/tree/main/semantic-conventions#unstable-semconv
|
|
9
|
-
*/
|
|
10
|
-
/**
|
|
11
|
-
* Determines whether the span has a parent span, and if so, [whether it is a remote parent](https://opentelemetry.io/docs/specs/otel/trace/api/#isremote)
|
|
12
|
-
*
|
|
13
|
-
* @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`.
|
|
14
|
-
*/
|
|
15
|
-
export const ATTR_OTEL_SPAN_PARENT_ORIGIN = 'otel.span.parent.origin';
|
|
16
|
-
/**
|
|
17
|
-
* The result value of the sampler for this span
|
|
18
|
-
*
|
|
19
|
-
* @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`.
|
|
20
|
-
*/
|
|
21
|
-
export const ATTR_OTEL_SPAN_SAMPLING_RESULT = 'otel.span.sampling_result';
|
|
22
|
-
/**
|
|
23
|
-
* The number of created spans with `recording=true` for which the end operation has not been called yet.
|
|
24
|
-
*
|
|
25
|
-
* @experimental This metric is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`.
|
|
26
|
-
*/
|
|
27
|
-
export const METRIC_OTEL_SDK_SPAN_LIVE = 'otel.sdk.span.live';
|
|
28
|
-
/**
|
|
29
|
-
* The number of created spans.
|
|
30
|
-
*
|
|
31
|
-
* @note Implementations **MUST** record this metric for all spans, even for non-recording ones.
|
|
32
|
-
*
|
|
33
|
-
* @experimental This metric is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`.
|
|
34
|
-
*/
|
|
35
|
-
export const METRIC_OTEL_SDK_SPAN_STARTED = 'otel.sdk.span.started';
|
|
36
|
-
//# sourceMappingURL=semconv.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"semconv.js","sourceRoot":"","sources":["../../src/semconv.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;GAIG;AAEH;;;;GAIG;AACH,MAAM,CAAC,MAAM,4BAA4B,GAAG,yBAAkC,CAAC;AAE/E;;;;GAIG;AACH,MAAM,CAAC,MAAM,8BAA8B,GACzC,2BAAoC,CAAC;AAEvC;;;;GAIG;AACH,MAAM,CAAC,MAAM,yBAAyB,GAAG,oBAA6B,CAAC;AAEvE;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,4BAA4B,GAAG,uBAAgC,CAAC","sourcesContent":["/*\n * Copyright The OpenTelemetry Authors\n * SPDX-License-Identifier: Apache-2.0\n */\n\n/*\n * This file contains a copy of unstable semantic convention definitions\n * used by this package.\n * @see https://github.com/open-telemetry/opentelemetry-js/tree/main/semantic-conventions#unstable-semconv\n */\n\n/**\n * Determines whether the span has a parent span, and if so, [whether it is a remote parent](https://opentelemetry.io/docs/specs/otel/trace/api/#isremote)\n *\n * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`.\n */\nexport const ATTR_OTEL_SPAN_PARENT_ORIGIN = 'otel.span.parent.origin' as const;\n\n/**\n * The result value of the sampler for this span\n *\n * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`.\n */\nexport const ATTR_OTEL_SPAN_SAMPLING_RESULT =\n 'otel.span.sampling_result' as const;\n\n/**\n * The number of created spans with `recording=true` for which the end operation has not been called yet.\n *\n * @experimental This metric is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`.\n */\nexport const METRIC_OTEL_SDK_SPAN_LIVE = 'otel.sdk.span.live' as const;\n\n/**\n * The number of created spans.\n *\n * @note Implementations **MUST** record this metric for all spans, even for non-recording ones.\n *\n * @experimental This metric is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`.\n */\nexport const METRIC_OTEL_SDK_SPAN_STARTED = 'otel.sdk.span.started' as const;\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":"AAAA;;;GAGG","sourcesContent":["/*\n * Copyright The OpenTelemetry Authors\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport type {\n ContextManager,\n MeterProvider,\n TextMapPropagator,\n} from '@opentelemetry/api';\nimport type { Resource } from '@opentelemetry/resources';\nimport type { IdGenerator } from './IdGenerator';\nimport type { Sampler } from './Sampler';\nimport type { SpanProcessor } from './SpanProcessor';\n\n/**\n * TracerConfig provides an interface for configuring a Basic Tracer.\n */\nexport interface TracerConfig {\n /**\n * Sampler determines if a span should be recorded or should be a NoopSpan.\n */\n sampler?: Sampler;\n\n /** General Limits */\n generalLimits?: GeneralLimits;\n\n /** Span Limits */\n spanLimits?: SpanLimits;\n\n /** Resource associated with trace telemetry */\n resource?: Resource;\n\n /**\n * Generator of trace and span IDs\n * The default idGenerator generates random ids\n */\n idGenerator?: IdGenerator;\n\n /**\n * How long the forceFlush can run before it is cancelled.\n * The default value is 30000ms\n */\n forceFlushTimeoutMillis?: number;\n\n /**\n * List of SpanProcessor for the tracer\n */\n spanProcessors?: SpanProcessor[];\n\n /**\n * A meter provider to record trace SDK metrics to.\n * @experimental This option is experimental and is subject to breaking changes in minor releases.\n */\n meterProvider?: MeterProvider;\n}\n\n/**\n * Configuration options for registering the API with the SDK.\n * Undefined values may be substituted for defaults, and null\n * values will not be registered.\n */\nexport interface SDKRegistrationConfig {\n /** Propagator to register as the global propagator */\n propagator?: TextMapPropagator | null;\n\n /** Context manager to register as the global context manager */\n contextManager?: ContextManager | null;\n}\n\n/** Global configuration limits of trace service */\nexport interface GeneralLimits {\n /** attributeValueLengthLimit is maximum allowed attribute value size */\n attributeValueLengthLimit?: number;\n /** attributeCountLimit is number of attributes per trace */\n attributeCountLimit?: number;\n}\n\n/** Global configuration of trace service */\nexport interface SpanLimits {\n /** attributeValueLengthLimit is maximum allowed attribute value size */\n attributeValueLengthLimit?: number;\n /** attributeCountLimit is number of attributes per span */\n attributeCountLimit?: number;\n /** linkCountLimit is number of links per span */\n linkCountLimit?: number;\n /** eventCountLimit is number of message events per span */\n eventCountLimit?: number;\n /** attributePerEventCountLimit is the maximum number of attributes allowed per span event */\n attributePerEventCountLimit?: number;\n /** attributePerLinkCountLimit is the maximum number of attributes allowed per span link */\n attributePerLinkCountLimit?: number;\n}\n\n/** Interface configuration for a buffer. */\nexport interface BufferConfig {\n /** The maximum batch size of every export. It must be smaller or equal to\n * maxQueueSize. The default value is 512. */\n maxExportBatchSize?: number;\n\n /** The delay interval in milliseconds between two consecutive exports.\n * The default value is 5000ms. */\n scheduledDelayMillis?: number;\n\n /** How long the export can run before it is cancelled.\n * The default value is 30000ms */\n exportTimeoutMillis?: number;\n\n /** The maximum queue size. After the size is reached spans are dropped.\n * The default value is 2048. */\n maxQueueSize?: number;\n}\n\n/** Interface configuration for BatchSpanProcessor on browser */\nexport interface BatchSpanProcessorBrowserConfig extends BufferConfig {\n /** Disable flush when a user navigates to a new page, closes the tab or the browser, or,\n * on mobile, switches to a different app. Auto flush is enabled by default. */\n disableAutoFlushOnDocumentHide?: boolean;\n}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"BasicTracerProvider.js","sourceRoot":"","sources":["../../src/BasicTracerProvider.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAGH,8CAA4C;AAE5C,wDAA2D;AAE3D,qCAAkC;AAClC,qCAA6C;AAC7C,6DAA0D;AAE1D,uCAA8C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, Tracer as ApiTracer } from '@opentelemetry/api';\nimport { merge } from '@opentelemetry/core';\nimport type { Resource } from '@opentelemetry/resources';\nimport { defaultResource } from '@opentelemetry/resources';\nimport type { SpanProcessor } from './SpanProcessor';\nimport { Tracer } from './Tracer';\nimport { loadDefaultConfig } from './config';\nimport { MultiSpanProcessor } from './MultiSpanProcessor';\nimport type { TracerConfig } from './types';\nimport { reconfigureLimits } from './utility';\nimport type { InspectFn, InspectStylizeOptions } from './inspect';\nimport {\n formatInspect,\n inspectCustom,\n settledResourceAttributes,\n} from './inspect';\n\nexport enum ForceFlushState {\n 'resolved',\n 'timeout',\n 'error',\n 'unresolved',\n}\n\n/**\n * This class represents a basic tracer provider which platform libraries can extend\n */\nexport class BasicTracerProvider implements TracerProvider {\n private readonly _config: TracerConfig;\n private readonly _tracers: Map<string, Tracer> = new Map();\n private readonly _resource: Resource;\n private readonly _activeSpanProcessor: MultiSpanProcessor;\n\n constructor(config: TracerConfig = {}) {\n const mergedConfig = merge(\n {},\n loadDefaultConfig(),\n reconfigureLimits(config)\n );\n this._resource = mergedConfig.resource ?? defaultResource();\n\n this._config = Object.assign({}, mergedConfig, {\n resource: this._resource,\n });\n\n const spanProcessors: SpanProcessor[] = [];\n\n if (config.spanProcessors?.length) {\n spanProcessors.push(...config.spanProcessors);\n }\n\n this._activeSpanProcessor = new MultiSpanProcessor(spanProcessors);\n }\n\n getTracer(\n name: string,\n version?: string,\n options?: { schemaUrl?: string }\n ): ApiTracer {\n const key = `${name}@${version || ''}:${options?.schemaUrl || ''}`;\n if (!this._tracers.has(key)) {\n this._tracers.set(\n key,\n new Tracer(\n { name, version, schemaUrl: options?.schemaUrl },\n this._config,\n this._resource,\n this._activeSpanProcessor\n )\n );\n }\n\n return this._tracers.get(key)!;\n }\n\n forceFlush(): Promise<void> {\n const timeout = this._config.forceFlushTimeoutMillis;\n const promises = this._activeSpanProcessor['_spanProcessors'].map(\n (spanProcessor: SpanProcessor) => {\n return new Promise(resolve => {\n let state: ForceFlushState;\n const timeoutInterval = setTimeout(() => {\n resolve(\n new Error(\n `Span processor did not completed within timeout period of ${timeout} ms`\n )\n );\n state = ForceFlushState.timeout;\n }, timeout);\n\n spanProcessor\n .forceFlush()\n .then(() => {\n clearTimeout(timeoutInterval);\n if (state !== ForceFlushState.timeout) {\n state = ForceFlushState.resolved;\n resolve(state);\n }\n })\n .catch(error => {\n clearTimeout(timeoutInterval);\n state = ForceFlushState.error;\n resolve(error);\n });\n });\n }\n );\n\n return new Promise<void>((resolve, reject) => {\n Promise.all(promises)\n .then(results => {\n const errors = results.filter(\n result => result !== ForceFlushState.resolved\n );\n if (errors.length > 0) {\n reject(errors);\n } else {\n resolve();\n }\n })\n .catch(error => reject([error]));\n });\n }\n\n shutdown(): Promise<void> {\n return this._activeSpanProcessor.shutdown();\n }\n\n [inspectCustom](\n depth: number,\n options: InspectStylizeOptions | undefined,\n inspect: InspectFn | undefined\n ): unknown {\n const processors = this._activeSpanProcessor[\n '_spanProcessors'\n ] as SpanProcessor[];\n const payload = {\n resource: { attributes: settledResourceAttributes(this._resource) },\n tracers: Array.from(this._tracers.keys()),\n spanProcessors: processors.map(\n p => p.constructor?.name ?? 'SpanProcessor'\n ),\n };\n return formatInspect(\n 'BasicTracerProvider',\n payload,\n depth,\n options,\n inspect\n );\n }\n}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Tracer.js","sourceRoot":"","sources":["../../src/Tracer.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAEH,0CAA0C;AAE1C,8CAA8E;AAC9E,iCAAkC;AAElC,uCAAwC;AAIxC,yCAA+C;AAE/C,mDAAgD;AAChD,uCAAoC;AAEpC,uCAImB;AAEnB;;GAEG;AACH,MAAa,MAAM;IACA,QAAQ,CAAU;IAClB,cAAc,CAAgB;IAC9B,WAAW,CAAa;IACxB,YAAY,CAAc;IAClC,oBAAoB,CAAuB;IAEnC,SAAS,CAAW;IACpB,cAAc,CAAgB;IAC9B,c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ACnE,UAAU,EAAE,IAAI,CAAC,WAAW;YAC5B,aAAa,EAAE,IAAI,CAAC,cAAc;SACnC,CAAC;QACF,OAAO,IAAA,uBAAa,EAAC,QAAQ,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;IACnE,CAAC;CACF;AA9PD,wBA8PC","sourcesContent":["/*\n * Copyright The OpenTelemetry Authors\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport * as api from '@opentelemetry/api';\nimport type { InstrumentationScope } from '@opentelemetry/core';\nimport { sanitizeAttributes, isTracingSuppressed } from '@opentelemetry/core';\nimport { SpanImpl } from './Span';\nimport type { GeneralLimits, SpanLimits, TracerConfig } from './types';\nimport { mergeConfig } from './utility';\nimport type { SpanProcessor } from './SpanProcessor';\nimport type { Sampler } from './Sampler';\nimport type { IdGenerator } from './IdGenerator';\nimport { RandomIdGenerator } from './platform';\nimport type { Resource } from '@opentelemetry/resources';\nimport { TracerMetrics } from './TracerMetrics';\nimport { VERSION } from './version';\nimport type { InspectFn, InspectStylizeOptions } from './inspect';\nimport {\n formatInspect,\n inspectCustom,\n settledResourceAttributes,\n} from './inspect';\n\n/**\n * This class represents a basic tracer.\n */\nexport class Tracer implements api.Tracer {\n private readonly _sampler: Sampler;\n private readonly _generalLimits: GeneralLimits;\n private readonly _spanLimits: SpanLimits;\n private readonly _idGenerator: IdGenerator;\n readonly instrumentationScope: InstrumentationScope;\n\n private readonly _resource: Resource;\n private readonly _spanProcessor: SpanProcessor;\n private readonly _tracerMetrics: TracerMetrics;\n\n /**\n * Constructs a new Tracer instance.\n */\n constructor(\n instrumentationScope: InstrumentationScope,\n config: TracerConfig,\n resource: Resource,\n spanProcessor: SpanProcessor\n ) {\n const localConfig = mergeConfig(config);\n this._sampler = localConfig.sampler;\n this._generalLimits = localConfig.generalLimits;\n this._spanLimits = localConfig.spanLimits;\n this._idGenerator = config.idGenerator || new RandomIdGenerator();\n this._resource = resource;\n this._spanProcessor = spanProcessor;\n this.instrumentationScope = instrumentationScope;\n\n const meter = localConfig.meterProvider\n ? localConfig.meterProvider.getMeter('@opentelemetry/sdk-trace', VERSION)\n : api.createNoopMeter();\n this._tracerMetrics = new TracerMetrics(meter);\n }\n\n /**\n * Starts a new Span or returns the default NoopSpan based on the sampling\n * decision.\n */\n startSpan(\n name: string,\n options: api.SpanOptions = {},\n context = api.context.active()\n ): api.Span {\n // remove span from context in case a root span is requested via options\n if (options.root) {\n context = api.trace.deleteSpan(context);\n }\n const parentSpan = api.trace.getSpan(context);\n\n if (isTracingSuppressed(context)) {\n api.diag.debug('Instrumentation suppressed, returning Noop Span');\n const nonRecordingSpan = api.trace.wrapSpanContext(\n api.INVALID_SPAN_CONTEXT\n );\n return nonRecordingSpan;\n }\n\n const parentSpanContext = parentSpan?.spanContext();\n const spanId = this._idGenerator.generateSpanId();\n let validParentSpanContext;\n let traceId;\n let traceState;\n if (\n !parentSpanContext ||\n !api.trace.isSpanContextValid(parentSpanContext)\n ) {\n // New root span.\n traceId = this._idGenerator.generateTraceId();\n } else {\n // New child span.\n traceId = parentSpanContext.traceId;\n traceState = parentSpanContext.traceState;\n validParentSpanContext = parentSpanContext;\n }\n\n const spanKind = options.kind ?? api.SpanKind.INTERNAL;\n const links = (options.links ?? []).map(link => {\n return {\n context: link.context,\n attributes: sanitizeAttributes(link.attributes),\n };\n });\n const attributes = sanitizeAttributes(options.attributes);\n // make sampling decision\n const samplingResult = this._sampler.shouldSample(\n context,\n traceId,\n name,\n spanKind,\n attributes,\n links\n );\n\n const recordEndMetrics = this._tracerMetrics.startSpan(\n parentSpanContext,\n samplingResult.decision\n );\n\n traceState = samplingResult.traceState ?? traceState;\n\n const traceFlags =\n samplingResult.decision === api.SamplingDecision.RECORD_AND_SAMPLED\n ? api.TraceFlags.SAMPLED\n : api.TraceFlags.NONE;\n const spanContext = { traceId, spanId, traceFlags, traceState };\n if (samplingResult.decision === api.SamplingDecision.NOT_RECORD) {\n api.diag.debug(\n 'Recording is off, propagating context in a non-recording span'\n );\n const nonRecordingSpan = api.trace.wrapSpanContext(spanContext);\n return nonRecordingSpan;\n }\n\n // Set initial span attributes. The attributes object may have been mutated\n // by the sampler, so we sanitize the merged attributes before setting them.\n const initAttributes = sanitizeAttributes(\n Object.assign(attributes, samplingResult.attributes)\n );\n\n const span = new SpanImpl({\n resource: this._resource,\n scope: this.instrumentationScope,\n context,\n spanContext,\n name,\n kind: spanKind,\n links,\n parentSpanContext: validParentSpanContext,\n attributes: initAttributes,\n startTime: options.startTime,\n spanProcessor: this._spanProcessor,\n spanLimits: this._spanLimits,\n recordEndMetrics,\n });\n return span;\n }\n\n /**\n * Starts a new {@link Span} and calls the given function passing it the\n * created span as first argument.\n * Additionally the new span gets set in context and this context is activated\n * for the duration of the function call.\n *\n * **Important**: The callback function is responsible for calling `span.end()`\n * to finish the span. Unlike some other OpenTelemetry implementations, the span\n * is NOT automatically ended when the callback returns. If `span.end()` is not\n * called, the span will never be exported and will be silently lost.\n *\n * @param name The name of the span\n * @param [options] SpanOptions used for span creation\n * @param [context] Context to use to extract parent\n * @param fn function called in the context of the span and receives the newly created span as an argument\n * @returns return value of fn\n * @example\n * const something = tracer.startActiveSpan('op', span => {\n * try {\n * do some work\n * span.setStatus({code: SpanStatusCode.OK});\n * return something;\n * } catch (err) {\n * span.setStatus({\n * code: SpanStatusCode.ERROR,\n * message: err.message,\n * });\n * throw err;\n * } finally {\n * span.end();\n * }\n * });\n * @example\n * const span = tracer.startActiveSpan('op', span => {\n * try {\n * do some work\n * return span;\n * } catch (err) {\n * span.setStatus({\n * code: SpanStatusCode.ERROR,\n * message: err.message,\n * });\n * throw err;\n * }\n * });\n * do some more work\n * span.end();\n */\n startActiveSpan<F extends (span: api.Span) => ReturnType<F>>(\n name: string,\n fn: F\n ): ReturnType<F>;\n startActiveSpan<F extends (span: api.Span) => ReturnType<F>>(\n name: string,\n opts: api.SpanOptions,\n fn: F\n ): ReturnType<F>;\n startActiveSpan<F extends (span: api.Span) => ReturnType<F>>(\n name: string,\n opts: api.SpanOptions,\n ctx: api.Context,\n fn: F\n ): ReturnType<F>;\n startActiveSpan<F extends (span: api.Span) => ReturnType<F>>(\n name: string,\n arg2?: F | api.SpanOptions,\n arg3?: F | api.Context,\n arg4?: F\n ): ReturnType<F> | undefined {\n let opts: api.SpanOptions | undefined;\n let ctx: api.Context | undefined;\n let fn: F;\n\n if (arguments.length < 2) {\n return;\n } else if (arguments.length === 2) {\n fn = arg2 as F;\n } else if (arguments.length === 3) {\n opts = arg2 as api.SpanOptions | undefined;\n fn = arg3 as F;\n } else {\n opts = arg2 as api.SpanOptions | undefined;\n ctx = arg3 as api.Context | undefined;\n fn = arg4 as F;\n }\n\n const parentContext = ctx ?? api.context.active();\n const span = this.startSpan(name, opts, parentContext);\n const contextWithSpanSet = api.trace.setSpan(parentContext, span);\n\n return api.context.with(contextWithSpanSet, fn, undefined, span);\n }\n\n /** Returns the active {@link GeneralLimits}. */\n getGeneralLimits(): GeneralLimits {\n return this._generalLimits;\n }\n\n /** Returns the active {@link SpanLimits}. */\n getSpanLimits(): SpanLimits {\n return this._spanLimits;\n }\n\n [inspectCustom](\n depth: number,\n options: InspectStylizeOptions | undefined,\n inspect: InspectFn | undefined\n ): unknown {\n const payload = {\n instrumentationScope: this.instrumentationScope,\n resource: { attributes: settledResourceAttributes(this._resource) },\n spanLimits: this._spanLimits,\n generalLimits: this._generalLimits,\n };\n return formatInspect('Tracer', payload, depth, options, inspect);\n }\n}\n"]}
|