@opentelemetry/api 1.9.0 → 1.9.1
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/README.md +3 -2
- package/build/esm/api/context.d.ts +3 -1
- package/build/esm/api/context.js +23 -65
- package/build/esm/api/context.js.map +1 -1
- package/build/esm/api/diag.d.ts +3 -1
- package/build/esm/api/diag.js +28 -69
- package/build/esm/api/diag.js.map +1 -1
- package/build/esm/api/metrics.d.ts +2 -2
- package/build/esm/api/metrics.js +15 -29
- package/build/esm/api/metrics.js.map +1 -1
- package/build/esm/api/propagation.d.ts +4 -2
- package/build/esm/api/propagation.js +22 -35
- package/build/esm/api/propagation.js.map +1 -1
- package/build/esm/api/trace.d.ts +4 -2
- package/build/esm/api/trace.js +18 -29
- package/build/esm/api/trace.js.map +1 -1
- package/build/esm/baggage/context-helpers.d.ts +2 -2
- package/build/esm/baggage/context-helpers.js +2 -13
- package/build/esm/baggage/context-helpers.js.map +1 -1
- package/build/esm/baggage/internal/baggage-impl.js +23 -81
- package/build/esm/baggage/internal/baggage-impl.js.map +1 -1
- package/build/esm/baggage/internal/symbol.js +2 -13
- package/build/esm/baggage/internal/symbol.js.map +1 -1
- package/build/esm/baggage/types.d.ts +9 -2
- package/build/esm/baggage/types.js +1 -12
- package/build/esm/baggage/types.js.map +1 -1
- package/build/esm/baggage/utils.d.ts +2 -1
- package/build/esm/baggage/utils.js +6 -17
- package/build/esm/baggage/utils.js.map +1 -1
- package/build/esm/common/Attributes.d.ts +5 -1
- package/build/esm/common/Attributes.js +1 -12
- package/build/esm/common/Attributes.js.map +1 -1
- package/build/esm/common/Exception.d.ts +3 -1
- package/build/esm/common/Exception.js +1 -12
- package/build/esm/common/Exception.js.map +1 -1
- package/build/esm/common/Time.d.ts +6 -2
- package/build/esm/common/Time.js.map +1 -1
- package/build/esm/context/NoopContextManager.d.ts +1 -1
- package/build/esm/context/NoopContextManager.js +14 -58
- package/build/esm/context/NoopContextManager.js.map +1 -1
- package/build/esm/context/context.d.ts +11 -3
- package/build/esm/context/context.js +20 -24
- package/build/esm/context/context.js.map +1 -1
- package/build/esm/context/types.d.ts +6 -0
- package/build/esm/context/types.js +1 -12
- package/build/esm/context/types.js.map +1 -1
- package/build/esm/context-api.d.ts +4 -1
- package/build/esm/context-api.js +6 -14
- package/build/esm/context-api.js.map +1 -1
- package/build/esm/diag/ComponentLogger.d.ts +6 -6
- package/build/esm/diag/ComponentLogger.js +16 -75
- package/build/esm/diag/ComponentLogger.js.map +1 -1
- package/build/esm/diag/consoleLogger.d.ts +6 -1
- package/build/esm/diag/consoleLogger.js +41 -31
- package/build/esm/diag/consoleLogger.js.map +1 -1
- package/build/esm/diag/internal/logLevelLogger.d.ts +2 -1
- package/build/esm/diag/internal/logLevelLogger.js +2 -13
- package/build/esm/diag/internal/logLevelLogger.js.map +1 -1
- package/build/esm/diag/internal/noopLogger.d.ts +1 -1
- package/build/esm/diag/internal/noopLogger.js +1 -12
- package/build/esm/diag/internal/noopLogger.js.map +1 -1
- package/build/esm/diag/types.d.ts +11 -1
- package/build/esm/diag/types.js +1 -12
- package/build/esm/diag/types.js.map +1 -1
- package/build/esm/diag-api.d.ts +2 -0
- package/build/esm/diag-api.js +4 -13
- package/build/esm/diag-api.js.map +1 -1
- package/build/esm/experimental/index.d.ts +5 -1
- package/build/esm/experimental/index.js +5 -12
- package/build/esm/experimental/index.js.map +1 -1
- package/build/esm/experimental/trace/SugaredOptions.d.ts +1 -1
- package/build/esm/experimental/trace/SugaredOptions.js +1 -12
- package/build/esm/experimental/trace/SugaredOptions.js.map +1 -1
- package/build/esm/experimental/trace/SugaredTracer.d.ts +2 -2
- package/build/esm/experimental/trace/SugaredTracer.js +22 -26
- package/build/esm/experimental/trace/SugaredTracer.js.map +1 -1
- package/build/esm/index.d.ts +29 -24
- package/build/esm/index.js +9 -19
- package/build/esm/index.js.map +1 -1
- package/build/esm/internal/global-utils.d.ts +5 -5
- package/build/esm/internal/global-utils.js +20 -25
- package/build/esm/internal/global-utils.js.map +1 -1
- package/build/esm/internal/semver.js +10 -21
- package/build/esm/internal/semver.js.map +1 -1
- package/build/esm/metrics/Meter.d.ts +5 -1
- package/build/esm/metrics/Meter.js +1 -12
- package/build/esm/metrics/Meter.js.map +1 -1
- package/build/esm/metrics/MeterProvider.d.ts +3 -1
- package/build/esm/metrics/MeterProvider.js +1 -12
- package/build/esm/metrics/MeterProvider.js.map +1 -1
- package/build/esm/metrics/Metric.d.ts +79 -11
- package/build/esm/metrics/Metric.js +5 -12
- package/build/esm/metrics/Metric.js.map +1 -1
- package/build/esm/metrics/NoopMeter.d.ts +4 -2
- package/build/esm/metrics/NoopMeter.js +54 -131
- package/build/esm/metrics/NoopMeter.js.map +1 -1
- package/build/esm/metrics/NoopMeterProvider.d.ts +2 -2
- package/build/esm/metrics/NoopMeterProvider.js +6 -21
- package/build/esm/metrics/NoopMeterProvider.js.map +1 -1
- package/build/esm/metrics-api.d.ts +5 -1
- package/build/esm/metrics-api.js +7 -14
- package/build/esm/metrics-api.js.map +1 -1
- package/build/esm/propagation/NoopTextMapPropagator.d.ts +2 -2
- package/build/esm/propagation/NoopTextMapPropagator.js +8 -23
- package/build/esm/propagation/NoopTextMapPropagator.js.map +1 -1
- package/build/esm/propagation/TextMapPropagator.d.ts +14 -2
- package/build/esm/propagation/TextMapPropagator.js +12 -17
- package/build/esm/propagation/TextMapPropagator.js.map +1 -1
- package/build/esm/propagation-api.d.ts +5 -1
- package/build/esm/propagation-api.js +7 -14
- package/build/esm/propagation-api.js.map +1 -1
- package/build/esm/trace/NonRecordingSpan.d.ts +8 -8
- package/build/esm/trace/NonRecordingSpan.js +25 -39
- package/build/esm/trace/NonRecordingSpan.js.map +1 -1
- package/build/esm/trace/NoopTracer.d.ts +4 -4
- package/build/esm/trace/NoopTracer.js +21 -33
- package/build/esm/trace/NoopTracer.js.map +1 -1
- package/build/esm/trace/NoopTracerProvider.d.ts +3 -3
- package/build/esm/trace/NoopTracerProvider.js +5 -20
- package/build/esm/trace/NoopTracerProvider.js.map +1 -1
- package/build/esm/trace/ProxyTracer.d.ts +14 -9
- package/build/esm/trace/ProxyTracer.js +16 -27
- package/build/esm/trace/ProxyTracer.js.map +1 -1
- package/build/esm/trace/ProxyTracerProvider.d.ts +6 -3
- package/build/esm/trace/ProxyTracerProvider.js +15 -27
- package/build/esm/trace/ProxyTracerProvider.js.map +1 -1
- package/build/esm/trace/Sampler.d.ts +7 -5
- package/build/esm/trace/Sampler.js +1 -12
- package/build/esm/trace/Sampler.js.map +1 -1
- package/build/esm/trace/SamplingResult.d.ts +6 -2
- package/build/esm/trace/SamplingResult.js +3 -12
- package/build/esm/trace/SamplingResult.js.map +1 -1
- package/build/esm/trace/SpanOptions.d.ts +7 -5
- package/build/esm/trace/SpanOptions.js +1 -12
- package/build/esm/trace/SpanOptions.js.map +1 -1
- package/build/esm/trace/attributes.d.ts +5 -3
- package/build/esm/trace/attributes.js +1 -12
- package/build/esm/trace/attributes.js.map +1 -1
- package/build/esm/trace/context-utils.d.ts +3 -3
- package/build/esm/trace/context-utils.js +2 -13
- package/build/esm/trace/context-utils.js.map +1 -1
- package/build/esm/trace/internal/tracestate-impl.d.ts +1 -1
- package/build/esm/trace/internal/tracestate-impl.js +37 -49
- package/build/esm/trace/internal/tracestate-impl.js.map +1 -1
- package/build/esm/trace/internal/tracestate-validators.js +7 -18
- package/build/esm/trace/internal/tracestate-validators.js.map +1 -1
- package/build/esm/trace/internal/utils.d.ts +4 -1
- package/build/esm/trace/internal/utils.js +4 -12
- package/build/esm/trace/internal/utils.js.map +1 -1
- package/build/esm/trace/invalid-span-constants.d.ts +10 -1
- package/build/esm/trace/invalid-span-constants.js +13 -15
- package/build/esm/trace/invalid-span-constants.js.map +1 -1
- package/build/esm/trace/link.d.ts +4 -2
- package/build/esm/trace/link.js +1 -12
- package/build/esm/trace/link.js.map +1 -1
- package/build/esm/trace/span.d.ts +22 -10
- package/build/esm/trace/span.js +1 -12
- package/build/esm/trace/span.js.map +1 -1
- package/build/esm/trace/span_context.d.ts +3 -1
- package/build/esm/trace/span_context.js +1 -12
- package/build/esm/trace/span_context.js.map +1 -1
- package/build/esm/trace/span_kind.d.ts +3 -0
- package/build/esm/trace/span_kind.js +4 -12
- package/build/esm/trace/span_kind.js.map +1 -1
- package/build/esm/trace/spancontext-utils.d.ts +10 -2
- package/build/esm/trace/spancontext-utils.js +33 -16
- package/build/esm/trace/spancontext-utils.js.map +1 -1
- package/build/esm/trace/status.d.ts +5 -0
- package/build/esm/trace/status.js +6 -0
- package/build/esm/trace/status.js.map +1 -1
- package/build/esm/trace/trace_flags.d.ts +3 -0
- package/build/esm/trace/trace_flags.js +4 -12
- package/build/esm/trace/trace_flags.js.map +1 -1
- package/build/esm/trace/trace_state.d.ts +3 -0
- package/build/esm/trace/trace_state.js +1 -12
- package/build/esm/trace/trace_state.js.map +1 -1
- package/build/esm/trace/tracer.d.ts +5 -3
- package/build/esm/trace/tracer.js +1 -12
- package/build/esm/trace/tracer.js.map +1 -1
- package/build/esm/trace/tracer_options.d.ts +2 -0
- package/build/esm/trace/tracer_options.js +1 -12
- package/build/esm/trace/tracer_options.js.map +1 -1
- package/build/esm/trace/tracer_provider.d.ts +4 -2
- package/build/esm/trace/tracer_provider.js +1 -12
- package/build/esm/trace/tracer_provider.js.map +1 -1
- package/build/esm/trace-api.d.ts +5 -1
- package/build/esm/trace-api.js +7 -14
- package/build/esm/trace-api.js.map +1 -1
- package/build/esm/version.d.ts +1 -1
- package/build/esm/version.js +2 -13
- package/build/esm/version.js.map +1 -1
- package/build/esnext/api/context.d.ts +3 -1
- package/build/esnext/api/context.js +3 -12
- package/build/esnext/api/context.js.map +1 -1
- package/build/esnext/api/diag.d.ts +3 -1
- package/build/esnext/api/diag.js +11 -20
- package/build/esnext/api/diag.js.map +1 -1
- package/build/esnext/api/metrics.d.ts +2 -2
- package/build/esnext/api/metrics.js +1 -12
- package/build/esnext/api/metrics.js.map +1 -1
- package/build/esnext/api/propagation.d.ts +4 -2
- package/build/esnext/api/propagation.js +3 -12
- package/build/esnext/api/propagation.js.map +1 -1
- package/build/esnext/api/trace.d.ts +4 -2
- package/build/esnext/api/trace.js +3 -12
- package/build/esnext/api/trace.js.map +1 -1
- package/build/esnext/baggage/context-helpers.d.ts +2 -2
- package/build/esnext/baggage/context-helpers.js +1 -12
- package/build/esnext/baggage/context-helpers.js.map +1 -1
- package/build/esnext/baggage/internal/baggage-impl.js +2 -13
- package/build/esnext/baggage/internal/baggage-impl.js.map +1 -1
- package/build/esnext/baggage/internal/symbol.js +1 -12
- package/build/esnext/baggage/internal/symbol.js.map +1 -1
- package/build/esnext/baggage/types.d.ts +9 -2
- package/build/esnext/baggage/types.js +1 -12
- package/build/esnext/baggage/types.js.map +1 -1
- package/build/esnext/baggage/utils.d.ts +2 -1
- package/build/esnext/baggage/utils.js +2 -12
- package/build/esnext/baggage/utils.js.map +1 -1
- package/build/esnext/common/Attributes.d.ts +5 -1
- package/build/esnext/common/Attributes.js +1 -12
- package/build/esnext/common/Attributes.js.map +1 -1
- package/build/esnext/common/Exception.d.ts +3 -1
- package/build/esnext/common/Exception.js +1 -12
- package/build/esnext/common/Exception.js.map +1 -1
- package/build/esnext/common/Time.d.ts +6 -2
- package/build/esnext/common/Time.js.map +1 -1
- package/build/esnext/context/NoopContextManager.d.ts +1 -1
- package/build/esnext/context/NoopContextManager.js +1 -12
- package/build/esnext/context/NoopContextManager.js.map +1 -1
- package/build/esnext/context/context.d.ts +11 -3
- package/build/esnext/context/context.js +10 -13
- package/build/esnext/context/context.js.map +1 -1
- package/build/esnext/context/types.d.ts +6 -0
- package/build/esnext/context/types.js +1 -12
- package/build/esnext/context/types.js.map +1 -1
- package/build/esnext/context-api.d.ts +4 -1
- package/build/esnext/context-api.js +5 -13
- package/build/esnext/context-api.js.map +1 -1
- package/build/esnext/diag/ComponentLogger.d.ts +6 -6
- package/build/esnext/diag/ComponentLogger.js +2 -14
- package/build/esnext/diag/ComponentLogger.js.map +1 -1
- package/build/esnext/diag/consoleLogger.d.ts +6 -1
- package/build/esnext/diag/consoleLogger.js +36 -20
- package/build/esnext/diag/consoleLogger.js.map +1 -1
- package/build/esnext/diag/internal/logLevelLogger.d.ts +2 -1
- package/build/esnext/diag/internal/logLevelLogger.js +1 -12
- package/build/esnext/diag/internal/logLevelLogger.js.map +1 -1
- package/build/esnext/diag/internal/noopLogger.d.ts +1 -1
- package/build/esnext/diag/internal/noopLogger.js +1 -12
- package/build/esnext/diag/internal/noopLogger.js.map +1 -1
- package/build/esnext/diag/types.d.ts +11 -1
- package/build/esnext/diag/types.js +1 -12
- package/build/esnext/diag/types.js.map +1 -1
- package/build/esnext/diag-api.d.ts +2 -0
- package/build/esnext/diag-api.js +3 -12
- package/build/esnext/diag-api.js.map +1 -1
- package/build/esnext/experimental/index.d.ts +5 -1
- package/build/esnext/experimental/index.js +5 -12
- package/build/esnext/experimental/index.js.map +1 -1
- package/build/esnext/experimental/trace/SugaredOptions.d.ts +1 -1
- package/build/esnext/experimental/trace/SugaredOptions.js +1 -12
- package/build/esnext/experimental/trace/SugaredOptions.js.map +1 -1
- package/build/esnext/experimental/trace/SugaredTracer.d.ts +2 -2
- package/build/esnext/experimental/trace/SugaredTracer.js +2 -2
- package/build/esnext/experimental/trace/SugaredTracer.js.map +1 -1
- package/build/esnext/index.d.ts +29 -24
- package/build/esnext/index.js +4 -14
- package/build/esnext/index.js.map +1 -1
- package/build/esnext/internal/global-utils.d.ts +5 -5
- package/build/esnext/internal/global-utils.js +10 -14
- package/build/esnext/internal/global-utils.js.map +1 -1
- package/build/esnext/internal/semver.js +1 -12
- package/build/esnext/internal/semver.js.map +1 -1
- package/build/esnext/metrics/Meter.d.ts +5 -1
- package/build/esnext/metrics/Meter.js +1 -12
- package/build/esnext/metrics/Meter.js.map +1 -1
- package/build/esnext/metrics/MeterProvider.d.ts +3 -1
- package/build/esnext/metrics/MeterProvider.js +1 -12
- package/build/esnext/metrics/MeterProvider.js.map +1 -1
- package/build/esnext/metrics/Metric.d.ts +79 -11
- package/build/esnext/metrics/Metric.js +5 -12
- package/build/esnext/metrics/Metric.js.map +1 -1
- package/build/esnext/metrics/NoopMeter.d.ts +4 -2
- package/build/esnext/metrics/NoopMeter.js +3 -12
- package/build/esnext/metrics/NoopMeter.js.map +1 -1
- package/build/esnext/metrics/NoopMeterProvider.d.ts +2 -2
- package/build/esnext/metrics/NoopMeterProvider.js +1 -12
- package/build/esnext/metrics/NoopMeterProvider.js.map +1 -1
- package/build/esnext/metrics-api.d.ts +5 -1
- package/build/esnext/metrics-api.js +6 -13
- package/build/esnext/metrics-api.js.map +1 -1
- package/build/esnext/propagation/NoopTextMapPropagator.d.ts +2 -2
- package/build/esnext/propagation/NoopTextMapPropagator.js +1 -12
- package/build/esnext/propagation/NoopTextMapPropagator.js.map +1 -1
- package/build/esnext/propagation/TextMapPropagator.d.ts +14 -2
- package/build/esnext/propagation/TextMapPropagator.js +7 -12
- package/build/esnext/propagation/TextMapPropagator.js.map +1 -1
- package/build/esnext/propagation-api.d.ts +5 -1
- package/build/esnext/propagation-api.js +6 -13
- package/build/esnext/propagation-api.js.map +1 -1
- package/build/esnext/trace/NonRecordingSpan.d.ts +8 -8
- package/build/esnext/trace/NonRecordingSpan.js +3 -14
- package/build/esnext/trace/NonRecordingSpan.js.map +1 -1
- package/build/esnext/trace/NoopTracer.d.ts +4 -4
- package/build/esnext/trace/NoopTracer.js +6 -13
- package/build/esnext/trace/NoopTracer.js.map +1 -1
- package/build/esnext/trace/NoopTracerProvider.d.ts +3 -3
- package/build/esnext/trace/NoopTracerProvider.js +1 -12
- package/build/esnext/trace/NoopTracerProvider.js.map +1 -1
- package/build/esnext/trace/ProxyTracer.d.ts +14 -9
- package/build/esnext/trace/ProxyTracer.js +5 -14
- package/build/esnext/trace/ProxyTracer.js.map +1 -1
- package/build/esnext/trace/ProxyTracerProvider.d.ts +6 -3
- package/build/esnext/trace/ProxyTracerProvider.js +4 -12
- package/build/esnext/trace/ProxyTracerProvider.js.map +1 -1
- package/build/esnext/trace/Sampler.d.ts +7 -5
- package/build/esnext/trace/Sampler.js +1 -12
- package/build/esnext/trace/Sampler.js.map +1 -1
- package/build/esnext/trace/SamplingResult.d.ts +6 -2
- package/build/esnext/trace/SamplingResult.js +3 -12
- package/build/esnext/trace/SamplingResult.js.map +1 -1
- package/build/esnext/trace/SpanOptions.d.ts +7 -5
- package/build/esnext/trace/SpanOptions.js +1 -12
- package/build/esnext/trace/SpanOptions.js.map +1 -1
- package/build/esnext/trace/attributes.d.ts +5 -3
- package/build/esnext/trace/attributes.js +1 -12
- package/build/esnext/trace/attributes.js.map +1 -1
- package/build/esnext/trace/context-utils.d.ts +3 -3
- package/build/esnext/trace/context-utils.js +1 -12
- package/build/esnext/trace/context-utils.js.map +1 -1
- package/build/esnext/trace/internal/tracestate-impl.d.ts +1 -1
- package/build/esnext/trace/internal/tracestate-impl.js +8 -17
- package/build/esnext/trace/internal/tracestate-impl.js.map +1 -1
- package/build/esnext/trace/internal/tracestate-validators.js +1 -12
- package/build/esnext/trace/internal/tracestate-validators.js.map +1 -1
- package/build/esnext/trace/internal/utils.d.ts +4 -1
- package/build/esnext/trace/internal/utils.js +4 -12
- package/build/esnext/trace/internal/utils.js.map +1 -1
- package/build/esnext/trace/invalid-span-constants.d.ts +10 -1
- package/build/esnext/trace/invalid-span-constants.js +10 -12
- package/build/esnext/trace/invalid-span-constants.js.map +1 -1
- package/build/esnext/trace/link.d.ts +4 -2
- package/build/esnext/trace/link.js +1 -12
- package/build/esnext/trace/link.js.map +1 -1
- package/build/esnext/trace/span.d.ts +22 -10
- package/build/esnext/trace/span.js +1 -12
- package/build/esnext/trace/span.js.map +1 -1
- package/build/esnext/trace/span_context.d.ts +3 -1
- package/build/esnext/trace/span_context.js +1 -12
- package/build/esnext/trace/span_context.js.map +1 -1
- package/build/esnext/trace/span_kind.d.ts +3 -0
- package/build/esnext/trace/span_kind.js +4 -12
- package/build/esnext/trace/span_kind.js.map +1 -1
- package/build/esnext/trace/spancontext-utils.d.ts +10 -2
- package/build/esnext/trace/spancontext-utils.js +33 -16
- package/build/esnext/trace/spancontext-utils.js.map +1 -1
- package/build/esnext/trace/status.d.ts +5 -0
- package/build/esnext/trace/status.js +6 -0
- package/build/esnext/trace/status.js.map +1 -1
- package/build/esnext/trace/trace_flags.d.ts +3 -0
- package/build/esnext/trace/trace_flags.js +4 -12
- package/build/esnext/trace/trace_flags.js.map +1 -1
- package/build/esnext/trace/trace_state.d.ts +3 -0
- package/build/esnext/trace/trace_state.js +1 -12
- package/build/esnext/trace/trace_state.js.map +1 -1
- package/build/esnext/trace/tracer.d.ts +5 -3
- package/build/esnext/trace/tracer.js +1 -12
- package/build/esnext/trace/tracer.js.map +1 -1
- package/build/esnext/trace/tracer_options.d.ts +2 -0
- package/build/esnext/trace/tracer_options.js +1 -12
- package/build/esnext/trace/tracer_options.js.map +1 -1
- package/build/esnext/trace/tracer_provider.d.ts +4 -2
- package/build/esnext/trace/tracer_provider.js +1 -12
- package/build/esnext/trace/tracer_provider.js.map +1 -1
- package/build/esnext/trace-api.d.ts +5 -1
- package/build/esnext/trace-api.js +6 -13
- package/build/esnext/trace-api.js.map +1 -1
- package/build/esnext/version.d.ts +1 -1
- package/build/esnext/version.js +2 -13
- package/build/esnext/version.js.map +1 -1
- package/build/src/api/context.d.ts +3 -1
- package/build/src/api/context.js +3 -12
- package/build/src/api/context.js.map +1 -1
- package/build/src/api/diag.d.ts +3 -1
- package/build/src/api/diag.js +10 -19
- package/build/src/api/diag.js.map +1 -1
- package/build/src/api/metrics.d.ts +2 -2
- package/build/src/api/metrics.js +1 -12
- package/build/src/api/metrics.js.map +1 -1
- package/build/src/api/propagation.d.ts +4 -2
- package/build/src/api/propagation.js +3 -12
- package/build/src/api/propagation.js.map +1 -1
- package/build/src/api/trace.d.ts +4 -2
- package/build/src/api/trace.js +3 -12
- package/build/src/api/trace.js.map +1 -1
- package/build/src/baggage/context-helpers.d.ts +2 -2
- package/build/src/baggage/context-helpers.js +1 -12
- package/build/src/baggage/context-helpers.js.map +1 -1
- package/build/src/baggage/internal/baggage-impl.js +2 -13
- package/build/src/baggage/internal/baggage-impl.js.map +1 -1
- package/build/src/baggage/internal/symbol.js +1 -12
- package/build/src/baggage/internal/symbol.js.map +1 -1
- package/build/src/baggage/types.d.ts +9 -2
- package/build/src/baggage/types.js +1 -12
- package/build/src/baggage/types.js.map +1 -1
- package/build/src/baggage/utils.d.ts +2 -1
- package/build/src/baggage/utils.js +2 -12
- package/build/src/baggage/utils.js.map +1 -1
- package/build/src/common/Attributes.d.ts +5 -1
- package/build/src/common/Attributes.js +1 -12
- package/build/src/common/Attributes.js.map +1 -1
- package/build/src/common/Exception.d.ts +3 -1
- package/build/src/common/Exception.js +1 -12
- package/build/src/common/Exception.js.map +1 -1
- package/build/src/common/Time.d.ts +6 -2
- package/build/src/common/Time.js.map +1 -1
- package/build/src/context/NoopContextManager.d.ts +1 -1
- package/build/src/context/NoopContextManager.js +1 -12
- package/build/src/context/NoopContextManager.js.map +1 -1
- package/build/src/context/context.d.ts +11 -3
- package/build/src/context/context.js +11 -14
- package/build/src/context/context.js.map +1 -1
- package/build/src/context/types.d.ts +6 -0
- package/build/src/context/types.js +1 -12
- package/build/src/context/types.js.map +1 -1
- package/build/src/context-api.d.ts +4 -1
- package/build/src/context-api.js +5 -13
- package/build/src/context-api.js.map +1 -1
- package/build/src/diag/ComponentLogger.d.ts +6 -6
- package/build/src/diag/ComponentLogger.js +2 -14
- package/build/src/diag/ComponentLogger.js.map +1 -1
- package/build/src/diag/consoleLogger.d.ts +6 -1
- package/build/src/diag/consoleLogger.js +37 -21
- package/build/src/diag/consoleLogger.js.map +1 -1
- package/build/src/diag/internal/logLevelLogger.d.ts +2 -1
- package/build/src/diag/internal/logLevelLogger.js +1 -12
- package/build/src/diag/internal/logLevelLogger.js.map +1 -1
- package/build/src/diag/internal/noopLogger.d.ts +1 -1
- package/build/src/diag/internal/noopLogger.js +1 -12
- package/build/src/diag/internal/noopLogger.js.map +1 -1
- package/build/src/diag/types.d.ts +11 -1
- package/build/src/diag/types.js +1 -12
- package/build/src/diag/types.js.map +1 -1
- package/build/src/diag-api.d.ts +2 -0
- package/build/src/diag-api.js +3 -12
- package/build/src/diag-api.js.map +1 -1
- package/build/src/experimental/index.d.ts +5 -1
- package/build/src/experimental/index.js +7 -14
- package/build/src/experimental/index.js.map +1 -1
- package/build/src/experimental/trace/SugaredOptions.d.ts +1 -1
- package/build/src/experimental/trace/SugaredOptions.js +1 -12
- package/build/src/experimental/trace/SugaredOptions.js.map +1 -1
- package/build/src/experimental/trace/SugaredTracer.d.ts +2 -2
- package/build/src/experimental/trace/SugaredTracer.js.map +1 -1
- package/build/src/index.d.ts +29 -24
- package/build/src/index.js +2 -12
- package/build/src/index.js.map +1 -1
- package/build/src/internal/global-utils.d.ts +5 -5
- package/build/src/internal/global-utils.js +10 -14
- package/build/src/internal/global-utils.js.map +1 -1
- package/build/src/internal/semver.js +1 -12
- package/build/src/internal/semver.js.map +1 -1
- package/build/src/metrics/Meter.d.ts +5 -1
- package/build/src/metrics/Meter.js +1 -12
- package/build/src/metrics/Meter.js.map +1 -1
- package/build/src/metrics/MeterProvider.d.ts +3 -1
- package/build/src/metrics/MeterProvider.js +1 -12
- package/build/src/metrics/MeterProvider.js.map +1 -1
- package/build/src/metrics/Metric.d.ts +79 -11
- package/build/src/metrics/Metric.js +6 -13
- package/build/src/metrics/Metric.js.map +1 -1
- package/build/src/metrics/NoopMeter.d.ts +4 -2
- package/build/src/metrics/NoopMeter.js +3 -12
- package/build/src/metrics/NoopMeter.js.map +1 -1
- package/build/src/metrics/NoopMeterProvider.d.ts +2 -2
- package/build/src/metrics/NoopMeterProvider.js +1 -12
- package/build/src/metrics/NoopMeterProvider.js.map +1 -1
- package/build/src/metrics-api.d.ts +5 -1
- package/build/src/metrics-api.js +6 -13
- package/build/src/metrics-api.js.map +1 -1
- package/build/src/propagation/NoopTextMapPropagator.d.ts +2 -2
- package/build/src/propagation/NoopTextMapPropagator.js +1 -12
- package/build/src/propagation/NoopTextMapPropagator.js.map +1 -1
- package/build/src/propagation/TextMapPropagator.d.ts +14 -2
- package/build/src/propagation/TextMapPropagator.js +7 -12
- package/build/src/propagation/TextMapPropagator.js.map +1 -1
- package/build/src/propagation-api.d.ts +5 -1
- package/build/src/propagation-api.js +6 -13
- package/build/src/propagation-api.js.map +1 -1
- package/build/src/trace/NonRecordingSpan.d.ts +8 -8
- package/build/src/trace/NonRecordingSpan.js +3 -14
- package/build/src/trace/NonRecordingSpan.js.map +1 -1
- package/build/src/trace/NoopTracer.d.ts +4 -4
- package/build/src/trace/NoopTracer.js +6 -13
- package/build/src/trace/NoopTracer.js.map +1 -1
- package/build/src/trace/NoopTracerProvider.d.ts +3 -3
- package/build/src/trace/NoopTracerProvider.js +1 -12
- package/build/src/trace/NoopTracerProvider.js.map +1 -1
- package/build/src/trace/ProxyTracer.d.ts +14 -9
- package/build/src/trace/ProxyTracer.js +5 -14
- package/build/src/trace/ProxyTracer.js.map +1 -1
- package/build/src/trace/ProxyTracerProvider.d.ts +6 -3
- package/build/src/trace/ProxyTracerProvider.js +4 -12
- package/build/src/trace/ProxyTracerProvider.js.map +1 -1
- package/build/src/trace/Sampler.d.ts +7 -5
- package/build/src/trace/Sampler.js +1 -12
- package/build/src/trace/Sampler.js.map +1 -1
- package/build/src/trace/SamplingResult.d.ts +6 -2
- package/build/src/trace/SamplingResult.js +3 -12
- package/build/src/trace/SamplingResult.js.map +1 -1
- package/build/src/trace/SpanOptions.d.ts +7 -5
- package/build/src/trace/SpanOptions.js +1 -12
- package/build/src/trace/SpanOptions.js.map +1 -1
- package/build/src/trace/attributes.d.ts +5 -3
- package/build/src/trace/attributes.js +1 -12
- package/build/src/trace/attributes.js.map +1 -1
- package/build/src/trace/context-utils.d.ts +3 -3
- package/build/src/trace/context-utils.js +1 -12
- package/build/src/trace/context-utils.js.map +1 -1
- package/build/src/trace/internal/tracestate-impl.d.ts +1 -1
- package/build/src/trace/internal/tracestate-impl.js +8 -17
- package/build/src/trace/internal/tracestate-impl.js.map +1 -1
- package/build/src/trace/internal/tracestate-validators.js +1 -12
- package/build/src/trace/internal/tracestate-validators.js.map +1 -1
- package/build/src/trace/internal/utils.d.ts +4 -1
- package/build/src/trace/internal/utils.js +4 -12
- package/build/src/trace/internal/utils.js.map +1 -1
- package/build/src/trace/invalid-span-constants.d.ts +10 -1
- package/build/src/trace/invalid-span-constants.js +10 -12
- package/build/src/trace/invalid-span-constants.js.map +1 -1
- package/build/src/trace/link.d.ts +4 -2
- package/build/src/trace/link.js +1 -12
- package/build/src/trace/link.js.map +1 -1
- package/build/src/trace/span.d.ts +22 -10
- package/build/src/trace/span.js +1 -12
- package/build/src/trace/span.js.map +1 -1
- package/build/src/trace/span_context.d.ts +3 -1
- package/build/src/trace/span_context.js +1 -12
- package/build/src/trace/span_context.js.map +1 -1
- package/build/src/trace/span_kind.d.ts +3 -0
- package/build/src/trace/span_kind.js +6 -14
- package/build/src/trace/span_kind.js.map +1 -1
- package/build/src/trace/spancontext-utils.d.ts +10 -2
- package/build/src/trace/spancontext-utils.js +33 -16
- package/build/src/trace/spancontext-utils.js.map +1 -1
- package/build/src/trace/status.d.ts +5 -0
- package/build/src/trace/status.js +6 -0
- package/build/src/trace/status.js.map +1 -1
- package/build/src/trace/trace_flags.d.ts +3 -0
- package/build/src/trace/trace_flags.js +4 -12
- package/build/src/trace/trace_flags.js.map +1 -1
- package/build/src/trace/trace_state.d.ts +3 -0
- package/build/src/trace/trace_state.js +1 -12
- package/build/src/trace/trace_state.js.map +1 -1
- package/build/src/trace/tracer.d.ts +5 -3
- package/build/src/trace/tracer.js +1 -12
- package/build/src/trace/tracer.js.map +1 -1
- package/build/src/trace/tracer_options.d.ts +2 -0
- package/build/src/trace/tracer_options.js +1 -12
- package/build/src/trace/tracer_options.js.map +1 -1
- package/build/src/trace/tracer_provider.d.ts +4 -2
- package/build/src/trace/tracer_provider.js +1 -12
- package/build/src/trace/tracer_provider.js.map +1 -1
- package/build/src/trace-api.d.ts +5 -1
- package/build/src/trace-api.js +6 -13
- package/build/src/trace-api.js.map +1 -1
- package/build/src/version.d.ts +1 -1
- package/build/src/version.js +2 -13
- package/build/src/version.js.map +1 -1
- package/package.json +19 -36
- package/build/esm/metrics/ObservableResult.d.ts +0 -31
- package/build/esm/metrics/ObservableResult.js +0 -17
- package/build/esm/metrics/ObservableResult.js.map +0 -1
- package/build/esm/platform/browser/globalThis.d.ts +0 -10
- package/build/esm/platform/browser/globalThis.js +0 -35
- package/build/esm/platform/browser/globalThis.js.map +0 -1
- package/build/esm/platform/browser/index.d.ts +0 -2
- package/build/esm/platform/browser/index.js +0 -17
- package/build/esm/platform/browser/index.js.map +0 -1
- package/build/esm/platform/index.d.ts +0 -2
- package/build/esm/platform/index.js +0 -17
- package/build/esm/platform/index.js.map +0 -1
- package/build/esm/platform/node/globalThis.d.ts +0 -3
- package/build/esm/platform/node/globalThis.js +0 -19
- package/build/esm/platform/node/globalThis.js.map +0 -1
- package/build/esm/platform/node/index.d.ts +0 -2
- package/build/esm/platform/node/index.js +0 -17
- package/build/esm/platform/node/index.js.map +0 -1
- package/build/esnext/metrics/ObservableResult.d.ts +0 -31
- package/build/esnext/metrics/ObservableResult.js +0 -17
- package/build/esnext/metrics/ObservableResult.js.map +0 -1
- package/build/esnext/platform/browser/globalThis.d.ts +0 -10
- package/build/esnext/platform/browser/globalThis.js +0 -35
- package/build/esnext/platform/browser/globalThis.js.map +0 -1
- package/build/esnext/platform/browser/index.d.ts +0 -2
- package/build/esnext/platform/browser/index.js +0 -17
- package/build/esnext/platform/browser/index.js.map +0 -1
- package/build/esnext/platform/index.d.ts +0 -2
- package/build/esnext/platform/index.js +0 -17
- package/build/esnext/platform/index.js.map +0 -1
- package/build/esnext/platform/node/globalThis.d.ts +0 -3
- package/build/esnext/platform/node/globalThis.js +0 -19
- package/build/esnext/platform/node/globalThis.js.map +0 -1
- package/build/esnext/platform/node/index.d.ts +0 -2
- package/build/esnext/platform/node/index.js +0 -17
- package/build/esnext/platform/node/index.js.map +0 -1
- package/build/src/metrics/ObservableResult.d.ts +0 -31
- package/build/src/metrics/ObservableResult.js +0 -18
- package/build/src/metrics/ObservableResult.js.map +0 -1
- package/build/src/platform/browser/globalThis.d.ts +0 -10
- package/build/src/platform/browser/globalThis.js +0 -38
- package/build/src/platform/browser/globalThis.js.map +0 -1
- package/build/src/platform/browser/index.d.ts +0 -2
- package/build/src/platform/browser/index.js +0 -29
- package/build/src/platform/browser/index.js.map +0 -1
- package/build/src/platform/index.d.ts +0 -2
- package/build/src/platform/index.js +0 -29
- package/build/src/platform/index.js.map +0 -1
- package/build/src/platform/node/globalThis.d.ts +0 -3
- package/build/src/platform/node/globalThis.js +0 -22
- package/build/src/platform/node/globalThis.js.map +0 -1
- package/build/src/platform/node/index.d.ts +0 -2
- package/build/src/platform/node/index.js +0 -29
- package/build/src/platform/node/index.js.map +0 -1
|
@@ -1,18 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/*
|
|
3
3
|
* Copyright The OpenTelemetry Authors
|
|
4
|
-
*
|
|
5
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
-
* you may not use this file except in compliance with the License.
|
|
7
|
-
* You may obtain a copy of the License at
|
|
8
|
-
*
|
|
9
|
-
* https://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
-
*
|
|
11
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
-
* See the License for the specific language governing permissions and
|
|
15
|
-
* limitations under the License.
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
16
5
|
*/
|
|
17
6
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
7
|
//# sourceMappingURL=tracer_options.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tracer_options.js","sourceRoot":"","sources":["../../../src/trace/tracer_options.ts"],"names":[],"mappings":";AAAA
|
|
1
|
+
{"version":3,"file":"tracer_options.js","sourceRoot":"","sources":["../../../src/trace/tracer_options.ts"],"names":[],"mappings":";AAAA;;;GAGG","sourcesContent":["/*\n * Copyright The OpenTelemetry Authors\n * SPDX-License-Identifier: Apache-2.0\n */\n\n/**\n * An interface describes additional metadata of a tracer.\n *\n * @since 1.3.0\n */\nexport interface TracerOptions {\n /**\n * The schemaUrl of the tracer or instrumentation library\n */\n schemaUrl?: string;\n}\n"]}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import { Tracer } from './tracer';
|
|
2
|
-
import { TracerOptions } from './tracer_options';
|
|
1
|
+
import type { Tracer } from './tracer';
|
|
2
|
+
import type { TracerOptions } from './tracer_options';
|
|
3
3
|
/**
|
|
4
4
|
* A registry for creating named {@link Tracer}s.
|
|
5
|
+
*
|
|
6
|
+
* @since 1.0.0
|
|
5
7
|
*/
|
|
6
8
|
export interface TracerProvider {
|
|
7
9
|
/**
|
|
@@ -1,18 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/*
|
|
3
3
|
* Copyright The OpenTelemetry Authors
|
|
4
|
-
*
|
|
5
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
-
* you may not use this file except in compliance with the License.
|
|
7
|
-
* You may obtain a copy of the License at
|
|
8
|
-
*
|
|
9
|
-
* https://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
-
*
|
|
11
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
-
* See the License for the specific language governing permissions and
|
|
15
|
-
* limitations under the License.
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
16
5
|
*/
|
|
17
6
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
7
|
//# sourceMappingURL=tracer_provider.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tracer_provider.js","sourceRoot":"","sources":["../../../src/trace/tracer_provider.ts"],"names":[],"mappings":";AAAA
|
|
1
|
+
{"version":3,"file":"tracer_provider.js","sourceRoot":"","sources":["../../../src/trace/tracer_provider.ts"],"names":[],"mappings":";AAAA;;;GAGG","sourcesContent":["/*\n * Copyright The OpenTelemetry Authors\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport type { Tracer } from './tracer';\nimport type { TracerOptions } from './tracer_options';\n\n/**\n * A registry for creating named {@link Tracer}s.\n *\n * @since 1.0.0\n */\nexport interface TracerProvider {\n /**\n * Returns a Tracer, creating one if one with the given name and version is\n * not already created.\n *\n * This function may return different Tracer types (e.g.\n * {@link NoopTracerProvider} vs. a functional tracer).\n *\n * @param name The name of the tracer or instrumentation library.\n * @param version The version of the tracer or instrumentation library.\n * @param options The options of the tracer or instrumentation library.\n * @returns Tracer A Tracer with the given name and version\n */\n getTracer(name: string, version?: string, options?: TracerOptions): Tracer;\n}\n"]}
|
package/build/src/trace-api.d.ts
CHANGED
package/build/src/trace-api.js
CHANGED
|
@@ -1,24 +1,17 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/*
|
|
3
3
|
* Copyright The OpenTelemetry Authors
|
|
4
|
-
*
|
|
5
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
-
* you may not use this file except in compliance with the License.
|
|
7
|
-
* You may obtain a copy of the License at
|
|
8
|
-
*
|
|
9
|
-
* https://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
-
*
|
|
11
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
-
* See the License for the specific language governing permissions and
|
|
15
|
-
* limitations under the License.
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
16
5
|
*/
|
|
17
6
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
7
|
exports.trace = void 0;
|
|
19
8
|
// Split module-level variable definition into separate files to allow
|
|
20
9
|
// tree-shaking on each api instance.
|
|
21
10
|
const trace_1 = require("./api/trace");
|
|
22
|
-
/**
|
|
11
|
+
/**
|
|
12
|
+
* Entrypoint for trace API
|
|
13
|
+
*
|
|
14
|
+
* @since 1.0.0
|
|
15
|
+
*/
|
|
23
16
|
exports.trace = trace_1.TraceAPI.getInstance();
|
|
24
17
|
//# sourceMappingURL=trace-api.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"trace-api.js","sourceRoot":"","sources":["../../src/trace-api.ts"],"names":[],"mappings":";AAAA
|
|
1
|
+
{"version":3,"file":"trace-api.js","sourceRoot":"","sources":["../../src/trace-api.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAEH,sEAAsE;AACtE,qCAAqC;AACrC,uCAAuC;AAEvC;;;;GAIG;AACU,QAAA,KAAK,GAAG,gBAAQ,CAAC,WAAW,EAAE,CAAC","sourcesContent":["/*\n * Copyright The OpenTelemetry Authors\n * SPDX-License-Identifier: Apache-2.0\n */\n\n// Split module-level variable definition into separate files to allow\n// tree-shaking on each api instance.\nimport { TraceAPI } from './api/trace';\n\n/**\n * Entrypoint for trace API\n *\n * @since 1.0.0\n */\nexport const trace = TraceAPI.getInstance();\n"]}
|
package/build/src/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "1.9.
|
|
1
|
+
export declare const VERSION = "1.9.1";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/build/src/version.js
CHANGED
|
@@ -1,21 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/*
|
|
3
3
|
* Copyright The OpenTelemetry Authors
|
|
4
|
-
*
|
|
5
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
-
* you may not use this file except in compliance with the License.
|
|
7
|
-
* You may obtain a copy of the License at
|
|
8
|
-
*
|
|
9
|
-
* https://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
-
*
|
|
11
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
-
* See the License for the specific language governing permissions and
|
|
15
|
-
* limitations under the License.
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
16
5
|
*/
|
|
17
6
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
7
|
exports.VERSION = void 0;
|
|
19
8
|
// this is autogenerated file, see scripts/version-update.js
|
|
20
|
-
exports.VERSION = '1.9.
|
|
9
|
+
exports.VERSION = '1.9.1';
|
|
21
10
|
//# sourceMappingURL=version.js.map
|
package/build/src/version.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.js","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":";AAAA
|
|
1
|
+
{"version":3,"file":"version.js","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAEH,4DAA4D;AAC/C,QAAA,OAAO,GAAG,OAAO,CAAC","sourcesContent":["/*\n * Copyright The OpenTelemetry Authors\n * SPDX-License-Identifier: Apache-2.0\n */\n\n// this is autogenerated file, see scripts/version-update.js\nexport const VERSION = '1.9.1';\n"]}
|
package/package.json
CHANGED
|
@@ -1,27 +1,21 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opentelemetry/api",
|
|
3
|
-
"version": "1.9.
|
|
3
|
+
"version": "1.9.1",
|
|
4
4
|
"description": "Public API for OpenTelemetry",
|
|
5
5
|
"main": "build/src/index.js",
|
|
6
6
|
"module": "build/esm/index.js",
|
|
7
7
|
"esnext": "build/esnext/index.js",
|
|
8
8
|
"types": "build/src/index.d.ts",
|
|
9
|
-
"browser": {
|
|
10
|
-
"./src/platform/index.ts": "./src/platform/browser/index.ts",
|
|
11
|
-
"./build/esm/platform/index.js": "./build/esm/platform/browser/index.js",
|
|
12
|
-
"./build/esnext/platform/index.js": "./build/esnext/platform/browser/index.js",
|
|
13
|
-
"./build/src/platform/index.js": "./build/src/platform/browser/index.js"
|
|
14
|
-
},
|
|
15
9
|
"exports": {
|
|
16
10
|
".": {
|
|
17
|
-
"module": "./build/esm/index.js",
|
|
18
11
|
"esnext": "./build/esnext/index.js",
|
|
12
|
+
"module": "./build/esm/index.js",
|
|
19
13
|
"types": "./build/src/index.d.ts",
|
|
20
14
|
"default": "./build/src/index.js"
|
|
21
15
|
},
|
|
22
16
|
"./experimental": {
|
|
23
|
-
"module": "./build/esm/experimental/index.js",
|
|
24
17
|
"esnext": "./build/esnext/experimental/index.js",
|
|
18
|
+
"module": "./build/esm/experimental/index.js",
|
|
25
19
|
"types": "./build/src/experimental/index.d.ts",
|
|
26
20
|
"default": "./build/src/experimental/index.js"
|
|
27
21
|
}
|
|
@@ -29,19 +23,12 @@
|
|
|
29
23
|
"repository": "open-telemetry/opentelemetry-js",
|
|
30
24
|
"scripts": {
|
|
31
25
|
"clean": "tsc --build --clean tsconfig.json tsconfig.esm.json tsconfig.esnext.json",
|
|
32
|
-
"codecov:browser": "nyc report --reporter=json && codecov -f coverage/*.json -p ../",
|
|
33
|
-
"codecov:webworker": "nyc report --reporter=json && codecov -f coverage/*.json -p ../",
|
|
34
|
-
"codecov": "nyc report --reporter=json && codecov -f coverage/*.json -p ../",
|
|
35
|
-
"precompile": "cross-var lerna run version --scope $npm_package_name --include-dependencies",
|
|
36
26
|
"compile": "tsc --build tsconfig.json tsconfig.esm.json tsconfig.esnext.json",
|
|
37
|
-
"docs": "typedoc",
|
|
38
|
-
"docs:deploy": "gh-pages --dist docs/out",
|
|
39
|
-
"docs:test": "linkinator docs/out --silent && linkinator docs/*.md *.md --markdown --silent",
|
|
40
27
|
"lint:fix": "eslint . --ext .ts --fix",
|
|
41
|
-
"lint": "eslint . --ext .ts",
|
|
28
|
+
"lint": "eslint . --ext .ts && npm run cycle-check",
|
|
42
29
|
"test:browser": "karma start --single-run",
|
|
43
|
-
"test": "nyc
|
|
44
|
-
"test:
|
|
30
|
+
"test": "nyc mocha 'test/**/*.test.ts'",
|
|
31
|
+
"test:node8-compat": "node test/backcompat/node8-compat.js",
|
|
45
32
|
"test:webworker": "karma start karma.worker.js --single-run",
|
|
46
33
|
"cycle-check": "dpdm --exit-code circular:1 src/index.ts",
|
|
47
34
|
"version": "node ../scripts/version-update.js",
|
|
@@ -80,34 +67,30 @@
|
|
|
80
67
|
"access": "public"
|
|
81
68
|
},
|
|
82
69
|
"devDependencies": {
|
|
83
|
-
"@types/mocha": "10.0.
|
|
84
|
-
"@types/node": "
|
|
85
|
-
"@types/sinon": "17.0.
|
|
70
|
+
"@types/mocha": "10.0.10",
|
|
71
|
+
"@types/node": "^8.10.66",
|
|
72
|
+
"@types/sinon": "17.0.4",
|
|
86
73
|
"@types/webpack": "5.28.5",
|
|
87
74
|
"@types/webpack-env": "1.16.3",
|
|
88
|
-
"babel-plugin-istanbul": "
|
|
89
|
-
"
|
|
90
|
-
"
|
|
91
|
-
"dpdm": "3.13.1",
|
|
92
|
-
"karma": "6.4.3",
|
|
75
|
+
"babel-plugin-istanbul": "7.0.1",
|
|
76
|
+
"dpdm": "4.0.1",
|
|
77
|
+
"karma": "6.4.4",
|
|
93
78
|
"karma-chrome-launcher": "3.1.0",
|
|
94
79
|
"karma-coverage": "2.2.1",
|
|
95
80
|
"karma-mocha": "2.0.1",
|
|
96
81
|
"karma-mocha-webworker": "1.3.0",
|
|
97
82
|
"karma-spec-reporter": "0.0.36",
|
|
98
83
|
"karma-webpack": "5.0.1",
|
|
99
|
-
"lerna": "6.6.2",
|
|
100
84
|
"memfs": "3.5.3",
|
|
101
|
-
"mocha": "
|
|
102
|
-
"nyc": "
|
|
103
|
-
"sinon": "
|
|
104
|
-
"ts-loader": "9.5.
|
|
105
|
-
"
|
|
106
|
-
"typescript": "4.4.4",
|
|
85
|
+
"mocha": "11.7.5",
|
|
86
|
+
"nyc": "17.1.0",
|
|
87
|
+
"sinon": "18.0.1",
|
|
88
|
+
"ts-loader": "9.5.4",
|
|
89
|
+
"typescript": "5.0.4",
|
|
107
90
|
"unionfs": "4.5.4",
|
|
108
|
-
"webpack": "5.
|
|
91
|
+
"webpack": "5.104.1"
|
|
109
92
|
},
|
|
110
93
|
"homepage": "https://github.com/open-telemetry/opentelemetry-js/tree/main/api",
|
|
111
94
|
"sideEffects": false,
|
|
112
|
-
"gitHead": "
|
|
95
|
+
"gitHead": "7e74509a4d848e94b2970bb5262dd3e8efeed0a2"
|
|
113
96
|
}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { MetricAttributes, Observable } from './Metric';
|
|
2
|
-
/**
|
|
3
|
-
* Interface that is being used in callback function for Observable Metric.
|
|
4
|
-
*/
|
|
5
|
-
export interface ObservableResult<AttributesTypes extends MetricAttributes = MetricAttributes> {
|
|
6
|
-
/**
|
|
7
|
-
* Observe a measurement of the value associated with the given attributes.
|
|
8
|
-
*
|
|
9
|
-
* @param value The value to be observed.
|
|
10
|
-
* @param attributes The attributes associated with the value. If more than
|
|
11
|
-
* one values associated with the same attributes values, SDK may pick the
|
|
12
|
-
* last one or simply drop the entire observable result.
|
|
13
|
-
*/
|
|
14
|
-
observe(this: ObservableResult<AttributesTypes>, value: number, attributes?: AttributesTypes): void;
|
|
15
|
-
}
|
|
16
|
-
/**
|
|
17
|
-
* Interface that is being used in batch observable callback function.
|
|
18
|
-
*/
|
|
19
|
-
export interface BatchObservableResult<AttributesTypes extends MetricAttributes = MetricAttributes> {
|
|
20
|
-
/**
|
|
21
|
-
* Observe a measurement of the value associated with the given attributes.
|
|
22
|
-
*
|
|
23
|
-
* @param metric The observable metric to be observed.
|
|
24
|
-
* @param value The value to be observed.
|
|
25
|
-
* @param attributes The attributes associated with the value. If more than
|
|
26
|
-
* one values associated with the same attributes values, SDK may pick the
|
|
27
|
-
* last one or simply drop the entire observable result.
|
|
28
|
-
*/
|
|
29
|
-
observe(this: BatchObservableResult<AttributesTypes>, metric: Observable<AttributesTypes>, value: number, attributes?: AttributesTypes): void;
|
|
30
|
-
}
|
|
31
|
-
//# sourceMappingURL=ObservableResult.d.ts.map
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright The OpenTelemetry Authors
|
|
3
|
-
*
|
|
4
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
-
* you may not use this file except in compliance with the License.
|
|
6
|
-
* You may obtain a copy of the License at
|
|
7
|
-
*
|
|
8
|
-
* https://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
-
*
|
|
10
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
-
* See the License for the specific language governing permissions and
|
|
14
|
-
* limitations under the License.
|
|
15
|
-
*/
|
|
16
|
-
export {};
|
|
17
|
-
//# sourceMappingURL=ObservableResult.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ObservableResult.js","sourceRoot":"","sources":["../../../src/metrics/ObservableResult.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG","sourcesContent":["/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { MetricAttributes, Observable } from './Metric';\n\n/**\n * Interface that is being used in callback function for Observable Metric.\n */\nexport interface ObservableResult<\n AttributesTypes extends MetricAttributes = MetricAttributes,\n> {\n /**\n * Observe a measurement of the value associated with the given attributes.\n *\n * @param value The value to be observed.\n * @param attributes The attributes associated with the value. If more than\n * one values associated with the same attributes values, SDK may pick the\n * last one or simply drop the entire observable result.\n */\n observe(\n this: ObservableResult<AttributesTypes>,\n value: number,\n attributes?: AttributesTypes\n ): void;\n}\n\n/**\n * Interface that is being used in batch observable callback function.\n */\nexport interface BatchObservableResult<\n AttributesTypes extends MetricAttributes = MetricAttributes,\n> {\n /**\n * Observe a measurement of the value associated with the given attributes.\n *\n * @param metric The observable metric to be observed.\n * @param value The value to be observed.\n * @param attributes The attributes associated with the value. If more than\n * one values associated with the same attributes values, SDK may pick the\n * last one or simply drop the entire observable result.\n */\n observe(\n this: BatchObservableResult<AttributesTypes>,\n metric: Observable<AttributesTypes>,\n value: number,\n attributes?: AttributesTypes\n ): void;\n}\n"]}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* - globalThis (New standard)
|
|
3
|
-
* - self (Will return the current window instance for supported browsers)
|
|
4
|
-
* - window (fallback for older browser implementations)
|
|
5
|
-
* - global (NodeJS implementation)
|
|
6
|
-
* - <object> (When all else fails)
|
|
7
|
-
*/
|
|
8
|
-
/** only globals that common to node and browsers are allowed */
|
|
9
|
-
export declare const _globalThis: typeof globalThis;
|
|
10
|
-
//# sourceMappingURL=globalThis.d.ts.map
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright The OpenTelemetry Authors
|
|
3
|
-
*
|
|
4
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
-
* you may not use this file except in compliance with the License.
|
|
6
|
-
* You may obtain a copy of the License at
|
|
7
|
-
*
|
|
8
|
-
* https://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
-
*
|
|
10
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
-
* See the License for the specific language governing permissions and
|
|
14
|
-
* limitations under the License.
|
|
15
|
-
*/
|
|
16
|
-
// Updates to this file should also be replicated to @opentelemetry/core too.
|
|
17
|
-
/**
|
|
18
|
-
* - globalThis (New standard)
|
|
19
|
-
* - self (Will return the current window instance for supported browsers)
|
|
20
|
-
* - window (fallback for older browser implementations)
|
|
21
|
-
* - global (NodeJS implementation)
|
|
22
|
-
* - <object> (When all else fails)
|
|
23
|
-
*/
|
|
24
|
-
/** only globals that common to node and browsers are allowed */
|
|
25
|
-
// eslint-disable-next-line node/no-unsupported-features/es-builtins, no-undef
|
|
26
|
-
export var _globalThis = typeof globalThis === 'object'
|
|
27
|
-
? globalThis
|
|
28
|
-
: typeof self === 'object'
|
|
29
|
-
? self
|
|
30
|
-
: typeof window === 'object'
|
|
31
|
-
? window
|
|
32
|
-
: typeof global === 'object'
|
|
33
|
-
? global
|
|
34
|
-
: {};
|
|
35
|
-
//# sourceMappingURL=globalThis.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"globalThis.js","sourceRoot":"","sources":["../../../../src/platform/browser/globalThis.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,6EAA6E;AAE7E;;;;;;GAMG;AAEH,gEAAgE;AAChE,8EAA8E;AAC9E,MAAM,CAAC,IAAM,WAAW,GACtB,OAAO,UAAU,KAAK,QAAQ;IAC5B,CAAC,CAAC,UAAU;IACZ,CAAC,CAAC,OAAO,IAAI,KAAK,QAAQ;QAC1B,CAAC,CAAC,IAAI;QACN,CAAC,CAAC,OAAO,MAAM,KAAK,QAAQ;YAC5B,CAAC,CAAC,MAAM;YACR,CAAC,CAAC,OAAO,MAAM,KAAK,QAAQ;gBAC5B,CAAC,CAAC,MAAM;gBACR,CAAC,CAAE,EAAwB,CAAC","sourcesContent":["/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n// Updates to this file should also be replicated to @opentelemetry/core too.\n\n/**\n * - globalThis (New standard)\n * - self (Will return the current window instance for supported browsers)\n * - window (fallback for older browser implementations)\n * - global (NodeJS implementation)\n * - <object> (When all else fails)\n */\n\n/** only globals that common to node and browsers are allowed */\n// eslint-disable-next-line node/no-unsupported-features/es-builtins, no-undef\nexport const _globalThis: typeof globalThis =\n typeof globalThis === 'object'\n ? globalThis\n : typeof self === 'object'\n ? self\n : typeof window === 'object'\n ? window\n : typeof global === 'object'\n ? global\n : ({} as typeof globalThis);\n"]}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright The OpenTelemetry Authors
|
|
3
|
-
*
|
|
4
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
-
* you may not use this file except in compliance with the License.
|
|
6
|
-
* You may obtain a copy of the License at
|
|
7
|
-
*
|
|
8
|
-
* https://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
-
*
|
|
10
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
-
* See the License for the specific language governing permissions and
|
|
14
|
-
* limitations under the License.
|
|
15
|
-
*/
|
|
16
|
-
export * from './globalThis';
|
|
17
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/platform/browser/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,cAAc,cAAc,CAAC","sourcesContent":["/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport * from './globalThis';\n"]}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright The OpenTelemetry Authors
|
|
3
|
-
*
|
|
4
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
-
* you may not use this file except in compliance with the License.
|
|
6
|
-
* You may obtain a copy of the License at
|
|
7
|
-
*
|
|
8
|
-
* https://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
-
*
|
|
10
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
-
* See the License for the specific language governing permissions and
|
|
14
|
-
* limitations under the License.
|
|
15
|
-
*/
|
|
16
|
-
export * from './node';
|
|
17
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/platform/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,cAAc,QAAQ,CAAC","sourcesContent":["/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport * from './node';\n"]}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright The OpenTelemetry Authors
|
|
3
|
-
*
|
|
4
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
-
* you may not use this file except in compliance with the License.
|
|
6
|
-
* You may obtain a copy of the License at
|
|
7
|
-
*
|
|
8
|
-
* https://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
-
*
|
|
10
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
-
* See the License for the specific language governing permissions and
|
|
14
|
-
* limitations under the License.
|
|
15
|
-
*/
|
|
16
|
-
/** only globals that common to node and browsers are allowed */
|
|
17
|
-
// eslint-disable-next-line node/no-unsupported-features/es-builtins
|
|
18
|
-
export var _globalThis = typeof globalThis === 'object' ? globalThis : global;
|
|
19
|
-
//# sourceMappingURL=globalThis.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"globalThis.js","sourceRoot":"","sources":["../../../../src/platform/node/globalThis.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,gEAAgE;AAChE,oEAAoE;AACpE,MAAM,CAAC,IAAM,WAAW,GAAG,OAAO,UAAU,KAAK,QAAQ,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,MAAM,CAAC","sourcesContent":["/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n/** only globals that common to node and browsers are allowed */\n// eslint-disable-next-line node/no-unsupported-features/es-builtins\nexport const _globalThis = typeof globalThis === 'object' ? globalThis : global;\n"]}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright The OpenTelemetry Authors
|
|
3
|
-
*
|
|
4
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
-
* you may not use this file except in compliance with the License.
|
|
6
|
-
* You may obtain a copy of the License at
|
|
7
|
-
*
|
|
8
|
-
* https://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
-
*
|
|
10
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
-
* See the License for the specific language governing permissions and
|
|
14
|
-
* limitations under the License.
|
|
15
|
-
*/
|
|
16
|
-
export * from './globalThis';
|
|
17
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/platform/node/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,cAAc,cAAc,CAAC","sourcesContent":["/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport * from './globalThis';\n"]}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { MetricAttributes, Observable } from './Metric';
|
|
2
|
-
/**
|
|
3
|
-
* Interface that is being used in callback function for Observable Metric.
|
|
4
|
-
*/
|
|
5
|
-
export interface ObservableResult<AttributesTypes extends MetricAttributes = MetricAttributes> {
|
|
6
|
-
/**
|
|
7
|
-
* Observe a measurement of the value associated with the given attributes.
|
|
8
|
-
*
|
|
9
|
-
* @param value The value to be observed.
|
|
10
|
-
* @param attributes The attributes associated with the value. If more than
|
|
11
|
-
* one values associated with the same attributes values, SDK may pick the
|
|
12
|
-
* last one or simply drop the entire observable result.
|
|
13
|
-
*/
|
|
14
|
-
observe(this: ObservableResult<AttributesTypes>, value: number, attributes?: AttributesTypes): void;
|
|
15
|
-
}
|
|
16
|
-
/**
|
|
17
|
-
* Interface that is being used in batch observable callback function.
|
|
18
|
-
*/
|
|
19
|
-
export interface BatchObservableResult<AttributesTypes extends MetricAttributes = MetricAttributes> {
|
|
20
|
-
/**
|
|
21
|
-
* Observe a measurement of the value associated with the given attributes.
|
|
22
|
-
*
|
|
23
|
-
* @param metric The observable metric to be observed.
|
|
24
|
-
* @param value The value to be observed.
|
|
25
|
-
* @param attributes The attributes associated with the value. If more than
|
|
26
|
-
* one values associated with the same attributes values, SDK may pick the
|
|
27
|
-
* last one or simply drop the entire observable result.
|
|
28
|
-
*/
|
|
29
|
-
observe(this: BatchObservableResult<AttributesTypes>, metric: Observable<AttributesTypes>, value: number, attributes?: AttributesTypes): void;
|
|
30
|
-
}
|
|
31
|
-
//# sourceMappingURL=ObservableResult.d.ts.map
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright The OpenTelemetry Authors
|
|
3
|
-
*
|
|
4
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
-
* you may not use this file except in compliance with the License.
|
|
6
|
-
* You may obtain a copy of the License at
|
|
7
|
-
*
|
|
8
|
-
* https://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
-
*
|
|
10
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
-
* See the License for the specific language governing permissions and
|
|
14
|
-
* limitations under the License.
|
|
15
|
-
*/
|
|
16
|
-
export {};
|
|
17
|
-
//# sourceMappingURL=ObservableResult.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ObservableResult.js","sourceRoot":"","sources":["../../../src/metrics/ObservableResult.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG","sourcesContent":["/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { MetricAttributes, Observable } from './Metric';\n\n/**\n * Interface that is being used in callback function for Observable Metric.\n */\nexport interface ObservableResult<\n AttributesTypes extends MetricAttributes = MetricAttributes,\n> {\n /**\n * Observe a measurement of the value associated with the given attributes.\n *\n * @param value The value to be observed.\n * @param attributes The attributes associated with the value. If more than\n * one values associated with the same attributes values, SDK may pick the\n * last one or simply drop the entire observable result.\n */\n observe(\n this: ObservableResult<AttributesTypes>,\n value: number,\n attributes?: AttributesTypes\n ): void;\n}\n\n/**\n * Interface that is being used in batch observable callback function.\n */\nexport interface BatchObservableResult<\n AttributesTypes extends MetricAttributes = MetricAttributes,\n> {\n /**\n * Observe a measurement of the value associated with the given attributes.\n *\n * @param metric The observable metric to be observed.\n * @param value The value to be observed.\n * @param attributes The attributes associated with the value. If more than\n * one values associated with the same attributes values, SDK may pick the\n * last one or simply drop the entire observable result.\n */\n observe(\n this: BatchObservableResult<AttributesTypes>,\n metric: Observable<AttributesTypes>,\n value: number,\n attributes?: AttributesTypes\n ): void;\n}\n"]}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* - globalThis (New standard)
|
|
3
|
-
* - self (Will return the current window instance for supported browsers)
|
|
4
|
-
* - window (fallback for older browser implementations)
|
|
5
|
-
* - global (NodeJS implementation)
|
|
6
|
-
* - <object> (When all else fails)
|
|
7
|
-
*/
|
|
8
|
-
/** only globals that common to node and browsers are allowed */
|
|
9
|
-
export declare const _globalThis: typeof globalThis;
|
|
10
|
-
//# sourceMappingURL=globalThis.d.ts.map
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright The OpenTelemetry Authors
|
|
3
|
-
*
|
|
4
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
-
* you may not use this file except in compliance with the License.
|
|
6
|
-
* You may obtain a copy of the License at
|
|
7
|
-
*
|
|
8
|
-
* https://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
-
*
|
|
10
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
-
* See the License for the specific language governing permissions and
|
|
14
|
-
* limitations under the License.
|
|
15
|
-
*/
|
|
16
|
-
// Updates to this file should also be replicated to @opentelemetry/core too.
|
|
17
|
-
/**
|
|
18
|
-
* - globalThis (New standard)
|
|
19
|
-
* - self (Will return the current window instance for supported browsers)
|
|
20
|
-
* - window (fallback for older browser implementations)
|
|
21
|
-
* - global (NodeJS implementation)
|
|
22
|
-
* - <object> (When all else fails)
|
|
23
|
-
*/
|
|
24
|
-
/** only globals that common to node and browsers are allowed */
|
|
25
|
-
// eslint-disable-next-line node/no-unsupported-features/es-builtins, no-undef
|
|
26
|
-
export const _globalThis = typeof globalThis === 'object'
|
|
27
|
-
? globalThis
|
|
28
|
-
: typeof self === 'object'
|
|
29
|
-
? self
|
|
30
|
-
: typeof window === 'object'
|
|
31
|
-
? window
|
|
32
|
-
: typeof global === 'object'
|
|
33
|
-
? global
|
|
34
|
-
: {};
|
|
35
|
-
//# sourceMappingURL=globalThis.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"globalThis.js","sourceRoot":"","sources":["../../../../src/platform/browser/globalThis.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,6EAA6E;AAE7E;;;;;;GAMG;AAEH,gEAAgE;AAChE,8EAA8E;AAC9E,MAAM,CAAC,MAAM,WAAW,GACtB,OAAO,UAAU,KAAK,QAAQ;IAC5B,CAAC,CAAC,UAAU;IACZ,CAAC,CAAC,OAAO,IAAI,KAAK,QAAQ;QAC1B,CAAC,CAAC,IAAI;QACN,CAAC,CAAC,OAAO,MAAM,KAAK,QAAQ;YAC5B,CAAC,CAAC,MAAM;YACR,CAAC,CAAC,OAAO,MAAM,KAAK,QAAQ;gBAC5B,CAAC,CAAC,MAAM;gBACR,CAAC,CAAE,EAAwB,CAAC","sourcesContent":["/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n// Updates to this file should also be replicated to @opentelemetry/core too.\n\n/**\n * - globalThis (New standard)\n * - self (Will return the current window instance for supported browsers)\n * - window (fallback for older browser implementations)\n * - global (NodeJS implementation)\n * - <object> (When all else fails)\n */\n\n/** only globals that common to node and browsers are allowed */\n// eslint-disable-next-line node/no-unsupported-features/es-builtins, no-undef\nexport const _globalThis: typeof globalThis =\n typeof globalThis === 'object'\n ? globalThis\n : typeof self === 'object'\n ? self\n : typeof window === 'object'\n ? window\n : typeof global === 'object'\n ? global\n : ({} as typeof globalThis);\n"]}
|