@opentelemetry/api 1.6.0 → 1.7.0
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/build/esm/index.d.ts +1 -1
- package/build/esm/index.js.map +1 -1
- package/build/esm/metrics/Metric.d.ts +16 -0
- package/build/esm/metrics/Metric.js.map +1 -1
- package/build/esm/version.d.ts +1 -1
- package/build/esm/version.js +1 -1
- package/build/esm/version.js.map +1 -1
- package/build/esnext/api/context.d.ts +41 -0
- package/build/esnext/api/context.js +77 -0
- package/build/esnext/api/context.js.map +1 -0
- package/build/esnext/api/diag.d.ts +30 -0
- package/build/esnext/api/diag.js +89 -0
- package/build/esnext/api/diag.js.map +1 -0
- package/build/esnext/api/metrics.d.ts +28 -0
- package/build/esnext/api/metrics.js +57 -0
- package/build/esnext/api/metrics.js.map +1 -0
- package/build/esnext/api/propagation.d.ts +49 -0
- package/build/esnext/api/propagation.js +85 -0
- package/build/esnext/api/propagation.js.map +1 -0
- package/build/esnext/api/trace.d.ts +40 -0
- package/build/esnext/api/trace.js +75 -0
- package/build/esnext/api/trace.js.map +1 -0
- package/build/esnext/baggage/context-helpers.d.ts +29 -0
- package/build/esnext/baggage/context-helpers.js +56 -0
- package/build/esnext/baggage/context-helpers.js.map +1 -0
- package/build/esnext/baggage/internal/baggage-impl.d.ts +12 -0
- package/build/esnext/baggage/internal/baggage-impl.js +51 -0
- package/build/esnext/baggage/internal/baggage-impl.js.map +1 -0
- package/build/esnext/baggage/internal/symbol.d.ts +5 -0
- package/build/esnext/baggage/internal/symbol.js +20 -0
- package/build/esnext/baggage/internal/symbol.js.map +1 -0
- package/build/esnext/baggage/types.d.ts +60 -0
- package/build/esnext/baggage/types.js +17 -0
- package/build/esnext/baggage/types.js.map +1 -0
- package/build/esnext/baggage/utils.d.ts +15 -0
- package/build/esnext/baggage/utils.js +46 -0
- package/build/esnext/baggage/utils.js.map +1 -0
- package/build/esnext/common/Attributes.d.ts +15 -0
- package/build/esnext/common/Attributes.js +17 -0
- package/build/esnext/common/Attributes.js.map +1 -0
- package/build/esnext/common/Exception.d.ts +26 -0
- package/build/esnext/common/Exception.js +17 -0
- package/build/esnext/common/Exception.js.map +1 -0
- package/build/esnext/common/Time.d.ts +20 -0
- package/build/esnext/common/Time.js +2 -0
- package/build/esnext/common/Time.js.map +1 -0
- package/build/esnext/context/NoopContextManager.d.ts +9 -0
- package/build/esnext/context/NoopContextManager.js +34 -0
- package/build/esnext/context/NoopContextManager.js.map +1 -0
- package/build/esnext/context/context.d.ts +6 -0
- package/build/esnext/context/context.js +51 -0
- package/build/esnext/context/context.js.map +1 -0
- package/build/esnext/context/types.d.ts +52 -0
- package/build/esnext/context/types.js +17 -0
- package/build/esnext/context/types.js.map +1 -0
- package/build/esnext/context-api.d.ts +4 -0
- package/build/esnext/context-api.js +21 -0
- package/build/esnext/context-api.js.map +1 -0
- package/build/esnext/diag/ComponentLogger.d.ts +20 -0
- package/build/esnext/diag/ComponentLogger.js +55 -0
- package/build/esnext/diag/ComponentLogger.js.map +1 -0
- package/build/esnext/diag/consoleLogger.d.ts +38 -0
- package/build/esnext/diag/consoleLogger.js +53 -0
- package/build/esnext/diag/consoleLogger.js.map +1 -0
- package/build/esnext/diag/internal/logLevelLogger.d.ts +3 -0
- package/build/esnext/diag/internal/logLevelLogger.js +41 -0
- package/build/esnext/diag/internal/logLevelLogger.js.map +1 -0
- package/build/esnext/diag/internal/noopLogger.d.ts +8 -0
- package/build/esnext/diag/internal/noopLogger.js +31 -0
- package/build/esnext/diag/internal/noopLogger.js.map +1 -0
- package/build/esnext/diag/types.d.ts +100 -0
- package/build/esnext/diag/types.js +41 -0
- package/build/esnext/diag/types.js.map +1 -0
- package/build/esnext/diag-api.d.ts +9 -0
- package/build/esnext/diag-api.js +26 -0
- package/build/esnext/diag-api.js.map +1 -0
- package/build/esnext/index.d.ts +54 -0
- package/build/esnext/index.js +53 -0
- package/build/esnext/index.js.map +1 -0
- package/build/esnext/internal/global-utils.d.ts +18 -0
- package/build/esnext/internal/global-utils.js +58 -0
- package/build/esnext/internal/global-utils.js.map +1 -0
- package/build/esnext/internal/semver.d.ts +34 -0
- package/build/esnext/internal/semver.js +118 -0
- package/build/esnext/internal/semver.js.map +1 -0
- package/build/esnext/metrics/Meter.d.ts +104 -0
- package/build/esnext/metrics/Meter.js +17 -0
- package/build/esnext/metrics/Meter.js.map +1 -0
- package/build/esnext/metrics/MeterProvider.d.ts +17 -0
- package/build/esnext/metrics/MeterProvider.js +17 -0
- package/build/esnext/metrics/MeterProvider.js.map +1 -0
- package/build/esnext/metrics/Metric.d.ts +109 -0
- package/build/esnext/metrics/Metric.js +22 -0
- package/build/esnext/metrics/Metric.js.map +1 -0
- package/build/esnext/metrics/NoopMeter.d.ts +74 -0
- package/build/esnext/metrics/NoopMeter.js +103 -0
- package/build/esnext/metrics/NoopMeter.js.map +1 -0
- package/build/esnext/metrics/NoopMeterProvider.d.ts +11 -0
- package/build/esnext/metrics/NoopMeterProvider.js +27 -0
- package/build/esnext/metrics/NoopMeterProvider.js.map +1 -0
- package/build/esnext/metrics/ObservableResult.d.ts +31 -0
- package/build/esnext/metrics/ObservableResult.js +17 -0
- package/build/esnext/metrics/ObservableResult.js.map +1 -0
- package/build/esnext/metrics-api.d.ts +4 -0
- package/build/esnext/metrics-api.js +21 -0
- package/build/esnext/metrics-api.js.map +1 -0
- package/build/esnext/platform/browser/globalThis.d.ts +10 -0
- package/build/esnext/platform/browser/globalThis.js +35 -0
- package/build/esnext/platform/browser/globalThis.js.map +1 -0
- package/build/esnext/platform/browser/index.d.ts +2 -0
- package/build/esnext/platform/browser/index.js +17 -0
- package/build/esnext/platform/browser/index.js.map +1 -0
- package/build/esnext/platform/index.d.ts +2 -0
- package/build/esnext/platform/index.js +17 -0
- package/build/esnext/platform/index.js.map +1 -0
- package/build/esnext/platform/node/globalThis.d.ts +3 -0
- package/build/esnext/platform/node/globalThis.js +19 -0
- package/build/esnext/platform/node/globalThis.js.map +1 -0
- package/build/esnext/platform/node/index.d.ts +2 -0
- package/build/esnext/platform/node/index.js +17 -0
- package/build/esnext/platform/node/index.js.map +1 -0
- package/build/esnext/propagation/NoopTextMapPropagator.d.ts +13 -0
- package/build/esnext/propagation/NoopTextMapPropagator.js +30 -0
- package/build/esnext/propagation/NoopTextMapPropagator.js.map +1 -0
- package/build/esnext/propagation/TextMapPropagator.d.ts +84 -0
- package/build/esnext/propagation/TextMapPropagator.js +38 -0
- package/build/esnext/propagation/TextMapPropagator.js.map +1 -0
- package/build/esnext/propagation-api.d.ts +4 -0
- package/build/esnext/propagation-api.js +21 -0
- package/build/esnext/propagation-api.js.map +1 -0
- package/build/esnext/trace/NonRecordingSpan.d.ts +25 -0
- package/build/esnext/trace/NonRecordingSpan.js +59 -0
- package/build/esnext/trace/NonRecordingSpan.js.map +1 -0
- package/build/esnext/trace/NoopTracer.d.ts +14 -0
- package/build/esnext/trace/NoopTracer.js +71 -0
- package/build/esnext/trace/NoopTracer.js.map +1 -0
- package/build/esnext/trace/NoopTracerProvider.d.ts +13 -0
- package/build/esnext/trace/NoopTracerProvider.js +28 -0
- package/build/esnext/trace/NoopTracerProvider.js.map +1 -0
- package/build/esnext/trace/ProxyTracer.d.ts +27 -0
- package/build/esnext/trace/ProxyTracer.js +51 -0
- package/build/esnext/trace/ProxyTracer.js.map +1 -0
- package/build/esnext/trace/ProxyTracerProvider.d.ts +25 -0
- package/build/esnext/trace/ProxyTracerProvider.js +50 -0
- package/build/esnext/trace/ProxyTracerProvider.js.map +1 -0
- package/build/esnext/trace/Sampler.d.ts +31 -0
- package/build/esnext/trace/Sampler.js +17 -0
- package/build/esnext/trace/Sampler.js.map +1 -0
- package/build/esnext/trace/SamplingResult.d.ts +49 -0
- package/build/esnext/trace/SamplingResult.js +39 -0
- package/build/esnext/trace/SamplingResult.js.map +1 -0
- package/build/esnext/trace/SpanOptions.d.ts +23 -0
- package/build/esnext/trace/SpanOptions.js +17 -0
- package/build/esnext/trace/SpanOptions.js.map +1 -0
- package/build/esnext/trace/attributes.d.ts +10 -0
- package/build/esnext/trace/attributes.js +17 -0
- package/build/esnext/trace/attributes.js.map +1 -0
- package/build/esnext/trace/context-utils.d.ts +41 -0
- package/build/esnext/trace/context-utils.js +73 -0
- package/build/esnext/trace/context-utils.js.map +1 -0
- package/build/esnext/trace/internal/tracestate-impl.d.ts +22 -0
- package/build/esnext/trace/internal/tracestate-impl.js +99 -0
- package/build/esnext/trace/internal/tracestate-impl.js.map +1 -0
- package/build/esnext/trace/internal/tracestate-validators.d.ts +15 -0
- package/build/esnext/trace/internal/tracestate-validators.js +41 -0
- package/build/esnext/trace/internal/tracestate-validators.js.map +1 -0
- package/build/esnext/trace/internal/utils.d.ts +3 -0
- package/build/esnext/trace/internal/utils.js +20 -0
- package/build/esnext/trace/internal/utils.js.map +1 -0
- package/build/esnext/trace/invalid-span-constants.d.ts +5 -0
- package/build/esnext/trace/invalid-span-constants.js +24 -0
- package/build/esnext/trace/invalid-span-constants.js.map +1 -0
- package/build/esnext/trace/link.d.ts +26 -0
- package/build/esnext/trace/link.js +17 -0
- package/build/esnext/trace/link.js.map +1 -0
- package/build/esnext/trace/span.d.ts +101 -0
- package/build/esnext/trace/span.js +17 -0
- package/build/esnext/trace/span.js.map +1 -0
- package/build/esnext/trace/span_context.d.ts +53 -0
- package/build/esnext/trace/span_context.js +17 -0
- package/build/esnext/trace/span_context.js.map +1 -0
- package/build/esnext/trace/span_kind.d.ts +27 -0
- package/build/esnext/trace/span_kind.js +43 -0
- package/build/esnext/trace/span_kind.js.map +1 -0
- package/build/esnext/trace/spancontext-utils.d.ts +17 -0
- package/build/esnext/trace/spancontext-utils.js +42 -0
- package/build/esnext/trace/spancontext-utils.js.map +1 -0
- package/build/esnext/trace/status.d.ts +25 -0
- package/build/esnext/trace/status.js +20 -0
- package/build/esnext/trace/status.js.map +1 -0
- package/build/esnext/trace/trace_flags.d.ts +7 -0
- package/build/esnext/trace/trace_flags.js +23 -0
- package/build/esnext/trace/trace_flags.js.map +1 -0
- package/build/esnext/trace/trace_state.d.ts +38 -0
- package/build/esnext/trace/trace_state.js +17 -0
- package/build/esnext/trace/trace_state.js.map +1 -0
- package/build/esnext/trace/tracer.d.ts +71 -0
- package/build/esnext/trace/tracer.js +17 -0
- package/build/esnext/trace/tracer.js.map +1 -0
- package/build/esnext/trace/tracer_options.d.ts +10 -0
- package/build/esnext/trace/tracer_options.js +17 -0
- package/build/esnext/trace/tracer_options.js.map +1 -0
- package/build/esnext/trace/tracer_provider.d.ts +21 -0
- package/build/esnext/trace/tracer_provider.js +17 -0
- package/build/esnext/trace/tracer_provider.js.map +1 -0
- package/build/esnext/trace-api.d.ts +4 -0
- package/build/esnext/trace-api.js +21 -0
- package/build/esnext/trace-api.js.map +1 -0
- package/build/esnext/version.d.ts +2 -0
- package/build/esnext/version.js +18 -0
- package/build/esnext/version.js.map +1 -0
- package/build/src/index.d.ts +1 -1
- package/build/src/index.js.map +1 -1
- package/build/src/metrics/Metric.d.ts +16 -0
- package/build/src/metrics/Metric.js.map +1 -1
- package/build/src/version.d.ts +1 -1
- package/build/src/version.js +1 -1
- package/build/src/version.js.map +1 -1
- package/package.json +11 -6
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { Context } from '../context/types';
|
|
2
|
+
import { Span } from './span';
|
|
3
|
+
import { SpanOptions } from './SpanOptions';
|
|
4
|
+
/**
|
|
5
|
+
* Tracer provides an interface for creating {@link Span}s.
|
|
6
|
+
*/
|
|
7
|
+
export interface Tracer {
|
|
8
|
+
/**
|
|
9
|
+
* Starts a new {@link Span}. Start the span without setting it on context.
|
|
10
|
+
*
|
|
11
|
+
* This method do NOT modify the current Context.
|
|
12
|
+
*
|
|
13
|
+
* @param name The name of the span
|
|
14
|
+
* @param [options] SpanOptions used for span creation
|
|
15
|
+
* @param [context] Context to use to extract parent
|
|
16
|
+
* @returns Span The newly created span
|
|
17
|
+
* @example
|
|
18
|
+
* const span = tracer.startSpan('op');
|
|
19
|
+
* span.setAttribute('key', 'value');
|
|
20
|
+
* span.end();
|
|
21
|
+
*/
|
|
22
|
+
startSpan(name: string, options?: SpanOptions, context?: Context): Span;
|
|
23
|
+
/**
|
|
24
|
+
* Starts a new {@link Span} and calls the given function passing it the
|
|
25
|
+
* created span as first argument.
|
|
26
|
+
* Additionally the new span gets set in context and this context is activated
|
|
27
|
+
* for the duration of the function call.
|
|
28
|
+
*
|
|
29
|
+
* @param name The name of the span
|
|
30
|
+
* @param [options] SpanOptions used for span creation
|
|
31
|
+
* @param [context] Context to use to extract parent
|
|
32
|
+
* @param fn function called in the context of the span and receives the newly created span as an argument
|
|
33
|
+
* @returns return value of fn
|
|
34
|
+
* @example
|
|
35
|
+
* const something = tracer.startActiveSpan('op', span => {
|
|
36
|
+
* try {
|
|
37
|
+
* do some work
|
|
38
|
+
* span.setStatus({code: SpanStatusCode.OK});
|
|
39
|
+
* return something;
|
|
40
|
+
* } catch (err) {
|
|
41
|
+
* span.setStatus({
|
|
42
|
+
* code: SpanStatusCode.ERROR,
|
|
43
|
+
* message: err.message,
|
|
44
|
+
* });
|
|
45
|
+
* throw err;
|
|
46
|
+
* } finally {
|
|
47
|
+
* span.end();
|
|
48
|
+
* }
|
|
49
|
+
* });
|
|
50
|
+
*
|
|
51
|
+
* @example
|
|
52
|
+
* const span = tracer.startActiveSpan('op', span => {
|
|
53
|
+
* try {
|
|
54
|
+
* do some work
|
|
55
|
+
* return span;
|
|
56
|
+
* } catch (err) {
|
|
57
|
+
* span.setStatus({
|
|
58
|
+
* code: SpanStatusCode.ERROR,
|
|
59
|
+
* message: err.message,
|
|
60
|
+
* });
|
|
61
|
+
* throw err;
|
|
62
|
+
* }
|
|
63
|
+
* });
|
|
64
|
+
* do some more work
|
|
65
|
+
* span.end();
|
|
66
|
+
*/
|
|
67
|
+
startActiveSpan<F extends (span: Span) => unknown>(name: string, fn: F): ReturnType<F>;
|
|
68
|
+
startActiveSpan<F extends (span: Span) => unknown>(name: string, options: SpanOptions, fn: F): ReturnType<F>;
|
|
69
|
+
startActiveSpan<F extends (span: Span) => unknown>(name: string, options: SpanOptions, context: Context, fn: F): ReturnType<F>;
|
|
70
|
+
}
|
|
71
|
+
//# sourceMappingURL=tracer.d.ts.map
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright The OpenTelemetry Authors
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* https://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF 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=tracer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tracer.js","sourceRoot":"","sources":["../../../src/trace/tracer.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 { Context } from '../context/types';\nimport { Span } from './span';\nimport { SpanOptions } from './SpanOptions';\n\n/**\n * Tracer provides an interface for creating {@link Span}s.\n */\nexport interface Tracer {\n /**\n * Starts a new {@link Span}. Start the span without setting it on context.\n *\n * This method do NOT modify the current Context.\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 * @returns Span The newly created span\n * @example\n * const span = tracer.startSpan('op');\n * span.setAttribute('key', 'value');\n * span.end();\n */\n startSpan(name: string, options?: SpanOptions, context?: Context): Span;\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 * @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 *\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: Span) => unknown>(\n name: string,\n fn: F\n ): ReturnType<F>;\n startActiveSpan<F extends (span: Span) => unknown>(\n name: string,\n options: SpanOptions,\n fn: F\n ): ReturnType<F>;\n startActiveSpan<F extends (span: Span) => unknown>(\n name: string,\n options: SpanOptions,\n context: Context,\n fn: F\n ): ReturnType<F>;\n}\n"]}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright The OpenTelemetry Authors
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* https://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF 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=tracer_options.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tracer_options.js","sourceRoot":"","sources":["../../../src/trace/tracer_options.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\n/**\n * An interface describes additional metadata of a tracer.\n */\nexport interface TracerOptions {\n /**\n * The schemaUrl of the tracer or instrumentation library\n */\n schemaUrl?: string;\n}\n"]}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { Tracer } from './tracer';
|
|
2
|
+
import { TracerOptions } from './tracer_options';
|
|
3
|
+
/**
|
|
4
|
+
* A registry for creating named {@link Tracer}s.
|
|
5
|
+
*/
|
|
6
|
+
export interface TracerProvider {
|
|
7
|
+
/**
|
|
8
|
+
* Returns a Tracer, creating one if one with the given name and version is
|
|
9
|
+
* not already created.
|
|
10
|
+
*
|
|
11
|
+
* This function may return different Tracer types (e.g.
|
|
12
|
+
* {@link NoopTracerProvider} vs. a functional tracer).
|
|
13
|
+
*
|
|
14
|
+
* @param name The name of the tracer or instrumentation library.
|
|
15
|
+
* @param version The version of the tracer or instrumentation library.
|
|
16
|
+
* @param options The options of the tracer or instrumentation library.
|
|
17
|
+
* @returns Tracer A Tracer with the given name and version
|
|
18
|
+
*/
|
|
19
|
+
getTracer(name: string, version?: string, options?: TracerOptions): Tracer;
|
|
20
|
+
}
|
|
21
|
+
//# sourceMappingURL=tracer_provider.d.ts.map
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright The OpenTelemetry Authors
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* https://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF 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=tracer_provider.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tracer_provider.js","sourceRoot":"","sources":["../../../src/trace/tracer_provider.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 { Tracer } from './tracer';\nimport { TracerOptions } from './tracer_options';\n\n/**\n * A registry for creating named {@link Tracer}s.\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"]}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright The OpenTelemetry Authors
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* https://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
// Split module-level variable definition into separate files to allow
|
|
17
|
+
// tree-shaking on each api instance.
|
|
18
|
+
import { TraceAPI } from './api/trace';
|
|
19
|
+
/** Entrypoint for trace API */
|
|
20
|
+
export const trace = TraceAPI.getInstance();
|
|
21
|
+
//# sourceMappingURL=trace-api.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"trace-api.js","sourceRoot":"","sources":["../../src/trace-api.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,sEAAsE;AACtE,qCAAqC;AACrC,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,+BAA+B;AAC/B,MAAM,CAAC,MAAM,KAAK,GAAG,QAAQ,CAAC,WAAW,EAAE,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// Split module-level variable definition into separate files to allow\n// tree-shaking on each api instance.\nimport { TraceAPI } from './api/trace';\n/** Entrypoint for trace API */\nexport const trace = TraceAPI.getInstance();\n"]}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright The OpenTelemetry Authors
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* https://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
// this is autogenerated file, see scripts/version-update.js
|
|
17
|
+
export const VERSION = '1.7.0';
|
|
18
|
+
//# sourceMappingURL=version.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"version.js","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,4DAA4D;AAC5D,MAAM,CAAC,MAAM,OAAO,GAAG,OAAO,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// this is autogenerated file, see scripts/version-update.js\nexport const VERSION = '1.7.0';\n"]}
|
package/build/src/index.d.ts
CHANGED
|
@@ -12,7 +12,7 @@ export type { DiagAPI } from './api/diag';
|
|
|
12
12
|
export { createNoopMeter } from './metrics/NoopMeter';
|
|
13
13
|
export { MeterOptions, Meter } from './metrics/Meter';
|
|
14
14
|
export { MeterProvider } from './metrics/MeterProvider';
|
|
15
|
-
export { ValueType, Counter, Histogram, MetricOptions, Observable, ObservableCounter, ObservableGauge, ObservableUpDownCounter, UpDownCounter, BatchObservableCallback, MetricAttributes, MetricAttributeValue, ObservableCallback, } from './metrics/Metric';
|
|
15
|
+
export { ValueType, Counter, Histogram, MetricOptions, Observable, ObservableCounter, ObservableGauge, ObservableUpDownCounter, UpDownCounter, BatchObservableCallback, MetricAdvice, MetricAttributes, MetricAttributeValue, ObservableCallback, } from './metrics/Metric';
|
|
16
16
|
export { BatchObservableResult, ObservableResult, } from './metrics/ObservableResult';
|
|
17
17
|
export type { MetricsAPI } from './api/metrics';
|
|
18
18
|
export { TextMapPropagator, TextMapSetter, TextMapGetter, defaultTextMapGetter, defaultTextMapSetter, } from './propagation/TextMapPropagator';
|
package/build/src/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAGH,yCAAiE;AAAxD,uHAAA,8BAA8B,OAAA;AAKvC,eAAe;AACf,6CAAmE;AAA1D,2GAAA,gBAAgB,OAAA;AAAE,uGAAA,YAAY,OAAA;AAIvC,YAAY;AACZ,sDAAyD;AAAhD,kHAAA,iBAAiB,OAAA;AAC1B,sCAMsB;AAHpB,qGAAA,YAAY,OAAA;AAMd,eAAe;AACf,iDAAsD;AAA7C,4GAAA,eAAe,OAAA;AAGxB,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAGH,yCAAiE;AAAxD,uHAAA,8BAA8B,OAAA;AAKvC,eAAe;AACf,6CAAmE;AAA1D,2GAAA,gBAAgB,OAAA;AAAE,uGAAA,YAAY,OAAA;AAIvC,YAAY;AACZ,sDAAyD;AAAhD,kHAAA,iBAAiB,OAAA;AAC1B,sCAMsB;AAHpB,qGAAA,YAAY,OAAA;AAMd,eAAe;AACf,iDAAsD;AAA7C,4GAAA,eAAe,OAAA;AAGxB,2CAe0B;AAdxB,mGAAA,SAAS,OAAA;AAqBX,mBAAmB;AACnB,qEAMyC;AAFvC,yHAAA,oBAAoB,OAAA;AACpB,yHAAA,oBAAoB,OAAA;AAOtB,mDAAmE;AAA1D,0GAAA,WAAW,OAAA;AACpB,mEAAkE;AAAzD,0HAAA,mBAAmB,OAAA;AAE5B,yDAA0E;AAAjE,kHAAA,gBAAgB,OAAA;AAEzB,+CAA6C;AAApC,qGAAA,QAAQ,OAAA;AAGjB,yCAA4D;AAAvC,wGAAA,cAAc,OAAA;AACnC,mDAAiD;AAAxC,yGAAA,UAAU,OAAA;AAEnB,gDAA0D;AAAjD,yGAAA,gBAAgB,OAAA;AAIzB,+DAImC;AAHjC,uHAAA,kBAAkB,OAAA;AAClB,mHAAA,cAAc,OAAA;AACd,kHAAA,aAAa,OAAA;AAEf,yEAIwC;AAHtC,wHAAA,cAAc,OAAA;AACd,yHAAA,eAAe,OAAA;AACf,8HAAA,oBAAoB,OAAA;AAItB,sEAAsE;AACtE,qCAAqC;AACrC,+CAAwC;AAO/B,wFAPA,qBAAO,OAOA;AANhB,yCAAkC;AAMhB,qFANT,eAAI,OAMS;AALtB,+CAAwC;AAKhB,wFALf,qBAAO,OAKe;AAJ/B,uDAAgD;AAIf,4FAJxB,6BAAW,OAIwB;AAH5C,2CAAoC;AAGU,sFAHrC,iBAAK,OAGqC;AACnD,kBAAkB;AAClB,kBAAe;IACb,OAAO,EAAP,qBAAO;IACP,IAAI,EAAJ,eAAI;IACJ,OAAO,EAAP,qBAAO;IACP,WAAW,EAAX,6BAAW;IACX,KAAK,EAAL,iBAAK;CACN,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 { BaggageEntry, BaggageEntryMetadata, Baggage } from './baggage/types';\nexport { baggageEntryMetadataFromString } from './baggage/utils';\nexport { Exception } from './common/Exception';\nexport { HrTime, TimeInput } from './common/Time';\nexport { Attributes, AttributeValue } from './common/Attributes';\n\n// Context APIs\nexport { createContextKey, ROOT_CONTEXT } from './context/context';\nexport { Context, ContextManager } from './context/types';\nexport type { ContextAPI } from './api/context';\n\n// Diag APIs\nexport { DiagConsoleLogger } from './diag/consoleLogger';\nexport {\n DiagLogFunction,\n DiagLogger,\n DiagLogLevel,\n ComponentLoggerOptions,\n DiagLoggerOptions,\n} from './diag/types';\nexport type { DiagAPI } from './api/diag';\n\n// Metrics APIs\nexport { createNoopMeter } from './metrics/NoopMeter';\nexport { MeterOptions, Meter } from './metrics/Meter';\nexport { MeterProvider } from './metrics/MeterProvider';\nexport {\n ValueType,\n Counter,\n Histogram,\n MetricOptions,\n Observable,\n ObservableCounter,\n ObservableGauge,\n ObservableUpDownCounter,\n UpDownCounter,\n BatchObservableCallback,\n MetricAdvice,\n MetricAttributes,\n MetricAttributeValue,\n ObservableCallback,\n} from './metrics/Metric';\nexport {\n BatchObservableResult,\n ObservableResult,\n} from './metrics/ObservableResult';\nexport type { MetricsAPI } from './api/metrics';\n\n// Propagation APIs\nexport {\n TextMapPropagator,\n TextMapSetter,\n TextMapGetter,\n defaultTextMapGetter,\n defaultTextMapSetter,\n} from './propagation/TextMapPropagator';\nexport type { PropagationAPI } from './api/propagation';\n\n// Trace APIs\nexport { SpanAttributes, SpanAttributeValue } from './trace/attributes';\nexport { Link } from './trace/link';\nexport { ProxyTracer, TracerDelegator } from './trace/ProxyTracer';\nexport { ProxyTracerProvider } from './trace/ProxyTracerProvider';\nexport { Sampler } from './trace/Sampler';\nexport { SamplingDecision, SamplingResult } from './trace/SamplingResult';\nexport { SpanContext } from './trace/span_context';\nexport { SpanKind } from './trace/span_kind';\nexport { Span } from './trace/span';\nexport { SpanOptions } from './trace/SpanOptions';\nexport { SpanStatus, SpanStatusCode } from './trace/status';\nexport { TraceFlags } from './trace/trace_flags';\nexport { TraceState } from './trace/trace_state';\nexport { createTraceState } from './trace/internal/utils';\nexport { TracerProvider } from './trace/tracer_provider';\nexport { Tracer } from './trace/tracer';\nexport { TracerOptions } from './trace/tracer_options';\nexport {\n isSpanContextValid,\n isValidTraceId,\n isValidSpanId,\n} from './trace/spancontext-utils';\nexport {\n INVALID_SPANID,\n INVALID_TRACEID,\n INVALID_SPAN_CONTEXT,\n} from './trace/invalid-span-constants';\nexport type { TraceAPI } from './api/trace';\n\n// Split module-level variable definition into separate files to allow\n// tree-shaking on each api instance.\nimport { context } from './context-api';\nimport { diag } from './diag-api';\nimport { metrics } from './metrics-api';\nimport { propagation } from './propagation-api';\nimport { trace } from './trace-api';\n\n// Named export.\nexport { context, diag, metrics, propagation, trace };\n// Default export.\nexport default {\n context,\n diag,\n metrics,\n propagation,\n trace,\n};\n"]}
|
|
@@ -1,6 +1,17 @@
|
|
|
1
1
|
import { Attributes, AttributeValue } from '../common/Attributes';
|
|
2
2
|
import { Context } from '../context/types';
|
|
3
3
|
import { BatchObservableResult, ObservableResult } from './ObservableResult';
|
|
4
|
+
/**
|
|
5
|
+
* Advisory options influencing aggregation configuration parameters.
|
|
6
|
+
* @experimental
|
|
7
|
+
*/
|
|
8
|
+
export interface MetricAdvice {
|
|
9
|
+
/**
|
|
10
|
+
* Hint the explicit bucket boundaries for SDK if the metric is been
|
|
11
|
+
* aggregated with a HistogramAggregator.
|
|
12
|
+
*/
|
|
13
|
+
explicitBucketBoundaries?: number[];
|
|
14
|
+
}
|
|
4
15
|
/**
|
|
5
16
|
* Options needed for metric creation
|
|
6
17
|
*/
|
|
@@ -20,6 +31,11 @@ export interface MetricOptions {
|
|
|
20
31
|
* @default {@link ValueType.DOUBLE}
|
|
21
32
|
*/
|
|
22
33
|
valueType?: ValueType;
|
|
34
|
+
/**
|
|
35
|
+
* The advice influencing aggregation configuration parameters.
|
|
36
|
+
* @experimental
|
|
37
|
+
*/
|
|
38
|
+
advice?: MetricAdvice;
|
|
23
39
|
}
|
|
24
40
|
/** The Type of value. It describes how the data is reported. */
|
|
25
41
|
export declare enum ValueType {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Metric.js","sourceRoot":"","sources":["../../../src/metrics/Metric.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;
|
|
1
|
+
{"version":3,"file":"Metric.js","sourceRoot":"","sources":["../../../src/metrics/Metric.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AA+CH,gEAAgE;AAChE,IAAY,SAGX;AAHD,WAAY,SAAS;IACnB,uCAAG,CAAA;IACH,6CAAM,CAAA;AACR,CAAC,EAHW,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAGpB","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 { Attributes, AttributeValue } from '../common/Attributes';\nimport { Context } from '../context/types';\nimport { BatchObservableResult, ObservableResult } from './ObservableResult';\n\n/**\n * Advisory options influencing aggregation configuration parameters.\n * @experimental\n */\nexport interface MetricAdvice {\n /**\n * Hint the explicit bucket boundaries for SDK if the metric is been\n * aggregated with a HistogramAggregator.\n */\n explicitBucketBoundaries?: number[];\n}\n\n/**\n * Options needed for metric creation\n */\nexport interface MetricOptions {\n /**\n * The description of the Metric.\n * @default ''\n */\n description?: string;\n\n /**\n * The unit of the Metric values.\n * @default ''\n */\n unit?: string;\n\n /**\n * Indicates the type of the recorded value.\n * @default {@link ValueType.DOUBLE}\n */\n valueType?: ValueType;\n\n /**\n * The advice influencing aggregation configuration parameters.\n * @experimental\n */\n advice?: MetricAdvice;\n}\n\n/** The Type of value. It describes how the data is reported. */\nexport enum ValueType {\n INT,\n DOUBLE,\n}\n\n/**\n * Counter is the most common synchronous instrument. This instrument supports\n * an `Add(increment)` function for reporting a sum, and is restricted to\n * non-negative increments. The default aggregation is Sum, as for any additive\n * instrument.\n *\n * Example uses for Counter:\n * <ol>\n * <li> count the number of bytes received. </li>\n * <li> count the number of requests completed. </li>\n * <li> count the number of accounts created. </li>\n * <li> count the number of checkpoints run. </li>\n * <li> count the number of 5xx errors. </li>\n * <ol>\n */\nexport interface Counter<\n AttributesTypes extends MetricAttributes = MetricAttributes,\n> {\n /**\n * Increment value of counter by the input. Inputs must not be negative.\n */\n add(value: number, attributes?: AttributesTypes, context?: Context): void;\n}\n\nexport interface UpDownCounter<\n AttributesTypes extends MetricAttributes = MetricAttributes,\n> {\n /**\n * Increment value of counter by the input. Inputs may be negative.\n */\n add(value: number, attributes?: AttributesTypes, context?: Context): void;\n}\n\nexport interface Histogram<\n AttributesTypes extends MetricAttributes = MetricAttributes,\n> {\n /**\n * Records a measurement. Value of the measurement must not be negative.\n */\n record(value: number, attributes?: AttributesTypes, context?: Context): void;\n}\n\n/**\n * @deprecated please use {@link Attributes}\n */\nexport type MetricAttributes = Attributes;\n\n/**\n * @deprecated please use {@link AttributeValue}\n */\nexport type MetricAttributeValue = AttributeValue;\n\n/**\n * The observable callback for Observable instruments.\n */\nexport type ObservableCallback<\n AttributesTypes extends MetricAttributes = MetricAttributes,\n> = (\n observableResult: ObservableResult<AttributesTypes>\n) => void | Promise<void>;\n\n/**\n * The observable callback for a batch of Observable instruments.\n */\nexport type BatchObservableCallback<\n AttributesTypes extends MetricAttributes = MetricAttributes,\n> = (\n observableResult: BatchObservableResult<AttributesTypes>\n) => void | Promise<void>;\n\nexport interface Observable<\n AttributesTypes extends MetricAttributes = MetricAttributes,\n> {\n /**\n * Sets up a function that will be called whenever a metric collection is initiated.\n *\n * If the function is already in the list of callbacks for this Observable, the function is not added a second time.\n */\n addCallback(callback: ObservableCallback<AttributesTypes>): void;\n\n /**\n * Removes a callback previously registered with {@link Observable.addCallback}.\n */\n removeCallback(callback: ObservableCallback<AttributesTypes>): void;\n}\n\nexport type ObservableCounter<\n AttributesTypes extends MetricAttributes = MetricAttributes,\n> = Observable<AttributesTypes>;\nexport type ObservableUpDownCounter<\n AttributesTypes extends MetricAttributes = MetricAttributes,\n> = Observable<AttributesTypes>;\nexport type ObservableGauge<\n AttributesTypes extends MetricAttributes = MetricAttributes,\n> = Observable<AttributesTypes>;\n"]}
|
package/build/src/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "1.
|
|
1
|
+
export declare const VERSION = "1.7.0";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/build/src/version.js
CHANGED
package/build/src/version.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.js","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAEH,4DAA4D;AAC/C,QAAA,OAAO,GAAG,OAAO,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// this is autogenerated file, see scripts/version-update.js\nexport const VERSION = '1.
|
|
1
|
+
{"version":3,"file":"version.js","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAEH,4DAA4D;AAC/C,QAAA,OAAO,GAAG,OAAO,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// this is autogenerated file, see scripts/version-update.js\nexport const VERSION = '1.7.0';\n"]}
|
package/package.json
CHANGED
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opentelemetry/api",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.7.0",
|
|
4
4
|
"description": "Public API for OpenTelemetry",
|
|
5
5
|
"main": "build/src/index.js",
|
|
6
6
|
"module": "build/esm/index.js",
|
|
7
|
+
"esnext": "build/esnext/index.js",
|
|
7
8
|
"types": "build/src/index.d.ts",
|
|
8
9
|
"browser": {
|
|
9
10
|
"./src/platform/index.ts": "./src/platform/browser/index.ts",
|
|
10
11
|
"./build/esm/platform/index.js": "./build/esm/platform/browser/index.js",
|
|
12
|
+
"./build/esnext/platform/index.js": "./build/esnext/platform/browser/index.js",
|
|
11
13
|
"./build/src/platform/index.js": "./build/src/platform/browser/index.js"
|
|
12
14
|
},
|
|
13
15
|
"repository": "open-telemetry/opentelemetry-js",
|
|
@@ -51,6 +53,9 @@
|
|
|
51
53
|
"build/esm/**/*.js",
|
|
52
54
|
"build/esm/**/*.js.map",
|
|
53
55
|
"build/esm/**/*.d.ts",
|
|
56
|
+
"build/esnext/**/*.js",
|
|
57
|
+
"build/esnext/**/*.js.map",
|
|
58
|
+
"build/esnext/**/*.d.ts",
|
|
54
59
|
"build/src/**/*.js",
|
|
55
60
|
"build/src/**/*.js.map",
|
|
56
61
|
"build/src/**/*.d.ts",
|
|
@@ -61,10 +66,10 @@
|
|
|
61
66
|
"access": "public"
|
|
62
67
|
},
|
|
63
68
|
"devDependencies": {
|
|
64
|
-
"@types/mocha": "10.0.
|
|
69
|
+
"@types/mocha": "10.0.3",
|
|
65
70
|
"@types/node": "18.6.5",
|
|
66
|
-
"@types/sinon": "10.0.
|
|
67
|
-
"@types/webpack": "4.41.
|
|
71
|
+
"@types/sinon": "10.0.20",
|
|
72
|
+
"@types/webpack": "4.41.35",
|
|
68
73
|
"@types/webpack-env": "1.16.3",
|
|
69
74
|
"babel-plugin-istanbul": "6.1.1",
|
|
70
75
|
"codecov": "3.8.3",
|
|
@@ -77,7 +82,7 @@
|
|
|
77
82
|
"karma-mocha-webworker": "1.3.0",
|
|
78
83
|
"karma-spec-reporter": "0.0.36",
|
|
79
84
|
"karma-webpack": "4.0.2",
|
|
80
|
-
"lerna": "
|
|
85
|
+
"lerna": "6.6.2",
|
|
81
86
|
"memfs": "3.5.3",
|
|
82
87
|
"mocha": "10.2.0",
|
|
83
88
|
"nyc": "15.1.0",
|
|
@@ -90,5 +95,5 @@
|
|
|
90
95
|
},
|
|
91
96
|
"homepage": "https://github.com/open-telemetry/opentelemetry-js/tree/main/api",
|
|
92
97
|
"sideEffects": false,
|
|
93
|
-
"gitHead": "
|
|
98
|
+
"gitHead": "73b446688f10fd8dc4cf403a085f0a39070df7b4"
|
|
94
99
|
}
|