@opentelemetry/api 0.8.3 → 0.10.2
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 -0
- package/build/src/api/context.d.ts +0 -15
- package/build/src/api/context.js +28 -24
- package/build/src/api/context.js.map +1 -0
- package/build/src/api/global-utils.d.ts +0 -15
- package/build/src/api/global-utils.js +7 -4
- package/build/src/api/global-utils.js.map +1 -0
- package/build/src/api/metrics.d.ts +0 -15
- package/build/src/api/metrics.js +22 -19
- package/build/src/api/metrics.js.map +1 -0
- package/build/src/api/propagation.d.ts +0 -15
- package/build/src/api/propagation.js +32 -25
- package/build/src/api/propagation.js.map +1 -0
- package/build/src/api/trace.d.ts +0 -15
- package/build/src/api/trace.js +22 -19
- package/build/src/api/trace.js.map +1 -0
- package/build/src/common/Logger.d.ts +0 -15
- package/build/src/common/Logger.js +2 -2
- package/build/src/common/Logger.js.map +1 -0
- package/build/src/common/Time.d.ts +0 -16
- package/build/src/common/Time.js +0 -15
- package/build/src/common/Time.js.map +1 -0
- package/build/src/context/propagation/HttpTextPropagator.d.ts +0 -15
- package/build/src/context/propagation/HttpTextPropagator.js +2 -2
- package/build/src/context/propagation/HttpTextPropagator.js.map +1 -0
- package/build/src/context/propagation/NoopHttpTextPropagator.d.ts +0 -15
- package/build/src/context/propagation/NoopHttpTextPropagator.js +11 -7
- package/build/src/context/propagation/NoopHttpTextPropagator.js.map +1 -0
- package/build/src/context/propagation/getter.d.ts +0 -15
- package/build/src/context/propagation/getter.js +3 -2
- package/build/src/context/propagation/getter.js.map +1 -0
- package/build/src/context/propagation/setter.d.ts +0 -15
- package/build/src/context/propagation/setter.js +3 -2
- package/build/src/context/propagation/setter.js.map +1 -0
- package/build/src/correlation_context/CorrelationContext.d.ts +0 -15
- package/build/src/correlation_context/CorrelationContext.js +2 -2
- package/build/src/correlation_context/CorrelationContext.js.map +1 -0
- package/build/src/correlation_context/EntryValue.d.ts +0 -19
- package/build/src/correlation_context/EntryValue.js +1 -15
- package/build/src/correlation_context/EntryValue.js.map +1 -0
- package/build/src/index.d.ts +3 -16
- package/build/src/index.js +55 -23
- package/build/src/index.js.map +1 -0
- package/build/src/metrics/BatchObserverResult.d.ts +15 -0
- package/build/src/metrics/{MetricObservable.js → BatchObserverResult.js} +3 -3
- package/build/src/metrics/BatchObserverResult.js.map +1 -0
- package/build/src/metrics/BoundInstrument.d.ts +10 -21
- package/build/src/metrics/BoundInstrument.js +2 -2
- package/build/src/metrics/BoundInstrument.js.map +1 -0
- package/build/src/metrics/Meter.d.ts +35 -21
- package/build/src/metrics/Meter.js +2 -2
- package/build/src/metrics/Meter.js.map +1 -0
- package/build/src/metrics/MeterProvider.d.ts +0 -15
- package/build/src/metrics/MeterProvider.js +2 -2
- package/build/src/metrics/MeterProvider.js.map +1 -0
- package/build/src/metrics/Metric.d.ts +33 -33
- package/build/src/metrics/Metric.js +3 -2
- package/build/src/metrics/Metric.js.map +1 -0
- package/build/src/metrics/NoopMeter.d.ts +39 -28
- package/build/src/metrics/NoopMeter.js +126 -47
- package/build/src/metrics/NoopMeter.js.map +1 -0
- package/build/src/metrics/NoopMeterProvider.d.ts +0 -15
- package/build/src/metrics/NoopMeterProvider.js +11 -7
- package/build/src/metrics/NoopMeterProvider.js.map +1 -0
- package/build/src/metrics/Observation.d.ts +9 -0
- package/build/src/metrics/Observation.js +18 -0
- package/build/src/metrics/Observation.js.map +1 -0
- package/build/src/metrics/ObserverResult.d.ts +2 -18
- package/build/src/metrics/ObserverResult.js +2 -2
- package/build/src/metrics/ObserverResult.js.map +1 -0
- package/build/src/platform/browser/globalThis.d.ts +0 -15
- package/build/src/platform/browser/globalThis.js +3 -2
- package/build/src/platform/browser/globalThis.js.map +1 -0
- package/build/src/platform/browser/index.d.ts +0 -15
- package/build/src/platform/browser/index.js +13 -6
- package/build/src/platform/browser/index.js.map +1 -0
- package/build/src/platform/index.d.ts +0 -15
- package/build/src/platform/index.js +13 -6
- package/build/src/platform/index.js.map +1 -0
- package/build/src/platform/node/globalThis.d.ts +0 -15
- package/build/src/platform/node/globalThis.js +3 -2
- package/build/src/platform/node/globalThis.js.map +1 -0
- package/build/src/platform/node/index.d.ts +0 -15
- package/build/src/platform/node/index.js +13 -6
- package/build/src/platform/node/index.js.map +1 -0
- package/build/src/trace/Event.d.ts +0 -15
- package/build/src/trace/Event.js +2 -2
- package/build/src/trace/Event.js.map +1 -0
- package/build/src/trace/NoopSpan.d.ts +0 -15
- package/build/src/trace/NoopSpan.js +25 -22
- package/build/src/trace/NoopSpan.js.map +1 -0
- package/build/src/trace/NoopTracer.d.ts +0 -15
- package/build/src/trace/NoopTracer.js +17 -13
- package/build/src/trace/NoopTracer.js.map +1 -0
- package/build/src/trace/NoopTracerProvider.d.ts +0 -15
- package/build/src/trace/NoopTracerProvider.js +11 -7
- package/build/src/trace/NoopTracerProvider.js.map +1 -0
- package/build/src/trace/Sampler.d.ts +15 -19
- package/build/src/trace/Sampler.js +2 -2
- package/build/src/trace/Sampler.js.map +1 -0
- package/build/src/trace/SamplingResult.d.ts +39 -0
- package/build/src/trace/SamplingResult.js +41 -0
- package/build/src/trace/SamplingResult.js.map +1 -0
- package/build/src/trace/SpanOptions.d.ts +0 -15
- package/build/src/trace/SpanOptions.js +2 -2
- package/build/src/trace/SpanOptions.js.map +1 -0
- package/build/src/trace/TimedEvent.d.ts +0 -15
- package/build/src/trace/TimedEvent.js +2 -2
- package/build/src/trace/TimedEvent.js.map +1 -0
- package/build/src/trace/attributes.d.ts +0 -19
- package/build/src/trace/attributes.js +0 -15
- package/build/src/trace/attributes.js.map +1 -0
- package/build/src/trace/instrumentation/Plugin.d.ts +0 -15
- package/build/src/trace/instrumentation/Plugin.js +2 -2
- package/build/src/trace/instrumentation/Plugin.js.map +1 -0
- package/build/src/trace/link.d.ts +0 -15
- package/build/src/trace/link.js +2 -2
- package/build/src/trace/link.js.map +1 -0
- package/build/src/trace/link_context.d.ts +0 -15
- package/build/src/trace/link_context.js +2 -2
- package/build/src/trace/link_context.js.map +1 -0
- package/build/src/trace/span.d.ts +0 -15
- package/build/src/trace/span.js +2 -2
- package/build/src/trace/span.js.map +1 -0
- package/build/src/trace/span_context.d.ts +0 -15
- package/build/src/trace/span_context.js +2 -2
- package/build/src/trace/span_context.js.map +1 -0
- package/build/src/trace/span_kind.d.ts +0 -19
- package/build/src/trace/span_kind.js +4 -7
- package/build/src/trace/span_kind.js.map +1 -0
- package/build/src/trace/status.d.ts +0 -19
- package/build/src/trace/status.js +1 -15
- package/build/src/trace/status.js.map +1 -0
- package/build/src/trace/trace_flags.d.ts +0 -20
- package/build/src/trace/trace_flags.js +4 -8
- package/build/src/trace/trace_flags.js.map +1 -0
- package/build/src/trace/trace_state.d.ts +0 -20
- package/build/src/trace/trace_state.js +0 -15
- package/build/src/trace/trace_state.js.map +1 -0
- package/build/src/trace/tracer.d.ts +1 -16
- package/build/src/trace/tracer.js +2 -2
- package/build/src/trace/tracer.js.map +1 -0
- package/build/src/trace/tracer_provider.d.ts +0 -15
- package/build/src/trace/tracer_provider.js +2 -2
- package/build/src/trace/tracer_provider.js.map +1 -0
- package/build/src/version.d.ts +1 -1
- package/build/src/version.js +3 -2
- package/build/src/version.js.map +1 -0
- package/package.json +24 -22
- package/build/src/metrics/MetricObservable.d.ts +0 -36
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SpanOptions.js","sourceRoot":"","sources":["../../../src/trace/SpanOptions.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG"}
|
|
@@ -1,18 +1,3 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Copyright 2019, 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
1
|
import { Event } from './Event';
|
|
17
2
|
import { HrTime } from '../common/Time';
|
|
18
3
|
/**
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TimedEvent.js","sourceRoot":"","sources":["../../../src/trace/TimedEvent.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG"}
|
|
@@ -1,22 +1,3 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Copyright 2019, OpenTelemetry Authors
|
|
3
|
-
*
|
|
4
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
-
* you may not use this file except in compliance with the License.
|
|
6
|
-
* You may obtain a copy of the License at
|
|
7
|
-
*
|
|
8
|
-
* https://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
-
*
|
|
10
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
-
* See the License for the specific language governing permissions and
|
|
14
|
-
* limitations under the License.
|
|
15
|
-
*/
|
|
16
|
-
/**
|
|
17
|
-
* Defines a attributes interface.
|
|
18
|
-
* These attributes provides additional data about the {@link Span}.
|
|
19
|
-
*/
|
|
20
1
|
export interface Attributes {
|
|
21
2
|
[attributeKey: string]: unknown;
|
|
22
3
|
}
|
|
@@ -1,18 +1,3 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
/*!
|
|
3
|
-
* Copyright 2019, 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.
|
|
16
|
-
*/
|
|
17
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
3
|
//# sourceMappingURL=attributes.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"attributes.js","sourceRoot":"","sources":["../../../src/trace/attributes.ts"],"names":[],"mappings":""}
|
|
@@ -1,18 +1,3 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Copyright 2019, 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
1
|
import { Logger } from '../../common/Logger';
|
|
17
2
|
import { TracerProvider } from '../tracer_provider';
|
|
18
3
|
/** Interface Plugin to apply patch. */
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Plugin.js","sourceRoot":"","sources":["../../../../src/trace/instrumentation/Plugin.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG"}
|
|
@@ -1,18 +1,3 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Copyright 2019, 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
1
|
import { Attributes } from './attributes';
|
|
17
2
|
import { LinkContext } from './link_context';
|
|
18
3
|
/**
|
package/build/src/trace/link.js
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"link.js","sourceRoot":"","sources":["../../../src/trace/link.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG"}
|
|
@@ -1,18 +1,3 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Copyright 2020, 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
1
|
import { SpanContext } from './span_context';
|
|
17
2
|
/**
|
|
18
3
|
* A pointer to another span.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"link_context.js","sourceRoot":"","sources":["../../../src/trace/link_context.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG"}
|
|
@@ -1,18 +1,3 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Copyright 2019, 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
1
|
import { Attributes } from './attributes';
|
|
17
2
|
import { SpanContext } from './span_context';
|
|
18
3
|
import { Status } from './status';
|
package/build/src/trace/span.js
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"span.js","sourceRoot":"","sources":["../../../src/trace/span.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG"}
|
|
@@ -1,18 +1,3 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Copyright 2019, 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
1
|
import { TraceFlags } from './trace_flags';
|
|
17
2
|
import { TraceState } from './trace_state';
|
|
18
3
|
/**
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"span_context.js","sourceRoot":"","sources":["../../../src/trace/span_context.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG"}
|
|
@@ -1,22 +1,3 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Copyright 2019, OpenTelemetry Authors
|
|
3
|
-
*
|
|
4
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
-
* you may not use this file except in compliance with the License.
|
|
6
|
-
* You may obtain a copy of the License at
|
|
7
|
-
*
|
|
8
|
-
* https://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
-
*
|
|
10
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
-
* See the License for the specific language governing permissions and
|
|
14
|
-
* limitations under the License.
|
|
15
|
-
*/
|
|
16
|
-
/**
|
|
17
|
-
* Type of span. Can be used to specify additional relationships between spans
|
|
18
|
-
* in addition to a parent/child relationship.
|
|
19
|
-
*/
|
|
20
1
|
export declare enum SpanKind {
|
|
21
2
|
/** Default value. Indicates that the span is used internally. */
|
|
22
3
|
INTERNAL = 0,
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SpanKind = void 0;
|
|
4
|
+
/*
|
|
5
|
+
* Copyright The OpenTelemetry Authors
|
|
4
6
|
*
|
|
5
7
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
8
|
* you may not use this file except in compliance with the License.
|
|
@@ -14,11 +16,6 @@
|
|
|
14
16
|
* See the License for the specific language governing permissions and
|
|
15
17
|
* limitations under the License.
|
|
16
18
|
*/
|
|
17
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
-
/**
|
|
19
|
-
* Type of span. Can be used to specify additional relationships between spans
|
|
20
|
-
* in addition to a parent/child relationship.
|
|
21
|
-
*/
|
|
22
19
|
var SpanKind;
|
|
23
20
|
(function (SpanKind) {
|
|
24
21
|
/** Default value. Indicates that the span is used internally. */
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"span_kind.js","sourceRoot":"","sources":["../../../src/trace/span_kind.ts"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;GAcG;AACH,IAAY,QA6BX;AA7BD,WAAY,QAAQ;IAClB,iEAAiE;IACjE,+CAAY,CAAA;IAEZ;;;OAGG;IACH,2CAAU,CAAA;IAEV;;;OAGG;IACH,2CAAU,CAAA;IAEV;;;;OAIG;IACH,+CAAY,CAAA;IAEZ;;;;OAIG;IACH,+CAAY,CAAA;AACd,CAAC,EA7BW,QAAQ,GAAR,gBAAQ,KAAR,gBAAQ,QA6BnB"}
|
|
@@ -1,22 +1,3 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Copyright 2019, OpenTelemetry Authors
|
|
3
|
-
*
|
|
4
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
-
* you may not use this file except in compliance with the License.
|
|
6
|
-
* You may obtain a copy of the License at
|
|
7
|
-
*
|
|
8
|
-
* https://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
-
*
|
|
10
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
-
* See the License for the specific language governing permissions and
|
|
14
|
-
* limitations under the License.
|
|
15
|
-
*/
|
|
16
|
-
/**
|
|
17
|
-
* The status of a Span by providing a standard CanonicalCode in conjunction
|
|
18
|
-
* with an optional descriptive message.
|
|
19
|
-
*/
|
|
20
1
|
export interface Status {
|
|
21
2
|
/** The canonical code of this message. */
|
|
22
3
|
code: CanonicalCode;
|
|
@@ -1,20 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
/*!
|
|
3
|
-
* Copyright 2019, 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.
|
|
16
|
-
*/
|
|
17
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CanonicalCode = void 0;
|
|
18
4
|
/**
|
|
19
5
|
* An enumeration of canonical status codes.
|
|
20
6
|
*/
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"status.js","sourceRoot":"","sources":["../../../src/trace/status.ts"],"names":[],"mappings":";;;AAsBA;;GAEG;AACH,IAAY,aAoIX;AApID,WAAY,aAAa;IACvB;;OAEG;IACH,6CAAM,CAAA;IACN;;OAEG;IACH,2DAAa,CAAA;IACb;;;;;;OAMG;IACH,uDAAW,CAAA;IACX;;;;;OAKG;IACH,yEAAoB,CAAA;IACpB;;;;;;OAMG;IACH,2EAAqB,CAAA;IACrB;;OAEG;IACH,2DAAa,CAAA;IACb;;;OAGG;IACH,qEAAkB,CAAA;IAClB;;;;;;;OAOG;IACH,2EAAqB,CAAA;IACrB;;;OAGG;IACH,6EAAsB,CAAA;IACtB;;;;;;;;;;;;;;;;;;;;;OAqBG;IACH,+EAAuB,CAAA;IACvB;;;;;;OAMG;IACH,wDAAY,CAAA;IACZ;;;;;;;;;;;;;;;;OAgBG;IACH,kEAAiB,CAAA;IACjB;;OAEG;IACH,oEAAkB,CAAA;IAClB;;;;OAIG;IACH,0DAAa,CAAA;IACb;;;;;;;OAOG;IACH,gEAAgB,CAAA;IAChB;;OAEG;IACH,4DAAc,CAAA;IACd;;;OAGG;IACH,wEAAoB,CAAA;AACtB,CAAC,EApIW,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAoIxB"}
|
|
@@ -1,23 +1,3 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Copyright 2019, OpenTelemetry Authors
|
|
3
|
-
*
|
|
4
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
-
* you may not use this file except in compliance with the License.
|
|
6
|
-
* You may obtain a copy of the License at
|
|
7
|
-
*
|
|
8
|
-
* https://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
-
*
|
|
10
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
-
* See the License for the specific language governing permissions and
|
|
14
|
-
* limitations under the License.
|
|
15
|
-
*/
|
|
16
|
-
/**
|
|
17
|
-
* An enumeration that represents global trace flags. These flags are
|
|
18
|
-
* propagated to all child {@link Span}. These determine features such as
|
|
19
|
-
* whether a Span should be traced. It is implemented as a bitmask.
|
|
20
|
-
*/
|
|
21
1
|
export declare enum TraceFlags {
|
|
22
2
|
/** Represents no flag set. */
|
|
23
3
|
NONE = 0,
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TraceFlags = void 0;
|
|
4
|
+
/*
|
|
5
|
+
* Copyright The OpenTelemetry Authors
|
|
4
6
|
*
|
|
5
7
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
8
|
* you may not use this file except in compliance with the License.
|
|
@@ -14,12 +16,6 @@
|
|
|
14
16
|
* See the License for the specific language governing permissions and
|
|
15
17
|
* limitations under the License.
|
|
16
18
|
*/
|
|
17
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
-
/**
|
|
19
|
-
* An enumeration that represents global trace flags. These flags are
|
|
20
|
-
* propagated to all child {@link Span}. These determine features such as
|
|
21
|
-
* whether a Span should be traced. It is implemented as a bitmask.
|
|
22
|
-
*/
|
|
23
19
|
var TraceFlags;
|
|
24
20
|
(function (TraceFlags) {
|
|
25
21
|
/** Represents no flag set. */
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"trace_flags.js","sourceRoot":"","sources":["../../../src/trace/trace_flags.ts"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;GAcG;AACH,IAAY,UAKX;AALD,WAAY,UAAU;IACpB,8BAA8B;IAC9B,2CAAU,CAAA;IACV,gEAAgE;IAChE,iDAAkB,CAAA;AACpB,CAAC,EALW,UAAU,GAAV,kBAAU,KAAV,kBAAU,QAKrB"}
|
|
@@ -1,23 +1,3 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Copyright 2019, OpenTelemetry Authors
|
|
3
|
-
*
|
|
4
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
-
* you may not use this file except in compliance with the License.
|
|
6
|
-
* You may obtain a copy of the License at
|
|
7
|
-
*
|
|
8
|
-
* https://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
-
*
|
|
10
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
-
* See the License for the specific language governing permissions and
|
|
14
|
-
* limitations under the License.
|
|
15
|
-
*/
|
|
16
|
-
/**
|
|
17
|
-
* Tracestate carries system-specific configuration data, represented as a list
|
|
18
|
-
* of key-value pairs. TraceState allows multiple tracing systems to
|
|
19
|
-
* participate in the same trace.
|
|
20
|
-
*/
|
|
21
1
|
export interface TraceState {
|
|
22
2
|
/**
|
|
23
3
|
* Adds or updates the TraceState that has the given `key` if it is
|
|
@@ -1,18 +1,3 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
/*!
|
|
3
|
-
* Copyright 2019, 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.
|
|
16
|
-
*/
|
|
17
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
3
|
//# sourceMappingURL=trace_state.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"trace_state.js","sourceRoot":"","sources":["../../../src/trace/trace_state.ts"],"names":[],"mappings":""}
|
|
@@ -1,18 +1,3 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Copyright 2019, 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
1
|
import { Context } from '@opentelemetry/context-base';
|
|
17
2
|
import { Span } from './span';
|
|
18
3
|
import { SpanOptions } from './SpanOptions';
|
|
@@ -27,7 +12,7 @@ export interface Tracer {
|
|
|
27
12
|
/**
|
|
28
13
|
* Returns the current Span from the current context if available.
|
|
29
14
|
*
|
|
30
|
-
* If there is no Span associated with the current context, `
|
|
15
|
+
* If there is no Span associated with the current context, `undefined` is
|
|
31
16
|
* returned.
|
|
32
17
|
*
|
|
33
18
|
* To install a {@link Span} to the current Context use
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tracer.js","sourceRoot":"","sources":["../../../src/trace/tracer.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG"}
|
|
@@ -1,18 +1,3 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Copyright 2019, 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
1
|
import { Tracer } from './tracer';
|
|
17
2
|
/**
|
|
18
3
|
* A registry for creating named {@link Tracer}s.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tracer_provider.js","sourceRoot":"","sources":["../../../src/trace/tracer_provider.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG"}
|
package/build/src/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.
|
|
1
|
+
export declare const VERSION = "0.10.2";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/build/src/version.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/*
|
|
3
|
-
* Copyright
|
|
3
|
+
* Copyright The OpenTelemetry Authors
|
|
4
4
|
*
|
|
5
5
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
6
|
* you may not use this file except in compliance with the License.
|
|
@@ -15,6 +15,7 @@
|
|
|
15
15
|
* limitations under the License.
|
|
16
16
|
*/
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
exports.VERSION = void 0;
|
|
18
19
|
// this is autogenerated file, see scripts/version-update.js
|
|
19
|
-
exports.VERSION = '0.
|
|
20
|
+
exports.VERSION = '0.10.2';
|
|
20
21
|
//# sourceMappingURL=version.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"version.js","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAEH,4DAA4D;AAC/C,QAAA,OAAO,GAAG,QAAQ,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opentelemetry/api",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.10.2",
|
|
4
4
|
"description": "Public API for OpenTelemetry",
|
|
5
5
|
"main": "build/src/index.js",
|
|
6
6
|
"types": "build/src/index.d.ts",
|
|
@@ -42,6 +42,7 @@
|
|
|
42
42
|
},
|
|
43
43
|
"files": [
|
|
44
44
|
"build/src/**/*.js",
|
|
45
|
+
"build/src/**/*.js.map",
|
|
45
46
|
"build/src/**/*.d.ts",
|
|
46
47
|
"doc",
|
|
47
48
|
"LICENSE",
|
|
@@ -51,28 +52,29 @@
|
|
|
51
52
|
"access": "public"
|
|
52
53
|
},
|
|
53
54
|
"dependencies": {
|
|
54
|
-
"@opentelemetry/context-base": "^0.
|
|
55
|
+
"@opentelemetry/context-base": "^0.10.2"
|
|
55
56
|
},
|
|
56
57
|
"devDependencies": {
|
|
57
|
-
"@types/mocha": "
|
|
58
|
-
"@types/node": "
|
|
58
|
+
"@types/mocha": "8.0.0",
|
|
59
|
+
"@types/node": "14.0.27",
|
|
59
60
|
"@types/webpack-env": "1.15.2",
|
|
60
|
-
"codecov": "
|
|
61
|
-
"gts": "
|
|
62
|
-
"istanbul-instrumenter-loader": "
|
|
63
|
-
"karma": "
|
|
64
|
-
"karma-chrome-launcher": "
|
|
65
|
-
"karma-coverage-istanbul-reporter": "
|
|
66
|
-
"karma-mocha": "
|
|
67
|
-
"karma-spec-reporter": "
|
|
68
|
-
"karma-webpack": "
|
|
69
|
-
"linkinator": "
|
|
70
|
-
"mocha": "
|
|
71
|
-
"nyc": "
|
|
72
|
-
"ts-loader": "
|
|
73
|
-
"ts-mocha": "
|
|
74
|
-
"typedoc": "
|
|
75
|
-
"typescript": "3.7
|
|
76
|
-
"webpack": "
|
|
77
|
-
}
|
|
61
|
+
"codecov": "3.7.2",
|
|
62
|
+
"gts": "2.0.2",
|
|
63
|
+
"istanbul-instrumenter-loader": "3.0.1",
|
|
64
|
+
"karma": "5.1.1",
|
|
65
|
+
"karma-chrome-launcher": "3.1.0",
|
|
66
|
+
"karma-coverage-istanbul-reporter": "3.0.3",
|
|
67
|
+
"karma-mocha": "2.0.1",
|
|
68
|
+
"karma-spec-reporter": "0.0.32",
|
|
69
|
+
"karma-webpack": "4.0.2",
|
|
70
|
+
"linkinator": "2.1.1",
|
|
71
|
+
"mocha": "7.2.0",
|
|
72
|
+
"nyc": "15.1.0",
|
|
73
|
+
"ts-loader": "8.0.1",
|
|
74
|
+
"ts-mocha": "7.0.0",
|
|
75
|
+
"typedoc": "0.17.8",
|
|
76
|
+
"typescript": "3.9.7",
|
|
77
|
+
"webpack": "4.44.1"
|
|
78
|
+
},
|
|
79
|
+
"gitHead": "b247e69034a7888a842fe75e0a5ff06f8bea44a8"
|
|
78
80
|
}
|