@opentelemetry/api 0.21.0 → 1.0.0-rc.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/CHANGELOG.md +0 -73
- package/README.md +5 -46
- package/build/src/api/context.d.ts +4 -6
- package/build/src/api/context.js +14 -12
- package/build/src/api/context.js.map +1 -1
- package/build/src/api/diag.d.ts +3 -7
- package/build/src/api/diag.js +3 -15
- package/build/src/api/diag.js.map +1 -1
- package/build/src/api/propagation.d.ts +2 -10
- package/build/src/api/propagation.js +5 -13
- package/build/src/api/propagation.js.map +1 -1
- package/build/src/api/trace.d.ts +3 -12
- package/build/src/api/trace.js +4 -12
- package/build/src/api/trace.js.map +1 -1
- package/build/{esm/baggage/types.d.ts → src/baggage/Baggage.d.ts} +2 -20
- package/build/{esm/baggage/types.js → src/baggage/Baggage.js} +3 -2
- package/build/src/baggage/Baggage.js.map +1 -0
- package/build/src/baggage/Entry.d.ts +20 -0
- package/build/src/baggage/{types.js → Entry.js} +1 -1
- package/build/src/baggage/Entry.js.map +1 -0
- package/build/src/baggage/{utils.d.ts → index.d.ts} +5 -2
- package/build/src/baggage/{utils.js → index.js} +16 -5
- package/build/src/baggage/index.js.map +1 -0
- package/build/{esm/baggage/internal/baggage-impl.d.ts → src/baggage/internal/baggage.d.ts} +3 -2
- package/build/src/baggage/internal/{baggage-impl.js → baggage.js} +1 -1
- package/build/src/baggage/internal/baggage.js.map +1 -0
- package/build/src/context/NoopContextManager.d.ts +1 -1
- package/build/src/context/NoopContextManager.js +8 -6
- package/build/src/context/NoopContextManager.js.map +1 -1
- package/build/src/context/context.d.ts +59 -0
- package/build/src/context/context.js +101 -7
- package/build/src/context/context.js.map +1 -1
- package/build/src/context/types.d.ts +2 -2
- package/build/src/diag/types.d.ts +0 -6
- package/build/src/index.d.ts +8 -2
- package/build/src/index.js +9 -4
- package/build/src/index.js.map +1 -1
- package/build/src/internal/global-utils.d.ts +1 -1
- package/build/src/internal/global-utils.js +5 -7
- package/build/src/internal/global-utils.js.map +1 -1
- package/build/src/propagation/NoopTextMapPropagator.d.ts +1 -0
- package/build/src/propagation/NoopTextMapPropagator.js +2 -1
- package/build/src/propagation/NoopTextMapPropagator.js.map +1 -1
- package/build/src/trace/Event.d.ts +9 -0
- package/build/{esm/diag/index.js → src/trace/Event.js} +3 -3
- package/build/src/trace/Event.js.map +1 -0
- package/build/{esm/trace/NonRecordingSpan.d.ts → src/trace/NoopSpan.d.ts} +4 -4
- package/build/src/trace/{NonRecordingSpan.js → NoopSpan.js} +17 -17
- package/build/src/trace/NoopSpan.js.map +1 -0
- package/build/src/trace/NoopTracer.d.ts +1 -3
- package/build/src/trace/NoopTracer.js +8 -32
- package/build/src/trace/NoopTracer.js.map +1 -1
- package/build/src/trace/NoopTracerProvider.d.ts +1 -0
- package/build/src/trace/NoopTracerProvider.js +3 -2
- package/build/src/trace/NoopTracerProvider.js.map +1 -1
- package/build/src/trace/ProxyTracer.d.ts +0 -1
- package/build/src/trace/ProxyTracer.js +1 -5
- package/build/src/trace/ProxyTracer.js.map +1 -1
- package/build/src/trace/ProxyTracerProvider.js +1 -2
- package/build/src/trace/ProxyTracerProvider.js.map +1 -1
- package/build/src/trace/TimedEvent.d.ts +10 -0
- package/build/{esm/context/types.js → src/trace/TimedEvent.js} +3 -2
- package/build/src/trace/TimedEvent.js.map +1 -0
- package/build/src/trace/link.d.ts +3 -3
- package/build/src/trace/link_context.d.ts +6 -0
- package/build/src/trace/link_context.js +18 -0
- package/build/src/trace/link_context.js.map +1 -0
- package/build/src/trace/span.d.ts +1 -1
- package/build/src/trace/spancontext-utils.d.ts +0 -8
- package/build/src/trace/spancontext-utils.js +1 -27
- package/build/src/trace/spancontext-utils.js.map +1 -1
- package/build/src/trace/tracer.d.ts +0 -46
- 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 +15 -20
- package/build/esm/api/context.d.ts +0 -41
- package/build/esm/api/context.js +0 -89
- package/build/esm/api/context.js.map +0 -1
- package/build/esm/api/diag.d.ts +0 -38
- package/build/esm/api/diag.js +0 -89
- package/build/esm/api/diag.js.map +0 -1
- package/build/esm/api/propagation.d.ts +0 -48
- package/build/esm/api/propagation.js +0 -87
- package/build/esm/api/propagation.js.map +0 -1
- package/build/esm/api/trace.d.ts +0 -39
- package/build/esm/api/trace.js +0 -72
- package/build/esm/api/trace.js.map +0 -1
- package/build/esm/baggage/context-helpers.d.ts +0 -23
- package/build/esm/baggage/context-helpers.js +0 -47
- package/build/esm/baggage/context-helpers.js.map +0 -1
- package/build/esm/baggage/internal/baggage-impl.js +0 -61
- package/build/esm/baggage/internal/baggage-impl.js.map +0 -1
- package/build/esm/baggage/internal/symbol.d.ts +0 -5
- package/build/esm/baggage/internal/symbol.js +0 -20
- package/build/esm/baggage/internal/symbol.js.map +0 -1
- package/build/esm/baggage/types.js.map +0 -1
- package/build/esm/baggage/utils.d.ts +0 -15
- package/build/esm/baggage/utils.js +0 -46
- package/build/esm/baggage/utils.js.map +0 -1
- package/build/esm/common/Exception.d.ts +0 -26
- package/build/esm/common/Exception.js +0 -17
- package/build/esm/common/Exception.js.map +0 -1
- package/build/esm/common/Time.d.ts +0 -8
- package/build/esm/common/Time.js +0 -2
- package/build/esm/common/Time.js.map +0 -1
- package/build/esm/context/NoopContextManager.d.ts +0 -9
- package/build/esm/context/NoopContextManager.js +0 -47
- package/build/esm/context/NoopContextManager.js.map +0 -1
- package/build/esm/context/context.d.ts +0 -6
- package/build/esm/context/context.js +0 -52
- package/build/esm/context/context.js.map +0 -1
- package/build/esm/context/types.d.ts +0 -52
- package/build/esm/context/types.js.map +0 -1
- package/build/esm/diag/ComponentLogger.d.ts +0 -20
- package/build/esm/diag/ComponentLogger.js +0 -77
- package/build/esm/diag/ComponentLogger.js.map +0 -1
- package/build/esm/diag/consoleLogger.d.ts +0 -38
- package/build/esm/diag/consoleLogger.js +0 -54
- package/build/esm/diag/consoleLogger.js.map +0 -1
- package/build/esm/diag/index.d.ts +0 -3
- package/build/esm/diag/index.js.map +0 -1
- package/build/esm/diag/internal/logLevelLogger.d.ts +0 -3
- package/build/esm/diag/internal/logLevelLogger.js +0 -41
- package/build/esm/diag/internal/logLevelLogger.js.map +0 -1
- package/build/esm/diag/internal/noopLogger.d.ts +0 -8
- package/build/esm/diag/internal/noopLogger.js +0 -31
- package/build/esm/diag/internal/noopLogger.js.map +0 -1
- package/build/esm/diag/types.d.ts +0 -70
- package/build/esm/diag/types.js +0 -41
- package/build/esm/diag/types.js.map +0 -1
- package/build/esm/index.d.ts +0 -53
- package/build/esm/index.js +0 -63
- package/build/esm/index.js.map +0 -1
- package/build/esm/internal/global-utils.d.ts +0 -16
- package/build/esm/internal/global-utils.js +0 -60
- package/build/esm/internal/global-utils.js.map +0 -1
- package/build/esm/internal/semver.d.ts +0 -34
- package/build/esm/internal/semver.js +0 -106
- package/build/esm/internal/semver.js.map +0 -1
- package/build/esm/platform/browser/globalThis.d.ts +0 -3
- package/build/esm/platform/browser/globalThis.js +0 -19
- 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/esm/propagation/NoopTextMapPropagator.d.ts +0 -13
- package/build/esm/propagation/NoopTextMapPropagator.js +0 -34
- package/build/esm/propagation/NoopTextMapPropagator.js.map +0 -1
- package/build/esm/propagation/TextMapPropagator.d.ts +0 -84
- package/build/esm/propagation/TextMapPropagator.js +0 -38
- package/build/esm/propagation/TextMapPropagator.js.map +0 -1
- package/build/esm/trace/NonRecordingSpan.js +0 -62
- package/build/esm/trace/NonRecordingSpan.js.map +0 -1
- package/build/esm/trace/NoopTracer.d.ts +0 -14
- package/build/esm/trace/NoopTracer.js +0 -74
- package/build/esm/trace/NoopTracer.js.map +0 -1
- package/build/esm/trace/NoopTracerProvider.d.ts +0 -12
- package/build/esm/trace/NoopTracerProvider.js +0 -32
- package/build/esm/trace/NoopTracerProvider.js.map +0 -1
- package/build/esm/trace/ProxyTracer.d.ts +0 -23
- package/build/esm/trace/ProxyTracer.js +0 -51
- package/build/esm/trace/ProxyTracer.js.map +0 -1
- package/build/esm/trace/ProxyTracerProvider.d.ts +0 -24
- package/build/esm/trace/ProxyTracerProvider.js +0 -54
- package/build/esm/trace/ProxyTracerProvider.js.map +0 -1
- package/build/esm/trace/Sampler.d.ts +0 -30
- package/build/esm/trace/Sampler.js +0 -17
- package/build/esm/trace/Sampler.js.map +0 -1
- package/build/esm/trace/SamplingResult.d.ts +0 -39
- package/build/esm/trace/SamplingResult.js +0 -38
- package/build/esm/trace/SamplingResult.js.map +0 -1
- package/build/esm/trace/SpanOptions.d.ts +0 -23
- package/build/esm/trace/SpanOptions.js +0 -17
- package/build/esm/trace/SpanOptions.js.map +0 -1
- package/build/esm/trace/attributes.d.ts +0 -10
- package/build/esm/trace/attributes.js +0 -17
- package/build/esm/trace/attributes.js.map +0 -1
- package/build/esm/trace/context-utils.d.ts +0 -37
- package/build/esm/trace/context-utils.js +0 -66
- package/build/esm/trace/context-utils.js.map +0 -1
- package/build/esm/trace/link.d.ts +0 -24
- package/build/esm/trace/link.js +0 -17
- package/build/esm/trace/link.js.map +0 -1
- package/build/esm/trace/span.d.ts +0 -101
- package/build/esm/trace/span.js +0 -17
- package/build/esm/trace/span.js.map +0 -1
- package/build/esm/trace/span_context.d.ts +0 -53
- package/build/esm/trace/span_context.js +0 -17
- package/build/esm/trace/span_context.js.map +0 -1
- package/build/esm/trace/span_kind.d.ts +0 -27
- package/build/esm/trace/span_kind.js +0 -43
- package/build/esm/trace/span_kind.js.map +0 -1
- package/build/esm/trace/spancontext-utils.d.ts +0 -20
- package/build/esm/trace/spancontext-utils.js +0 -49
- package/build/esm/trace/spancontext-utils.js.map +0 -1
- package/build/esm/trace/status.d.ts +0 -25
- package/build/esm/trace/status.js +0 -20
- package/build/esm/trace/status.js.map +0 -1
- package/build/esm/trace/trace_flags.d.ts +0 -7
- package/build/esm/trace/trace_flags.js +0 -23
- package/build/esm/trace/trace_flags.js.map +0 -1
- package/build/esm/trace/trace_state.d.ts +0 -38
- package/build/esm/trace/trace_state.js +0 -17
- package/build/esm/trace/trace_state.js.map +0 -1
- package/build/esm/trace/tracer.d.ts +0 -70
- package/build/esm/trace/tracer.js +0 -17
- package/build/esm/trace/tracer.js.map +0 -1
- package/build/esm/trace/tracer_provider.d.ts +0 -19
- package/build/esm/trace/tracer_provider.js +0 -17
- package/build/esm/trace/tracer_provider.js.map +0 -1
- package/build/esm/version.d.ts +0 -2
- package/build/esm/version.js +0 -18
- package/build/esm/version.js.map +0 -1
- package/build/src/baggage/context-helpers.d.ts +0 -23
- package/build/src/baggage/context-helpers.js +0 -53
- package/build/src/baggage/context-helpers.js.map +0 -1
- package/build/src/baggage/internal/baggage-impl.d.ts +0 -12
- package/build/src/baggage/internal/baggage-impl.js.map +0 -1
- package/build/src/baggage/types.d.ts +0 -60
- package/build/src/baggage/types.js.map +0 -1
- package/build/src/baggage/utils.js.map +0 -1
- package/build/src/diag/ComponentLogger.d.ts +0 -20
- package/build/src/diag/ComponentLogger.js +0 -80
- package/build/src/diag/ComponentLogger.js.map +0 -1
- package/build/src/trace/NonRecordingSpan.d.ts +0 -25
- package/build/src/trace/NonRecordingSpan.js.map +0 -1
- package/build/src/trace/context-utils.d.ts +0 -37
- package/build/src/trace/context-utils.js +0 -74
- package/build/src/trace/context-utils.js.map +0 -1
|
@@ -1,23 +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 var TraceFlags;
|
|
17
|
-
(function (TraceFlags) {
|
|
18
|
-
/** Represents no flag set. */
|
|
19
|
-
TraceFlags[TraceFlags["NONE"] = 0] = "NONE";
|
|
20
|
-
/** Bit to represent whether trace is sampled in trace flags. */
|
|
21
|
-
TraceFlags[TraceFlags["SAMPLED"] = 1] = "SAMPLED";
|
|
22
|
-
})(TraceFlags || (TraceFlags = {}));
|
|
23
|
-
//# sourceMappingURL=trace_flags.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"trace_flags.js","sourceRoot":"","sources":["../../../src/trace/trace_flags.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AACH,MAAM,CAAN,IAAY,UAKX;AALD,WAAY,UAAU;IACpB,8BAA8B;IAC9B,2CAAU,CAAA;IACV,gEAAgE;IAChE,iDAAkB,CAAA;AACpB,CAAC,EALW,UAAU,KAAV,UAAU,QAKrB"}
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
export interface TraceState {
|
|
2
|
-
/**
|
|
3
|
-
* Create a new TraceState which inherits from this TraceState and has the
|
|
4
|
-
* given key set.
|
|
5
|
-
* The new entry will always be added in the front of the list of states.
|
|
6
|
-
*
|
|
7
|
-
* @param key key of the TraceState entry.
|
|
8
|
-
* @param value value of the TraceState entry.
|
|
9
|
-
*/
|
|
10
|
-
set(key: string, value: string): TraceState;
|
|
11
|
-
/**
|
|
12
|
-
* Return a new TraceState which inherits from this TraceState but does not
|
|
13
|
-
* contain the given key.
|
|
14
|
-
*
|
|
15
|
-
* @param key the key for the TraceState entry to be removed.
|
|
16
|
-
*/
|
|
17
|
-
unset(key: string): TraceState;
|
|
18
|
-
/**
|
|
19
|
-
* Returns the value to which the specified key is mapped, or `undefined` if
|
|
20
|
-
* this map contains no mapping for the key.
|
|
21
|
-
*
|
|
22
|
-
* @param key with which the specified value is to be associated.
|
|
23
|
-
* @returns the value to which the specified key is mapped, or `undefined` if
|
|
24
|
-
* this map contains no mapping for the key.
|
|
25
|
-
*/
|
|
26
|
-
get(key: string): string | undefined;
|
|
27
|
-
/**
|
|
28
|
-
* Serializes the TraceState to a `list` as defined below. The `list` is a
|
|
29
|
-
* series of `list-members` separated by commas `,`, and a list-member is a
|
|
30
|
-
* key/value pair separated by an equals sign `=`. Spaces and horizontal tabs
|
|
31
|
-
* surrounding `list-members` are ignored. There can be a maximum of 32
|
|
32
|
-
* `list-members` in a `list`.
|
|
33
|
-
*
|
|
34
|
-
* @returns the serialized string.
|
|
35
|
-
*/
|
|
36
|
-
serialize(): string;
|
|
37
|
-
}
|
|
38
|
-
//# sourceMappingURL=trace_state.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=trace_state.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"trace_state.js","sourceRoot":"","sources":["../../../src/trace/trace_state.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG"}
|
|
@@ -1,70 +0,0 @@
|
|
|
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
|
-
* @example
|
|
51
|
-
* const span = tracer.startActiveSpan('op', span => {
|
|
52
|
-
* try {
|
|
53
|
-
* do some work
|
|
54
|
-
* return span;
|
|
55
|
-
* } catch (err) {
|
|
56
|
-
* span.setStatus({
|
|
57
|
-
* code: SpanStatusCode.ERROR,
|
|
58
|
-
* message: err.message,
|
|
59
|
-
* });
|
|
60
|
-
* throw err;
|
|
61
|
-
* }
|
|
62
|
-
* });
|
|
63
|
-
* do some more work
|
|
64
|
-
* span.end();
|
|
65
|
-
*/
|
|
66
|
-
startActiveSpan<F extends (span: Span) => unknown>(name: string, fn: F): ReturnType<F>;
|
|
67
|
-
startActiveSpan<F extends (span: Span) => unknown>(name: string, options: SpanOptions, fn: F): ReturnType<F>;
|
|
68
|
-
startActiveSpan<F extends (span: Span) => unknown>(name: string, options: SpanOptions, context: Context, fn: F): ReturnType<F>;
|
|
69
|
-
}
|
|
70
|
-
//# sourceMappingURL=tracer.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=tracer.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"tracer.js","sourceRoot":"","sources":["../../../src/trace/tracer.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG"}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { Tracer } from './tracer';
|
|
2
|
-
/**
|
|
3
|
-
* A registry for creating named {@link Tracer}s.
|
|
4
|
-
*/
|
|
5
|
-
export interface TracerProvider {
|
|
6
|
-
/**
|
|
7
|
-
* Returns a Tracer, creating one if one with the given name and version is
|
|
8
|
-
* not already created.
|
|
9
|
-
*
|
|
10
|
-
* This function may return different Tracer types (e.g.
|
|
11
|
-
* {@link NoopTracerProvider} vs. a functional tracer).
|
|
12
|
-
*
|
|
13
|
-
* @param name The name of the tracer or instrumentation library.
|
|
14
|
-
* @param version The version of the tracer or instrumentation library.
|
|
15
|
-
* @returns Tracer A Tracer with the given name and version
|
|
16
|
-
*/
|
|
17
|
-
getTracer(name: string, version?: string): Tracer;
|
|
18
|
-
}
|
|
19
|
-
//# sourceMappingURL=tracer_provider.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=tracer_provider.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"tracer_provider.js","sourceRoot":"","sources":["../../../src/trace/tracer_provider.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG"}
|
package/build/esm/version.d.ts
DELETED
package/build/esm/version.js
DELETED
|
@@ -1,18 +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
|
-
// this is autogenerated file, see scripts/version-update.js
|
|
17
|
-
export var VERSION = '0.21.0';
|
|
18
|
-
//# sourceMappingURL=version.js.map
|
package/build/esm/version.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"version.js","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,4DAA4D;AAC5D,MAAM,CAAC,IAAM,OAAO,GAAG,QAAQ,CAAC"}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { Context } from '../context/types';
|
|
2
|
-
import { Baggage } from './types';
|
|
3
|
-
/**
|
|
4
|
-
* Retrieve the current baggage from the given context
|
|
5
|
-
*
|
|
6
|
-
* @param {Context} Context that manage all context values
|
|
7
|
-
* @returns {Baggage} Extracted baggage from the context
|
|
8
|
-
*/
|
|
9
|
-
export declare function getBaggage(context: Context): Baggage | undefined;
|
|
10
|
-
/**
|
|
11
|
-
* Store a baggage in the given context
|
|
12
|
-
*
|
|
13
|
-
* @param {Context} Context that manage all context values
|
|
14
|
-
* @param {Baggage} baggage that will be set in the actual context
|
|
15
|
-
*/
|
|
16
|
-
export declare function setBaggage(context: Context, baggage: Baggage): Context;
|
|
17
|
-
/**
|
|
18
|
-
* Delete the baggage stored in the given context
|
|
19
|
-
*
|
|
20
|
-
* @param {Context} Context that manage all context values
|
|
21
|
-
*/
|
|
22
|
-
export declare function deleteBaggage(context: Context): Context;
|
|
23
|
-
//# sourceMappingURL=context-helpers.d.ts.map
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/*
|
|
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.
|
|
16
|
-
*/
|
|
17
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
-
exports.deleteBaggage = exports.setBaggage = exports.getBaggage = void 0;
|
|
19
|
-
var context_1 = require("../context/context");
|
|
20
|
-
/**
|
|
21
|
-
* Baggage key
|
|
22
|
-
*/
|
|
23
|
-
var BAGGAGE_KEY = context_1.createContextKey('OpenTelemetry Baggage Key');
|
|
24
|
-
/**
|
|
25
|
-
* Retrieve the current baggage from the given context
|
|
26
|
-
*
|
|
27
|
-
* @param {Context} Context that manage all context values
|
|
28
|
-
* @returns {Baggage} Extracted baggage from the context
|
|
29
|
-
*/
|
|
30
|
-
function getBaggage(context) {
|
|
31
|
-
return context.getValue(BAGGAGE_KEY) || undefined;
|
|
32
|
-
}
|
|
33
|
-
exports.getBaggage = getBaggage;
|
|
34
|
-
/**
|
|
35
|
-
* Store a baggage in the given context
|
|
36
|
-
*
|
|
37
|
-
* @param {Context} Context that manage all context values
|
|
38
|
-
* @param {Baggage} baggage that will be set in the actual context
|
|
39
|
-
*/
|
|
40
|
-
function setBaggage(context, baggage) {
|
|
41
|
-
return context.setValue(BAGGAGE_KEY, baggage);
|
|
42
|
-
}
|
|
43
|
-
exports.setBaggage = setBaggage;
|
|
44
|
-
/**
|
|
45
|
-
* Delete the baggage stored in the given context
|
|
46
|
-
*
|
|
47
|
-
* @param {Context} Context that manage all context values
|
|
48
|
-
*/
|
|
49
|
-
function deleteBaggage(context) {
|
|
50
|
-
return context.deleteValue(BAGGAGE_KEY);
|
|
51
|
-
}
|
|
52
|
-
exports.deleteBaggage = deleteBaggage;
|
|
53
|
-
//# sourceMappingURL=context-helpers.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"context-helpers.js","sourceRoot":"","sources":["../../../src/baggage/context-helpers.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAEH,8CAAsD;AAItD;;GAEG;AACH,IAAM,WAAW,GAAG,0BAAgB,CAAC,2BAA2B,CAAC,CAAC;AAElE;;;;;GAKG;AACH,SAAgB,UAAU,CAAC,OAAgB;IACzC,OAAQ,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAa,IAAI,SAAS,CAAC;AACjE,CAAC;AAFD,gCAEC;AAED;;;;;GAKG;AACH,SAAgB,UAAU,CAAC,OAAgB,EAAE,OAAgB;IAC3D,OAAO,OAAO,CAAC,QAAQ,CAAC,WAAW,EAAE,OAAO,CAAC,CAAC;AAChD,CAAC;AAFD,gCAEC;AAED;;;;GAIG;AACH,SAAgB,aAAa,CAAC,OAAgB;IAC5C,OAAO,OAAO,CAAC,WAAW,CAAC,WAAW,CAAC,CAAC;AAC1C,CAAC;AAFD,sCAEC"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import type { Baggage, BaggageEntry } from '../types';
|
|
2
|
-
export declare class BaggageImpl implements Baggage {
|
|
3
|
-
private _entries;
|
|
4
|
-
constructor(entries?: Map<string, BaggageEntry>);
|
|
5
|
-
getEntry(key: string): BaggageEntry | undefined;
|
|
6
|
-
getAllEntries(): [string, BaggageEntry][];
|
|
7
|
-
setEntry(key: string, entry: BaggageEntry): BaggageImpl;
|
|
8
|
-
removeEntry(key: string): BaggageImpl;
|
|
9
|
-
removeEntries(...keys: string[]): BaggageImpl;
|
|
10
|
-
clear(): BaggageImpl;
|
|
11
|
-
}
|
|
12
|
-
//# sourceMappingURL=baggage-impl.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"baggage-impl.js","sourceRoot":"","sources":["../../../../src/baggage/internal/baggage-impl.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAIH;IAGE,qBAAY,OAAmC;QAC7C,IAAI,CAAC,QAAQ,GAAG,OAAO,CAAC,CAAC,CAAC,IAAI,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,IAAI,GAAG,EAAE,CAAC;IACzD,CAAC;IAED,8BAAQ,GAAR,UAAS,GAAW;QAClB,IAAM,KAAK,GAAG,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;QACrC,IAAI,CAAC,KAAK,EAAE;YACV,OAAO,SAAS,CAAC;SAClB;QAED,OAAO,MAAM,CAAC,MAAM,CAAC,EAAE,EAAE,KAAK,CAAC,CAAC;IAClC,CAAC;IAED,mCAAa,GAAb;QACE,OAAO,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC,CAAC,GAAG,CAAC,UAAC,EAAM;gBAAL,CAAC,QAAA,EAAE,CAAC,QAAA;YAAM,OAAA,CAAC,CAAC,EAAE,CAAC,CAAC;QAAN,CAAM,CAAC,CAAC;IACrE,CAAC;IAED,8BAAQ,GAAR,UAAS,GAAW,EAAE,KAAmB;QACvC,IAAM,UAAU,GAAG,IAAI,WAAW,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;QAClD,UAAU,CAAC,QAAQ,CAAC,GAAG,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC;QACpC,OAAO,UAAU,CAAC;IACpB,CAAC;IAED,iCAAW,GAAX,UAAY,GAAW;QACrB,IAAM,UAAU,GAAG,IAAI,WAAW,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;QAClD,UAAU,CAAC,QAAQ,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;QAChC,OAAO,UAAU,CAAC;IACpB,CAAC;IAED,mCAAa,GAAb;QAAc,cAAiB;aAAjB,UAAiB,EAAjB,qBAAiB,EAAjB,IAAiB;YAAjB,yBAAiB;;QAC7B,IAAM,UAAU,GAAG,IAAI,WAAW,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;QAClD,KAAkB,UAAI,EAAJ,aAAI,EAAJ,kBAAI,EAAJ,IAAI,EAAE;YAAnB,IAAM,GAAG,aAAA;YACZ,UAAU,CAAC,QAAQ,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;SACjC;QACD,OAAO,UAAU,CAAC;IACpB,CAAC;IAED,2BAAK,GAAL;QACE,OAAO,IAAI,WAAW,EAAE,CAAC;IAC3B,CAAC;IACH,kBAAC;AAAD,CAAC,AA3CD,IA2CC;AA3CY,kCAAW"}
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
import { baggageEntryMetadataSymbol } from './internal/symbol';
|
|
2
|
-
export interface BaggageEntry {
|
|
3
|
-
/** `String` value of the `BaggageEntry`. */
|
|
4
|
-
value: string;
|
|
5
|
-
/**
|
|
6
|
-
* Metadata is an optional string property defined by the W3C baggage specification.
|
|
7
|
-
* It currently has no special meaning defined by the specification.
|
|
8
|
-
*/
|
|
9
|
-
metadata?: BaggageEntryMetadata;
|
|
10
|
-
}
|
|
11
|
-
/**
|
|
12
|
-
* Serializable Metadata defined by the W3C baggage specification.
|
|
13
|
-
* It currently has no special meaning defined by the OpenTelemetry or W3C.
|
|
14
|
-
*/
|
|
15
|
-
export declare type BaggageEntryMetadata = {
|
|
16
|
-
toString(): string;
|
|
17
|
-
} & {
|
|
18
|
-
__TYPE__: typeof baggageEntryMetadataSymbol;
|
|
19
|
-
};
|
|
20
|
-
/**
|
|
21
|
-
* Baggage represents collection of key-value pairs with optional metadata.
|
|
22
|
-
* Each key of Baggage is associated with exactly one value.
|
|
23
|
-
* Baggage may be used to annotate and enrich telemetry data.
|
|
24
|
-
*/
|
|
25
|
-
export interface Baggage {
|
|
26
|
-
/**
|
|
27
|
-
* Get an entry from Baggage if it exists
|
|
28
|
-
*
|
|
29
|
-
* @param key The key which identifies the BaggageEntry
|
|
30
|
-
*/
|
|
31
|
-
getEntry(key: string): BaggageEntry | undefined;
|
|
32
|
-
/**
|
|
33
|
-
* Get a list of all entries in the Baggage
|
|
34
|
-
*/
|
|
35
|
-
getAllEntries(): [string, BaggageEntry][];
|
|
36
|
-
/**
|
|
37
|
-
* Returns a new baggage with the entries from the current bag and the specified entry
|
|
38
|
-
*
|
|
39
|
-
* @param key string which identifies the baggage entry
|
|
40
|
-
* @param entry BaggageEntry for the given key
|
|
41
|
-
*/
|
|
42
|
-
setEntry(key: string, entry: BaggageEntry): Baggage;
|
|
43
|
-
/**
|
|
44
|
-
* Returns a new baggage with the entries from the current bag except the removed entry
|
|
45
|
-
*
|
|
46
|
-
* @param key key identifying the entry to be removed
|
|
47
|
-
*/
|
|
48
|
-
removeEntry(key: string): Baggage;
|
|
49
|
-
/**
|
|
50
|
-
* Returns a new baggage with the entries from the current bag except the removed entries
|
|
51
|
-
*
|
|
52
|
-
* @param key keys identifying the entries to be removed
|
|
53
|
-
*/
|
|
54
|
-
removeEntries(...key: string[]): Baggage;
|
|
55
|
-
/**
|
|
56
|
-
* Returns a new baggage with no entries
|
|
57
|
-
*/
|
|
58
|
-
clear(): Baggage;
|
|
59
|
-
}
|
|
60
|
-
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/baggage/types.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../src/baggage/utils.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAEH,wBAA0B;AAC1B,wDAAsD;AACtD,4CAA+D;AAG/D;;;;GAIG;AACH,SAAgB,aAAa,CAC3B,OAA0C;IAA1C,wBAAA,EAAA,YAA0C;IAE1C,OAAO,IAAI,0BAAW,CAAC,IAAI,GAAG,CAAC,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;AAC3D,CAAC;AAJD,sCAIC;AAED;;;;;GAKG;AACH,SAAgB,8BAA8B,CAC5C,GAAW;IAEX,IAAI,OAAO,GAAG,KAAK,QAAQ,EAAE;QAC3B,QAAI,CAAC,KAAK,CACR,uDAAqD,OAAO,GAAK,CAClE,CAAC;QACF,GAAG,GAAG,EAAE,CAAC;KACV;IAED,OAAO;QACL,QAAQ,EAAE,mCAA0B;QACpC,QAAQ;YACN,OAAO,GAAG,CAAC;QACb,CAAC;KACF,CAAC;AACJ,CAAC;AAhBD,wEAgBC"}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { ComponentLoggerOptions, DiagLogger } from './types';
|
|
2
|
-
/**
|
|
3
|
-
* Component Logger which is meant to be used as part of any component which
|
|
4
|
-
* will add automatically additional namespace in front of the log message.
|
|
5
|
-
* It will then forward all message to global diag logger
|
|
6
|
-
* @example
|
|
7
|
-
* const cLogger = diag.createComponentLogger({ namespace: '@opentelemetry/instrumentation-http' });
|
|
8
|
-
* cLogger.debug('test');
|
|
9
|
-
* // @opentelemetry/instrumentation-http test
|
|
10
|
-
*/
|
|
11
|
-
export declare class DiagComponentLogger implements DiagLogger {
|
|
12
|
-
private _namespace;
|
|
13
|
-
constructor(props: ComponentLoggerOptions);
|
|
14
|
-
debug(...args: any[]): void;
|
|
15
|
-
error(...args: any[]): void;
|
|
16
|
-
info(...args: any[]): void;
|
|
17
|
-
warn(...args: any[]): void;
|
|
18
|
-
verbose(...args: any[]): void;
|
|
19
|
-
}
|
|
20
|
-
//# sourceMappingURL=ComponentLogger.d.ts.map
|
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/*
|
|
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.
|
|
16
|
-
*/
|
|
17
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
-
exports.DiagComponentLogger = void 0;
|
|
19
|
-
var global_utils_1 = require("../internal/global-utils");
|
|
20
|
-
/**
|
|
21
|
-
* Component Logger which is meant to be used as part of any component which
|
|
22
|
-
* will add automatically additional namespace in front of the log message.
|
|
23
|
-
* It will then forward all message to global diag logger
|
|
24
|
-
* @example
|
|
25
|
-
* const cLogger = diag.createComponentLogger({ namespace: '@opentelemetry/instrumentation-http' });
|
|
26
|
-
* cLogger.debug('test');
|
|
27
|
-
* // @opentelemetry/instrumentation-http test
|
|
28
|
-
*/
|
|
29
|
-
var DiagComponentLogger = /** @class */ (function () {
|
|
30
|
-
function DiagComponentLogger(props) {
|
|
31
|
-
this._namespace = props.namespace || 'DiagComponentLogger';
|
|
32
|
-
}
|
|
33
|
-
DiagComponentLogger.prototype.debug = function () {
|
|
34
|
-
var args = [];
|
|
35
|
-
for (var _i = 0; _i < arguments.length; _i++) {
|
|
36
|
-
args[_i] = arguments[_i];
|
|
37
|
-
}
|
|
38
|
-
return logProxy('debug', this._namespace, args);
|
|
39
|
-
};
|
|
40
|
-
DiagComponentLogger.prototype.error = function () {
|
|
41
|
-
var args = [];
|
|
42
|
-
for (var _i = 0; _i < arguments.length; _i++) {
|
|
43
|
-
args[_i] = arguments[_i];
|
|
44
|
-
}
|
|
45
|
-
return logProxy('error', this._namespace, args);
|
|
46
|
-
};
|
|
47
|
-
DiagComponentLogger.prototype.info = function () {
|
|
48
|
-
var args = [];
|
|
49
|
-
for (var _i = 0; _i < arguments.length; _i++) {
|
|
50
|
-
args[_i] = arguments[_i];
|
|
51
|
-
}
|
|
52
|
-
return logProxy('info', this._namespace, args);
|
|
53
|
-
};
|
|
54
|
-
DiagComponentLogger.prototype.warn = function () {
|
|
55
|
-
var args = [];
|
|
56
|
-
for (var _i = 0; _i < arguments.length; _i++) {
|
|
57
|
-
args[_i] = arguments[_i];
|
|
58
|
-
}
|
|
59
|
-
return logProxy('warn', this._namespace, args);
|
|
60
|
-
};
|
|
61
|
-
DiagComponentLogger.prototype.verbose = function () {
|
|
62
|
-
var args = [];
|
|
63
|
-
for (var _i = 0; _i < arguments.length; _i++) {
|
|
64
|
-
args[_i] = arguments[_i];
|
|
65
|
-
}
|
|
66
|
-
return logProxy('verbose', this._namespace, args);
|
|
67
|
-
};
|
|
68
|
-
return DiagComponentLogger;
|
|
69
|
-
}());
|
|
70
|
-
exports.DiagComponentLogger = DiagComponentLogger;
|
|
71
|
-
function logProxy(funcName, namespace, args) {
|
|
72
|
-
var logger = global_utils_1.getGlobal('diag');
|
|
73
|
-
// shortcut if logger not set
|
|
74
|
-
if (!logger) {
|
|
75
|
-
return;
|
|
76
|
-
}
|
|
77
|
-
args.unshift(namespace);
|
|
78
|
-
return logger[funcName].apply(logger, args);
|
|
79
|
-
}
|
|
80
|
-
//# sourceMappingURL=ComponentLogger.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ComponentLogger.js","sourceRoot":"","sources":["../../../src/diag/ComponentLogger.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAEH,yDAAqD;AAGrD;;;;;;;;GAQG;AACH;IAGE,6BAAY,KAA6B;QACvC,IAAI,CAAC,UAAU,GAAG,KAAK,CAAC,SAAS,IAAI,qBAAqB,CAAC;IAC7D,CAAC;IAEM,mCAAK,GAAZ;QAAa,cAAc;aAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;YAAd,yBAAc;;QACzB,OAAO,QAAQ,CAAC,OAAO,EAAE,IAAI,CAAC,UAAU,EAAE,IAAI,CAAC,CAAC;IAClD,CAAC;IAEM,mCAAK,GAAZ;QAAa,cAAc;aAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;YAAd,yBAAc;;QACzB,OAAO,QAAQ,CAAC,OAAO,EAAE,IAAI,CAAC,UAAU,EAAE,IAAI,CAAC,CAAC;IAClD,CAAC;IAEM,kCAAI,GAAX;QAAY,cAAc;aAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;YAAd,yBAAc;;QACxB,OAAO,QAAQ,CAAC,MAAM,EAAE,IAAI,CAAC,UAAU,EAAE,IAAI,CAAC,CAAC;IACjD,CAAC;IAEM,kCAAI,GAAX;QAAY,cAAc;aAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;YAAd,yBAAc;;QACxB,OAAO,QAAQ,CAAC,MAAM,EAAE,IAAI,CAAC,UAAU,EAAE,IAAI,CAAC,CAAC;IACjD,CAAC;IAEM,qCAAO,GAAd;QAAe,cAAc;aAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;YAAd,yBAAc;;QAC3B,OAAO,QAAQ,CAAC,SAAS,EAAE,IAAI,CAAC,UAAU,EAAE,IAAI,CAAC,CAAC;IACpD,CAAC;IACH,0BAAC;AAAD,CAAC,AA1BD,IA0BC;AA1BY,kDAAmB;AA4BhC,SAAS,QAAQ,CACf,QAA0B,EAC1B,SAAiB,EACjB,IAAS;IAET,IAAM,MAAM,GAAG,wBAAS,CAAC,MAAM,CAAC,CAAC;IACjC,6BAA6B;IAC7B,IAAI,CAAC,MAAM,EAAE;QACX,OAAO;KACR;IAED,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC;IACxB,OAAO,MAAM,CAAC,QAAQ,CAAC,CAAC,KAAK,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;AAC9C,CAAC"}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { Exception } from '../common/Exception';
|
|
2
|
-
import { TimeInput } from '../common/Time';
|
|
3
|
-
import { SpanAttributes } from './attributes';
|
|
4
|
-
import { Span } from './span';
|
|
5
|
-
import { SpanContext } from './span_context';
|
|
6
|
-
import { SpanStatus } from './status';
|
|
7
|
-
/**
|
|
8
|
-
* The NonRecordingSpan is the default {@link Span} that is used when no Span
|
|
9
|
-
* implementation is available. All operations are no-op including context
|
|
10
|
-
* propagation.
|
|
11
|
-
*/
|
|
12
|
-
export declare class NonRecordingSpan implements Span {
|
|
13
|
-
private readonly _spanContext;
|
|
14
|
-
constructor(_spanContext?: SpanContext);
|
|
15
|
-
spanContext(): SpanContext;
|
|
16
|
-
setAttribute(_key: string, _value: unknown): this;
|
|
17
|
-
setAttributes(_attributes: SpanAttributes): this;
|
|
18
|
-
addEvent(_name: string, _attributes?: SpanAttributes): this;
|
|
19
|
-
setStatus(_status: SpanStatus): this;
|
|
20
|
-
updateName(_name: string): this;
|
|
21
|
-
end(_endTime?: TimeInput): void;
|
|
22
|
-
isRecording(): boolean;
|
|
23
|
-
recordException(_exception: Exception, _time?: TimeInput): void;
|
|
24
|
-
}
|
|
25
|
-
//# sourceMappingURL=NonRecordingSpan.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"NonRecordingSpan.js","sourceRoot":"","sources":["../../../src/trace/NonRecordingSpan.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAQH,yDAA2D;AAE3D;;;;GAIG;AACH;IACE,0BACmB,YAAgD;QAAhD,6BAAA,EAAA,eAA4B,wCAAoB;QAAhD,iBAAY,GAAZ,YAAY,CAAoC;IAChE,CAAC;IAEJ,yBAAyB;IACzB,sCAAW,GAAX;QACE,OAAO,IAAI,CAAC,YAAY,CAAC;IAC3B,CAAC;IAED,0BAA0B;IAC1B,uCAAY,GAAZ,UAAa,IAAY,EAAE,MAAe;QACxC,OAAO,IAAI,CAAC;IACd,CAAC;IAED,0BAA0B;IAC1B,wCAAa,GAAb,UAAc,WAA2B;QACvC,OAAO,IAAI,CAAC;IACd,CAAC;IAED,0BAA0B;IAC1B,mCAAQ,GAAR,UAAS,KAAa,EAAE,WAA4B;QAClD,OAAO,IAAI,CAAC;IACd,CAAC;IAED,0BAA0B;IAC1B,oCAAS,GAAT,UAAU,OAAmB;QAC3B,OAAO,IAAI,CAAC;IACd,CAAC;IAED,0BAA0B;IAC1B,qCAAU,GAAV,UAAW,KAAa;QACtB,OAAO,IAAI,CAAC;IACd,CAAC;IAED,0BAA0B;IAC1B,8BAAG,GAAH,UAAI,QAAoB,IAAS,CAAC;IAElC,yDAAyD;IACzD,sCAAW,GAAX;QACE,OAAO,KAAK,CAAC;IACf,CAAC;IAED,0BAA0B;IAC1B,0CAAe,GAAf,UAAgB,UAAqB,EAAE,KAAiB,IAAS,CAAC;IACpE,uBAAC;AAAD,CAAC,AA7CD,IA6CC;AA7CY,4CAAgB"}
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { Context } from '../context/types';
|
|
2
|
-
import { Span } from './span';
|
|
3
|
-
import { SpanContext } from './span_context';
|
|
4
|
-
/**
|
|
5
|
-
* Return the span if one exists
|
|
6
|
-
*
|
|
7
|
-
* @param context context to get span from
|
|
8
|
-
*/
|
|
9
|
-
export declare function getSpan(context: Context): Span | undefined;
|
|
10
|
-
/**
|
|
11
|
-
* Set the span on a context
|
|
12
|
-
*
|
|
13
|
-
* @param context context to use as parent
|
|
14
|
-
* @param span span to set active
|
|
15
|
-
*/
|
|
16
|
-
export declare function setSpan(context: Context, span: Span): Context;
|
|
17
|
-
/**
|
|
18
|
-
* Remove current span stored in the context
|
|
19
|
-
*
|
|
20
|
-
* @param context context to delete span from
|
|
21
|
-
*/
|
|
22
|
-
export declare function deleteSpan(context: Context): Context;
|
|
23
|
-
/**
|
|
24
|
-
* Wrap span context in a NoopSpan and set as span in a new
|
|
25
|
-
* context
|
|
26
|
-
*
|
|
27
|
-
* @param context context to set active span on
|
|
28
|
-
* @param spanContext span context to be wrapped
|
|
29
|
-
*/
|
|
30
|
-
export declare function setSpanContext(context: Context, spanContext: SpanContext): Context;
|
|
31
|
-
/**
|
|
32
|
-
* Get the span context of the span if it exists.
|
|
33
|
-
*
|
|
34
|
-
* @param context context to get values from
|
|
35
|
-
*/
|
|
36
|
-
export declare function getSpanContext(context: Context): SpanContext | undefined;
|
|
37
|
-
//# sourceMappingURL=context-utils.d.ts.map
|