@opentelemetry/api 1.0.4 → 1.1.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 +14 -0
- package/build/esm/common/Attributes.d.ts +15 -0
- package/build/esm/common/Attributes.js +17 -0
- package/build/esm/common/Attributes.js.map +1 -0
- package/build/esm/index.d.ts +3 -0
- package/build/esm/index.js +3 -0
- package/build/esm/index.js.map +1 -1
- package/build/esm/trace/NoopTracerProvider.d.ts +2 -1
- package/build/esm/trace/NoopTracerProvider.js +1 -1
- package/build/esm/trace/NoopTracerProvider.js.map +1 -1
- package/build/esm/trace/ProxyTracer.d.ts +4 -2
- package/build/esm/trace/ProxyTracer.js +3 -2
- package/build/esm/trace/ProxyTracer.js.map +1 -1
- package/build/esm/trace/ProxyTracerProvider.d.ts +3 -2
- package/build/esm/trace/ProxyTracerProvider.js +4 -4
- package/build/esm/trace/ProxyTracerProvider.js.map +1 -1
- package/build/esm/trace/attributes.d.ts +7 -7
- package/build/esm/trace/attributes.js.map +1 -1
- package/build/esm/trace/internal/tracestate-impl.d.ts +22 -0
- package/build/esm/trace/internal/tracestate-impl.js +102 -0
- package/build/esm/trace/internal/tracestate-impl.js.map +1 -0
- package/build/esm/trace/internal/tracestate-validators.d.ts +15 -0
- package/build/esm/trace/internal/tracestate-validators.js +41 -0
- package/build/esm/trace/internal/tracestate-validators.js.map +1 -0
- package/build/esm/trace/internal/utils.d.ts +3 -0
- package/build/esm/trace/internal/utils.js +20 -0
- package/build/esm/trace/internal/utils.js.map +1 -0
- package/build/esm/trace/tracer_options.d.ts +10 -0
- package/build/esm/trace/tracer_options.js +17 -0
- package/build/esm/trace/tracer_options.js.map +1 -0
- package/build/esm/trace/tracer_provider.d.ts +3 -1
- package/build/esm/trace/tracer_provider.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/src/common/Attributes.d.ts +15 -0
- package/build/src/common/Attributes.js +18 -0
- package/build/src/common/Attributes.js.map +1 -0
- package/build/src/index.d.ts +3 -0
- package/build/src/index.js +5 -1
- package/build/src/index.js.map +1 -1
- package/build/src/trace/NoopTracerProvider.d.ts +2 -1
- package/build/src/trace/NoopTracerProvider.js +1 -1
- package/build/src/trace/NoopTracerProvider.js.map +1 -1
- package/build/src/trace/ProxyTracer.d.ts +4 -2
- package/build/src/trace/ProxyTracer.js +3 -2
- package/build/src/trace/ProxyTracer.js.map +1 -1
- package/build/src/trace/ProxyTracerProvider.d.ts +3 -2
- package/build/src/trace/ProxyTracerProvider.js +4 -4
- package/build/src/trace/ProxyTracerProvider.js.map +1 -1
- package/build/src/trace/attributes.d.ts +7 -7
- package/build/src/trace/attributes.js.map +1 -1
- package/build/src/trace/internal/tracestate-impl.d.ts +22 -0
- package/build/src/trace/internal/tracestate-impl.js +105 -0
- package/build/src/trace/internal/tracestate-impl.js.map +1 -0
- package/build/src/trace/internal/tracestate-validators.d.ts +15 -0
- package/build/src/trace/internal/tracestate-validators.js +46 -0
- package/build/src/trace/internal/tracestate-validators.js.map +1 -0
- package/build/src/trace/internal/utils.d.ts +3 -0
- package/build/src/trace/internal/utils.js +24 -0
- package/build/src/trace/internal/utils.js.map +1 -0
- package/build/src/trace/tracer_options.d.ts +10 -0
- package/build/src/trace/tracer_options.js +18 -0
- package/build/src/trace/tracer_options.js.map +1 -0
- package/build/src/trace/tracer_provider.d.ts +3 -1
- package/build/src/trace/tracer_provider.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 +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,20 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
|
|
5
|
+
## [1.1.0](https://www.github.com/open-telemetry/opentelemetry-js-api/compare/v1.0.4...v1.1.0) (2022-01-25)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
* add tracestate implementation to api ([#147](https://www.github.com/open-telemetry/opentelemetry-js-api/issues/147)) ([82842c7](https://www.github.com/open-telemetry/opentelemetry-js-api/commit/82842c7097614e6ece99e73838ac5e94ff5460b7))
|
|
11
|
+
* define common attributes type ([#142](https://www.github.com/open-telemetry/opentelemetry-js-api/issues/142)) ([ae9bead](https://www.github.com/open-telemetry/opentelemetry-js-api/commit/ae9bead17750d35dec4b63cfae098087666abc85))
|
|
12
|
+
* **trace:** add optional schema url to TracerProvider.getTracer ([#129](https://www.github.com/open-telemetry/opentelemetry-js-api/issues/129)) ([aa65fc6](https://www.github.com/open-telemetry/opentelemetry-js-api/commit/aa65fc66809d45090d6e4951c265386d17ccc6f6))
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
### Bug Fixes
|
|
16
|
+
|
|
17
|
+
* export tracer options ([#154](https://www.github.com/open-telemetry/opentelemetry-js-api/issues/154)) ([b125324](https://www.github.com/open-telemetry/opentelemetry-js-api/commit/b125324438fb2f24eb80c7c6673afc8cfc99575e))
|
|
18
|
+
|
|
5
19
|
### [1.0.4](https://www.github.com/open-telemetry/opentelemetry-js-api/compare/v1.0.3...v1.0.4) (2021-12-18)
|
|
6
20
|
|
|
7
21
|
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Attributes is a map from string to attribute values.
|
|
3
|
+
*
|
|
4
|
+
* Note: only the own enumerable keys are counted as valid attribute keys.
|
|
5
|
+
*/
|
|
6
|
+
export interface Attributes {
|
|
7
|
+
[attributeKey: string]: AttributeValue | undefined;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Attribute values may be any non-nullish primitive value except an object.
|
|
11
|
+
*
|
|
12
|
+
* null or undefined attribute values are invalid and will result in undefined behavior.
|
|
13
|
+
*/
|
|
14
|
+
export declare type AttributeValue = string | number | boolean | Array<null | undefined | string> | Array<null | undefined | number> | Array<null | undefined | boolean>;
|
|
15
|
+
//# sourceMappingURL=Attributes.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=Attributes.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Attributes.js","sourceRoot":"","sources":["../../../src/common/Attributes.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 * Attributes is a map from string to attribute values.\n *\n * Note: only the own enumerable keys are counted as valid attribute keys.\n */\nexport interface Attributes {\n [attributeKey: string]: AttributeValue | undefined;\n}\n\n/**\n * Attribute values may be any non-nullish primitive value except an object.\n *\n * null or undefined attribute values are invalid and will result in undefined behavior.\n */\nexport type AttributeValue =\n | string\n | number\n | boolean\n | Array<null | undefined | string>\n | Array<null | undefined | number>\n | Array<null | undefined | boolean>;\n"]}
|
package/build/esm/index.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ export * from './baggage/types';
|
|
|
2
2
|
export { baggageEntryMetadataFromString } from './baggage/utils';
|
|
3
3
|
export * from './common/Exception';
|
|
4
4
|
export * from './common/Time';
|
|
5
|
+
export * from './common/Attributes';
|
|
5
6
|
export * from './diag';
|
|
6
7
|
export * from './propagation/TextMapPropagator';
|
|
7
8
|
export * from './trace/attributes';
|
|
@@ -17,8 +18,10 @@ export * from './trace/SpanOptions';
|
|
|
17
18
|
export * from './trace/status';
|
|
18
19
|
export * from './trace/trace_flags';
|
|
19
20
|
export * from './trace/trace_state';
|
|
21
|
+
export { createTraceState } from './trace/internal/utils';
|
|
20
22
|
export * from './trace/tracer_provider';
|
|
21
23
|
export * from './trace/tracer';
|
|
24
|
+
export * from './trace/tracer_options';
|
|
22
25
|
export { isSpanContextValid, isValidTraceId, isValidSpanId, } from './trace/spancontext-utils';
|
|
23
26
|
export { INVALID_SPANID, INVALID_TRACEID, INVALID_SPAN_CONTEXT, } from './trace/invalid-span-constants';
|
|
24
27
|
export * from './context/context';
|
package/build/esm/index.js
CHANGED
|
@@ -17,6 +17,7 @@ export * from './baggage/types';
|
|
|
17
17
|
export { baggageEntryMetadataFromString } from './baggage/utils';
|
|
18
18
|
export * from './common/Exception';
|
|
19
19
|
export * from './common/Time';
|
|
20
|
+
export * from './common/Attributes';
|
|
20
21
|
export * from './diag';
|
|
21
22
|
export * from './propagation/TextMapPropagator';
|
|
22
23
|
export * from './trace/attributes';
|
|
@@ -32,8 +33,10 @@ export * from './trace/SpanOptions';
|
|
|
32
33
|
export * from './trace/status';
|
|
33
34
|
export * from './trace/trace_flags';
|
|
34
35
|
export * from './trace/trace_state';
|
|
36
|
+
export { createTraceState } from './trace/internal/utils';
|
|
35
37
|
export * from './trace/tracer_provider';
|
|
36
38
|
export * from './trace/tracer';
|
|
39
|
+
export * from './trace/tracer_options';
|
|
37
40
|
export { isSpanContextValid, isValidTraceId, isValidSpanId, } from './trace/spancontext-utils';
|
|
38
41
|
export { INVALID_SPANID, INVALID_TRACEID, INVALID_SPAN_CONTEXT, } from './trace/invalid-span-constants';
|
|
39
42
|
export * from './context/context';
|
package/build/esm/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,cAAc,iBAAiB,CAAC;AAChC,OAAO,EAAE,8BAA8B,EAAE,MAAM,iBAAiB,CAAC;AACjE,cAAc,oBAAoB,CAAC;AACnC,cAAc,eAAe,CAAC;AAC9B,cAAc,QAAQ,CAAC;AACvB,cAAc,iCAAiC,CAAC;AAChD,cAAc,oBAAoB,CAAC;AACnC,cAAc,cAAc,CAAC;AAC7B,cAAc,qBAAqB,CAAC;AACpC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,iBAAiB,CAAC;AAChC,cAAc,wBAAwB,CAAC;AACvC,cAAc,sBAAsB,CAAC;AACrC,cAAc,mBAAmB,CAAC;AAClC,cAAc,cAAc,CAAC;AAC7B,cAAc,qBAAqB,CAAC;AACpC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,yBAAyB,CAAC;AACxC,cAAc,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,cAAc,iBAAiB,CAAC;AAChC,OAAO,EAAE,8BAA8B,EAAE,MAAM,iBAAiB,CAAC;AACjE,cAAc,oBAAoB,CAAC;AACnC,cAAc,eAAe,CAAC;AAC9B,cAAc,qBAAqB,CAAC;AACpC,cAAc,QAAQ,CAAC;AACvB,cAAc,iCAAiC,CAAC;AAChD,cAAc,oBAAoB,CAAC;AACnC,cAAc,cAAc,CAAC;AAC7B,cAAc,qBAAqB,CAAC;AACpC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,iBAAiB,CAAC;AAChC,cAAc,wBAAwB,CAAC;AACvC,cAAc,sBAAsB,CAAC;AACrC,cAAc,mBAAmB,CAAC;AAClC,cAAc,cAAc,CAAC;AAC7B,cAAc,qBAAqB,CAAC;AACpC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAC1D,cAAc,yBAAyB,CAAC;AACxC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,wBAAwB,CAAC;AAEvC,OAAO,EACL,kBAAkB,EAClB,cAAc,EACd,aAAa,GACd,MAAM,2BAA2B,CAAC;AAEnC,OAAO,EACL,cAAc,EACd,eAAe,EACf,oBAAoB,GACrB,MAAM,gCAAgC,CAAC;AAExC,cAAc,mBAAmB,CAAC;AAClC,cAAc,iBAAiB,CAAC;AAEhC,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE3C,iCAAiC;AACjC,MAAM,CAAC,IAAM,OAAO,GAAG,UAAU,CAAC,WAAW,EAAE,CAAC;AAEhD,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAEvC,+BAA+B;AAC/B,MAAM,CAAC,IAAM,KAAK,GAAG,QAAQ,CAAC,WAAW,EAAE,CAAC;AAE5C,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAEnD,qCAAqC;AACrC,MAAM,CAAC,IAAM,WAAW,GAAG,cAAc,CAAC,WAAW,EAAE,CAAC;AAExD,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAGrC;;;;;GAKG;AACH,MAAM,CAAC,IAAM,IAAI,GAAG,OAAO,CAAC,QAAQ,EAAE,CAAC;AAEvC,eAAe;IACb,KAAK,OAAA;IACL,OAAO,SAAA;IACP,WAAW,aAAA;IACX,IAAI,MAAA;CACL,CAAC","sourcesContent":["/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport * from './baggage/types';\nexport { baggageEntryMetadataFromString } from './baggage/utils';\nexport * from './common/Exception';\nexport * from './common/Time';\nexport * from './common/Attributes';\nexport * from './diag';\nexport * from './propagation/TextMapPropagator';\nexport * from './trace/attributes';\nexport * from './trace/link';\nexport * from './trace/ProxyTracer';\nexport * from './trace/ProxyTracerProvider';\nexport * from './trace/Sampler';\nexport * from './trace/SamplingResult';\nexport * from './trace/span_context';\nexport * from './trace/span_kind';\nexport * from './trace/span';\nexport * from './trace/SpanOptions';\nexport * from './trace/status';\nexport * from './trace/trace_flags';\nexport * from './trace/trace_state';\nexport { createTraceState } from './trace/internal/utils';\nexport * from './trace/tracer_provider';\nexport * from './trace/tracer';\nexport * from './trace/tracer_options';\n\nexport {\n isSpanContextValid,\n isValidTraceId,\n isValidSpanId,\n} from './trace/spancontext-utils';\n\nexport {\n INVALID_SPANID,\n INVALID_TRACEID,\n INVALID_SPAN_CONTEXT,\n} from './trace/invalid-span-constants';\n\nexport * from './context/context';\nexport * from './context/types';\n\nimport { ContextAPI } from './api/context';\nexport type { ContextAPI } from './api/context';\n/** Entrypoint for context API */\nexport const context = ContextAPI.getInstance();\n\nimport { TraceAPI } from './api/trace';\nexport type { TraceAPI } from './api/trace';\n/** Entrypoint for trace API */\nexport const trace = TraceAPI.getInstance();\n\nimport { PropagationAPI } from './api/propagation';\nexport type { PropagationAPI } from './api/propagation';\n/** Entrypoint for propagation API */\nexport const propagation = PropagationAPI.getInstance();\n\nimport { DiagAPI } from './api/diag';\nexport type { DiagAPI } from './api/diag';\n\n/**\n * Entrypoint for Diag API.\n * Defines Diagnostic handler used for internal diagnostic logging operations.\n * The default provides a Noop DiagLogger implementation which may be changed via the\n * diag.setLogger(logger: DiagLogger) function.\n */\nexport const diag = DiagAPI.instance();\n\nexport default {\n trace,\n context,\n propagation,\n diag,\n};\n"]}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Tracer } from './tracer';
|
|
2
|
+
import { TracerOptions } from './tracer_options';
|
|
2
3
|
import { TracerProvider } from './tracer_provider';
|
|
3
4
|
/**
|
|
4
5
|
* An implementation of the {@link TracerProvider} which returns an impotent
|
|
@@ -7,6 +8,6 @@ import { TracerProvider } from './tracer_provider';
|
|
|
7
8
|
* All operations are no-op.
|
|
8
9
|
*/
|
|
9
10
|
export declare class NoopTracerProvider implements TracerProvider {
|
|
10
|
-
getTracer(_name?: string, _version?: string): Tracer;
|
|
11
|
+
getTracer(_name?: string, _version?: string, _options?: TracerOptions): Tracer;
|
|
11
12
|
}
|
|
12
13
|
//# sourceMappingURL=NoopTracerProvider.d.ts.map
|
|
@@ -23,7 +23,7 @@ import { NoopTracer } from './NoopTracer';
|
|
|
23
23
|
var NoopTracerProvider = /** @class */ (function () {
|
|
24
24
|
function NoopTracerProvider() {
|
|
25
25
|
}
|
|
26
|
-
NoopTracerProvider.prototype.getTracer = function (_name, _version) {
|
|
26
|
+
NoopTracerProvider.prototype.getTracer = function (_name, _version, _options) {
|
|
27
27
|
return new NoopTracer();
|
|
28
28
|
};
|
|
29
29
|
return NoopTracerProvider;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NoopTracerProvider.js","sourceRoot":"","sources":["../../../src/trace/NoopTracerProvider.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"NoopTracerProvider.js","sourceRoot":"","sources":["../../../src/trace/NoopTracerProvider.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAK1C;;;;;GAKG;AACH;IAAA;IAQA,CAAC;IAPC,sCAAS,GAAT,UACE,KAAc,EACd,QAAiB,EACjB,QAAwB;QAExB,OAAO,IAAI,UAAU,EAAE,CAAC;IAC1B,CAAC;IACH,yBAAC;AAAD,CAAC,AARD,IAQC","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 { NoopTracer } from './NoopTracer';\nimport { Tracer } from './tracer';\nimport { TracerOptions } from './tracer_options';\nimport { TracerProvider } from './tracer_provider';\n\n/**\n * An implementation of the {@link TracerProvider} which returns an impotent\n * Tracer for all calls to `getTracer`.\n *\n * All operations are no-op.\n */\nexport class NoopTracerProvider implements TracerProvider {\n getTracer(\n _name?: string,\n _version?: string,\n _options?: TracerOptions\n ): Tracer {\n return new NoopTracer();\n }\n}\n"]}
|
|
@@ -2,6 +2,7 @@ import { Context } from '../context/types';
|
|
|
2
2
|
import { Span } from './span';
|
|
3
3
|
import { SpanOptions } from './SpanOptions';
|
|
4
4
|
import { Tracer } from './tracer';
|
|
5
|
+
import { TracerOptions } from './tracer_options';
|
|
5
6
|
/**
|
|
6
7
|
* Proxy tracer provided by the proxy tracer provider
|
|
7
8
|
*/
|
|
@@ -9,8 +10,9 @@ export declare class ProxyTracer implements Tracer {
|
|
|
9
10
|
private _provider;
|
|
10
11
|
readonly name: string;
|
|
11
12
|
readonly version?: string | undefined;
|
|
13
|
+
readonly options?: TracerOptions | undefined;
|
|
12
14
|
private _delegate?;
|
|
13
|
-
constructor(_provider: TracerDelegator, name: string, version?: string | undefined);
|
|
15
|
+
constructor(_provider: TracerDelegator, name: string, version?: string | undefined, options?: TracerOptions | undefined);
|
|
14
16
|
startSpan(name: string, options?: SpanOptions, context?: Context): Span;
|
|
15
17
|
startActiveSpan<F extends (span: Span) => unknown>(_name: string, _options: F | SpanOptions, _context?: F | Context, _fn?: F): ReturnType<F>;
|
|
16
18
|
/**
|
|
@@ -20,6 +22,6 @@ export declare class ProxyTracer implements Tracer {
|
|
|
20
22
|
private _getTracer;
|
|
21
23
|
}
|
|
22
24
|
export interface TracerDelegator {
|
|
23
|
-
getDelegateTracer(name: string, version?: string): Tracer | undefined;
|
|
25
|
+
getDelegateTracer(name: string, version?: string, options?: TracerOptions): Tracer | undefined;
|
|
24
26
|
}
|
|
25
27
|
//# sourceMappingURL=ProxyTracer.d.ts.map
|
|
@@ -19,10 +19,11 @@ var NOOP_TRACER = new NoopTracer();
|
|
|
19
19
|
* Proxy tracer provided by the proxy tracer provider
|
|
20
20
|
*/
|
|
21
21
|
var ProxyTracer = /** @class */ (function () {
|
|
22
|
-
function ProxyTracer(_provider, name, version) {
|
|
22
|
+
function ProxyTracer(_provider, name, version, options) {
|
|
23
23
|
this._provider = _provider;
|
|
24
24
|
this.name = name;
|
|
25
25
|
this.version = version;
|
|
26
|
+
this.options = options;
|
|
26
27
|
}
|
|
27
28
|
ProxyTracer.prototype.startSpan = function (name, options, context) {
|
|
28
29
|
return this._getTracer().startSpan(name, options, context);
|
|
@@ -39,7 +40,7 @@ var ProxyTracer = /** @class */ (function () {
|
|
|
39
40
|
if (this._delegate) {
|
|
40
41
|
return this._delegate;
|
|
41
42
|
}
|
|
42
|
-
var tracer = this._provider.getDelegateTracer(this.name, this.version);
|
|
43
|
+
var tracer = this._provider.getDelegateTracer(this.name, this.version, this.options);
|
|
43
44
|
if (!tracer) {
|
|
44
45
|
return NOOP_TRACER;
|
|
45
46
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProxyTracer.js","sourceRoot":"","sources":["../../../src/trace/ProxyTracer.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"ProxyTracer.js","sourceRoot":"","sources":["../../../src/trace/ProxyTracer.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAM1C,IAAM,WAAW,GAAG,IAAI,UAAU,EAAE,CAAC;AAErC;;GAEG;AACH;IAIE,qBACU,SAA0B,EAClB,IAAY,EACZ,OAAgB,EAChB,OAAuB;QAH/B,cAAS,GAAT,SAAS,CAAiB;QAClB,SAAI,GAAJ,IAAI,CAAQ;QACZ,YAAO,GAAP,OAAO,CAAS;QAChB,YAAO,GAAP,OAAO,CAAgB;IACtC,CAAC;IAEJ,+BAAS,GAAT,UAAU,IAAY,EAAE,OAAqB,EAAE,OAAiB;QAC9D,OAAO,IAAI,CAAC,UAAU,EAAE,CAAC,SAAS,CAAC,IAAI,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;IAC7D,CAAC;IAED,qCAAe,GAAf,UACE,KAAa,EACb,QAAyB,EACzB,QAAsB,EACtB,GAAO;QAEP,IAAM,MAAM,GAAG,IAAI,CAAC,UAAU,EAAE,CAAC;QACjC,OAAO,OAAO,CAAC,KAAK,CAAC,MAAM,CAAC,eAAe,EAAE,MAAM,EAAE,SAAS,CAAC,CAAC;IAClE,CAAC;IAED;;;OAGG;IACK,gCAAU,GAAlB;QACE,IAAI,IAAI,CAAC,SAAS,EAAE;YAClB,OAAO,IAAI,CAAC,SAAS,CAAC;SACvB;QAED,IAAM,MAAM,GAAG,IAAI,CAAC,SAAS,CAAC,iBAAiB,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,OAAO,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC;QAEvF,IAAI,CAAC,MAAM,EAAE;YACX,OAAO,WAAW,CAAC;SACpB;QAED,IAAI,CAAC,SAAS,GAAG,MAAM,CAAC;QACxB,OAAO,IAAI,CAAC,SAAS,CAAC;IACxB,CAAC;IACH,kBAAC;AAAD,CAAC,AA3CD,IA2CC","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 { NoopTracer } from './NoopTracer';\nimport { Span } from './span';\nimport { SpanOptions } from './SpanOptions';\nimport { Tracer } from './tracer';\nimport { TracerOptions } from './tracer_options';\n\nconst NOOP_TRACER = new NoopTracer();\n\n/**\n * Proxy tracer provided by the proxy tracer provider\n */\nexport class ProxyTracer implements Tracer {\n // When a real implementation is provided, this will be it\n private _delegate?: Tracer;\n\n constructor(\n private _provider: TracerDelegator,\n public readonly name: string,\n public readonly version?: string,\n public readonly options?: TracerOptions\n ) {}\n\n startSpan(name: string, options?: SpanOptions, context?: Context): Span {\n return this._getTracer().startSpan(name, options, context);\n }\n\n startActiveSpan<F extends (span: Span) => unknown>(\n _name: string,\n _options: F | SpanOptions,\n _context?: F | Context,\n _fn?: F\n ): ReturnType<F> {\n const tracer = this._getTracer();\n return Reflect.apply(tracer.startActiveSpan, tracer, arguments);\n }\n\n /**\n * Try to get a tracer from the proxy tracer provider.\n * If the proxy tracer provider has no delegate, return a noop tracer.\n */\n private _getTracer() {\n if (this._delegate) {\n return this._delegate;\n }\n\n const tracer = this._provider.getDelegateTracer(this.name, this.version, this.options);\n\n if (!tracer) {\n return NOOP_TRACER;\n }\n\n this._delegate = tracer;\n return this._delegate;\n }\n}\n\nexport interface TracerDelegator {\n getDelegateTracer(name: string, version?: string, options?: TracerOptions): Tracer | undefined;\n}\n"]}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Tracer } from './tracer';
|
|
2
2
|
import { TracerProvider } from './tracer_provider';
|
|
3
|
+
import { TracerOptions } from './tracer_options';
|
|
3
4
|
/**
|
|
4
5
|
* Tracer provider which provides {@link ProxyTracer}s.
|
|
5
6
|
*
|
|
@@ -13,12 +14,12 @@ export declare class ProxyTracerProvider implements TracerProvider {
|
|
|
13
14
|
/**
|
|
14
15
|
* Get a {@link ProxyTracer}
|
|
15
16
|
*/
|
|
16
|
-
getTracer(name: string, version?: string): Tracer;
|
|
17
|
+
getTracer(name: string, version?: string, options?: TracerOptions): Tracer;
|
|
17
18
|
getDelegate(): TracerProvider;
|
|
18
19
|
/**
|
|
19
20
|
* Set the delegate tracer provider
|
|
20
21
|
*/
|
|
21
22
|
setDelegate(delegate: TracerProvider): void;
|
|
22
|
-
getDelegateTracer(name: string, version?: string): Tracer | undefined;
|
|
23
|
+
getDelegateTracer(name: string, version?: string, options?: TracerOptions): Tracer | undefined;
|
|
23
24
|
}
|
|
24
25
|
//# sourceMappingURL=ProxyTracerProvider.d.ts.map
|
|
@@ -30,9 +30,9 @@ var ProxyTracerProvider = /** @class */ (function () {
|
|
|
30
30
|
/**
|
|
31
31
|
* Get a {@link ProxyTracer}
|
|
32
32
|
*/
|
|
33
|
-
ProxyTracerProvider.prototype.getTracer = function (name, version) {
|
|
33
|
+
ProxyTracerProvider.prototype.getTracer = function (name, version, options) {
|
|
34
34
|
var _a;
|
|
35
|
-
return ((_a = this.getDelegateTracer(name, version)) !== null && _a !== void 0 ? _a : new ProxyTracer(this, name, version));
|
|
35
|
+
return ((_a = this.getDelegateTracer(name, version, options)) !== null && _a !== void 0 ? _a : new ProxyTracer(this, name, version, options));
|
|
36
36
|
};
|
|
37
37
|
ProxyTracerProvider.prototype.getDelegate = function () {
|
|
38
38
|
var _a;
|
|
@@ -44,9 +44,9 @@ var ProxyTracerProvider = /** @class */ (function () {
|
|
|
44
44
|
ProxyTracerProvider.prototype.setDelegate = function (delegate) {
|
|
45
45
|
this._delegate = delegate;
|
|
46
46
|
};
|
|
47
|
-
ProxyTracerProvider.prototype.getDelegateTracer = function (name, version) {
|
|
47
|
+
ProxyTracerProvider.prototype.getDelegateTracer = function (name, version, options) {
|
|
48
48
|
var _a;
|
|
49
|
-
return (_a = this._delegate) === null || _a === void 0 ? void 0 : _a.getTracer(name, version);
|
|
49
|
+
return (_a = this._delegate) === null || _a === void 0 ? void 0 : _a.getTracer(name, version, options);
|
|
50
50
|
};
|
|
51
51
|
return ProxyTracerProvider;
|
|
52
52
|
}());
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProxyTracerProvider.js","sourceRoot":"","sources":["../../../src/trace/ProxyTracerProvider.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAIH,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"ProxyTracerProvider.js","sourceRoot":"","sources":["../../../src/trace/ProxyTracerProvider.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAIH,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAG1D,IAAM,oBAAoB,GAAG,IAAI,kBAAkB,EAAE,CAAC;AAEtD;;;;;;;GAOG;AACH;IAAA;IA+BA,CAAC;IA5BC;;OAEG;IACH,uCAAS,GAAT,UAAU,IAAY,EAAE,OAAgB,EAAE,OAAuB;;QAC/D,OAAO,CACL,MAAA,IAAI,CAAC,iBAAiB,CAAC,IAAI,EAAE,OAAO,EAAE,OAAO,CAAC,mCAC9C,IAAI,WAAW,CAAC,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,CAAC,CAC9C,CAAC;IACJ,CAAC;IAED,yCAAW,GAAX;;QACE,OAAO,MAAA,IAAI,CAAC,SAAS,mCAAI,oBAAoB,CAAC;IAChD,CAAC;IAED;;OAEG;IACH,yCAAW,GAAX,UAAY,QAAwB;QAClC,IAAI,CAAC,SAAS,GAAG,QAAQ,CAAC;IAC5B,CAAC;IAED,+CAAiB,GAAjB,UACE,IAAY,EACZ,OAAgB,EAChB,OAAuB;;QAEvB,OAAO,MAAA,IAAI,CAAC,SAAS,0CAAE,SAAS,CAAC,IAAI,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;IAC3D,CAAC;IACH,0BAAC;AAAD,CAAC,AA/BD,IA+BC","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 { TracerProvider } from './tracer_provider';\nimport { ProxyTracer } from './ProxyTracer';\nimport { NoopTracerProvider } from './NoopTracerProvider';\nimport { TracerOptions } from './tracer_options';\n\nconst NOOP_TRACER_PROVIDER = new NoopTracerProvider();\n\n/**\n * Tracer provider which provides {@link ProxyTracer}s.\n *\n * Before a delegate is set, tracers provided are NoOp.\n * When a delegate is set, traces are provided from the delegate.\n * When a delegate is set after tracers have already been provided,\n * all tracers already provided will use the provided delegate implementation.\n */\nexport class ProxyTracerProvider implements TracerProvider {\n private _delegate?: TracerProvider;\n\n /**\n * Get a {@link ProxyTracer}\n */\n getTracer(name: string, version?: string, options?: TracerOptions): Tracer {\n return (\n this.getDelegateTracer(name, version, options) ??\n new ProxyTracer(this, name, version, options)\n );\n }\n\n getDelegate(): TracerProvider {\n return this._delegate ?? NOOP_TRACER_PROVIDER;\n }\n\n /**\n * Set the delegate tracer provider\n */\n setDelegate(delegate: TracerProvider) {\n this._delegate = delegate;\n }\n\n getDelegateTracer(\n name: string,\n version?: string,\n options?: TracerOptions\n ): Tracer | undefined {\n return this._delegate?.getTracer(name, version, options);\n }\n}\n"]}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
[attributeKey: string]: SpanAttributeValue | undefined;
|
|
3
|
-
}
|
|
1
|
+
import { Attributes, AttributeValue } from '../common/Attributes';
|
|
4
2
|
/**
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
* null or undefined attribute values are invalid and will result in undefined behavior.
|
|
3
|
+
* @deprecated please use {@link Attributes}
|
|
8
4
|
*/
|
|
9
|
-
export declare type
|
|
5
|
+
export declare type SpanAttributes = Attributes;
|
|
6
|
+
/**
|
|
7
|
+
* @deprecated please use {@link AttributeValue}
|
|
8
|
+
*/
|
|
9
|
+
export declare type SpanAttributeValue = AttributeValue;
|
|
10
10
|
//# sourceMappingURL=attributes.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"attributes.js","sourceRoot":"","sources":["../../../src/trace/attributes.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\
|
|
1
|
+
{"version":3,"file":"attributes.js","sourceRoot":"","sources":["../../../src/trace/attributes.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 { Attributes, AttributeValue } from '../common/Attributes';\n\n/**\n * @deprecated please use {@link Attributes}\n */\nexport type SpanAttributes = Attributes;\n\n/**\n * @deprecated please use {@link AttributeValue}\n */\nexport type SpanAttributeValue = AttributeValue;\n"]}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { TraceState } from '../trace_state';
|
|
2
|
+
/**
|
|
3
|
+
* TraceState must be a class and not a simple object type because of the spec
|
|
4
|
+
* requirement (https://www.w3.org/TR/trace-context/#tracestate-field).
|
|
5
|
+
*
|
|
6
|
+
* Here is the list of allowed mutations:
|
|
7
|
+
* - New key-value pair should be added into the beginning of the list
|
|
8
|
+
* - The value of any key can be updated. Modified keys MUST be moved to the
|
|
9
|
+
* beginning of the list.
|
|
10
|
+
*/
|
|
11
|
+
export declare class TraceStateImpl implements TraceState {
|
|
12
|
+
private _internalState;
|
|
13
|
+
constructor(rawTraceState?: string);
|
|
14
|
+
set(key: string, value: string): TraceStateImpl;
|
|
15
|
+
unset(key: string): TraceStateImpl;
|
|
16
|
+
get(key: string): string | undefined;
|
|
17
|
+
serialize(): string;
|
|
18
|
+
private _parse;
|
|
19
|
+
private _keys;
|
|
20
|
+
private _clone;
|
|
21
|
+
}
|
|
22
|
+
//# sourceMappingURL=tracestate-impl.d.ts.map
|
|
@@ -0,0 +1,102 @@
|
|
|
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
|
+
import { validateKey, validateValue } from './tracestate-validators';
|
|
17
|
+
var MAX_TRACE_STATE_ITEMS = 32;
|
|
18
|
+
var MAX_TRACE_STATE_LEN = 512;
|
|
19
|
+
var LIST_MEMBERS_SEPARATOR = ',';
|
|
20
|
+
var LIST_MEMBER_KEY_VALUE_SPLITTER = '=';
|
|
21
|
+
/**
|
|
22
|
+
* TraceState must be a class and not a simple object type because of the spec
|
|
23
|
+
* requirement (https://www.w3.org/TR/trace-context/#tracestate-field).
|
|
24
|
+
*
|
|
25
|
+
* Here is the list of allowed mutations:
|
|
26
|
+
* - New key-value pair should be added into the beginning of the list
|
|
27
|
+
* - The value of any key can be updated. Modified keys MUST be moved to the
|
|
28
|
+
* beginning of the list.
|
|
29
|
+
*/
|
|
30
|
+
var TraceStateImpl = /** @class */ (function () {
|
|
31
|
+
function TraceStateImpl(rawTraceState) {
|
|
32
|
+
this._internalState = new Map();
|
|
33
|
+
if (rawTraceState)
|
|
34
|
+
this._parse(rawTraceState);
|
|
35
|
+
}
|
|
36
|
+
TraceStateImpl.prototype.set = function (key, value) {
|
|
37
|
+
// TODO: Benchmark the different approaches(map vs list) and
|
|
38
|
+
// use the faster one.
|
|
39
|
+
var traceState = this._clone();
|
|
40
|
+
if (traceState._internalState.has(key)) {
|
|
41
|
+
traceState._internalState.delete(key);
|
|
42
|
+
}
|
|
43
|
+
traceState._internalState.set(key, value);
|
|
44
|
+
return traceState;
|
|
45
|
+
};
|
|
46
|
+
TraceStateImpl.prototype.unset = function (key) {
|
|
47
|
+
var traceState = this._clone();
|
|
48
|
+
traceState._internalState.delete(key);
|
|
49
|
+
return traceState;
|
|
50
|
+
};
|
|
51
|
+
TraceStateImpl.prototype.get = function (key) {
|
|
52
|
+
return this._internalState.get(key);
|
|
53
|
+
};
|
|
54
|
+
TraceStateImpl.prototype.serialize = function () {
|
|
55
|
+
var _this = this;
|
|
56
|
+
return this._keys()
|
|
57
|
+
.reduce(function (agg, key) {
|
|
58
|
+
agg.push(key + LIST_MEMBER_KEY_VALUE_SPLITTER + _this.get(key));
|
|
59
|
+
return agg;
|
|
60
|
+
}, [])
|
|
61
|
+
.join(LIST_MEMBERS_SEPARATOR);
|
|
62
|
+
};
|
|
63
|
+
TraceStateImpl.prototype._parse = function (rawTraceState) {
|
|
64
|
+
if (rawTraceState.length > MAX_TRACE_STATE_LEN)
|
|
65
|
+
return;
|
|
66
|
+
this._internalState = rawTraceState
|
|
67
|
+
.split(LIST_MEMBERS_SEPARATOR)
|
|
68
|
+
.reverse() // Store in reverse so new keys (.set(...)) will be placed at the beginning
|
|
69
|
+
.reduce(function (agg, part) {
|
|
70
|
+
var listMember = part.trim(); // Optional Whitespace (OWS) handling
|
|
71
|
+
var i = listMember.indexOf(LIST_MEMBER_KEY_VALUE_SPLITTER);
|
|
72
|
+
if (i !== -1) {
|
|
73
|
+
var key = listMember.slice(0, i);
|
|
74
|
+
var value = listMember.slice(i + 1, part.length);
|
|
75
|
+
if (validateKey(key) && validateValue(value)) {
|
|
76
|
+
agg.set(key, value);
|
|
77
|
+
}
|
|
78
|
+
else {
|
|
79
|
+
// TODO: Consider to add warning log
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
return agg;
|
|
83
|
+
}, new Map());
|
|
84
|
+
// Because of the reverse() requirement, trunc must be done after map is created
|
|
85
|
+
if (this._internalState.size > MAX_TRACE_STATE_ITEMS) {
|
|
86
|
+
this._internalState = new Map(Array.from(this._internalState.entries())
|
|
87
|
+
.reverse() // Use reverse same as original tracestate parse chain
|
|
88
|
+
.slice(0, MAX_TRACE_STATE_ITEMS));
|
|
89
|
+
}
|
|
90
|
+
};
|
|
91
|
+
TraceStateImpl.prototype._keys = function () {
|
|
92
|
+
return Array.from(this._internalState.keys()).reverse();
|
|
93
|
+
};
|
|
94
|
+
TraceStateImpl.prototype._clone = function () {
|
|
95
|
+
var traceState = new TraceStateImpl();
|
|
96
|
+
traceState._internalState = new Map(this._internalState);
|
|
97
|
+
return traceState;
|
|
98
|
+
};
|
|
99
|
+
return TraceStateImpl;
|
|
100
|
+
}());
|
|
101
|
+
export { TraceStateImpl };
|
|
102
|
+
//# sourceMappingURL=tracestate-impl.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tracestate-impl.js","sourceRoot":"","sources":["../../../../src/trace/internal/tracestate-impl.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAErE,IAAM,qBAAqB,GAAG,EAAE,CAAC;AACjC,IAAM,mBAAmB,GAAG,GAAG,CAAC;AAChC,IAAM,sBAAsB,GAAG,GAAG,CAAC;AACnC,IAAM,8BAA8B,GAAG,GAAG,CAAC;AAE3C;;;;;;;;GAQG;AACH;IAGE,wBAAY,aAAsB;QAF1B,mBAAc,GAAwB,IAAI,GAAG,EAAE,CAAC;QAGtD,IAAI,aAAa;YAAE,IAAI,CAAC,MAAM,CAAC,aAAa,CAAC,CAAC;IAChD,CAAC;IAED,4BAAG,GAAH,UAAI,GAAW,EAAE,KAAa;QAC5B,4DAA4D;QAC5D,sBAAsB;QACtB,IAAM,UAAU,GAAG,IAAI,CAAC,MAAM,EAAE,CAAC;QACjC,IAAI,UAAU,CAAC,cAAc,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE;YACtC,UAAU,CAAC,cAAc,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;SACvC;QACD,UAAU,CAAC,cAAc,CAAC,GAAG,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC;QAC1C,OAAO,UAAU,CAAC;IACpB,CAAC;IAED,8BAAK,GAAL,UAAM,GAAW;QACf,IAAM,UAAU,GAAG,IAAI,CAAC,MAAM,EAAE,CAAC;QACjC,UAAU,CAAC,cAAc,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;QACtC,OAAO,UAAU,CAAC;IACpB,CAAC;IAED,4BAAG,GAAH,UAAI,GAAW;QACb,OAAO,IAAI,CAAC,cAAc,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;IACtC,CAAC;IAED,kCAAS,GAAT;QAAA,iBAOC;QANC,OAAO,IAAI,CAAC,KAAK,EAAE;aAChB,MAAM,CAAC,UAAC,GAAa,EAAE,GAAG;YACzB,GAAG,CAAC,IAAI,CAAC,GAAG,GAAG,8BAA8B,GAAG,KAAI,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC;YAC/D,OAAO,GAAG,CAAC;QACb,CAAC,EAAE,EAAE,CAAC;aACL,IAAI,CAAC,sBAAsB,CAAC,CAAC;IAClC,CAAC;IAEO,+BAAM,GAAd,UAAe,aAAqB;QAClC,IAAI,aAAa,CAAC,MAAM,GAAG,mBAAmB;YAAE,OAAO;QACvD,IAAI,CAAC,cAAc,GAAG,aAAa;aAChC,KAAK,CAAC,sBAAsB,CAAC;aAC7B,OAAO,EAAE,CAAC,2EAA2E;aACrF,MAAM,CAAC,UAAC,GAAwB,EAAE,IAAY;YAC7C,IAAM,UAAU,GAAG,IAAI,CAAC,IAAI,EAAE,CAAC,CAAC,qCAAqC;YACrE,IAAM,CAAC,GAAG,UAAU,CAAC,OAAO,CAAC,8BAA8B,CAAC,CAAC;YAC7D,IAAI,CAAC,KAAK,CAAC,CAAC,EAAE;gBACZ,IAAM,GAAG,GAAG,UAAU,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;gBACnC,IAAM,KAAK,GAAG,UAAU,CAAC,KAAK,CAAC,CAAC,GAAG,CAAC,EAAE,IAAI,CAAC,MAAM,CAAC,CAAC;gBACnD,IAAI,WAAW,CAAC,GAAG,CAAC,IAAI,aAAa,CAAC,KAAK,CAAC,EAAE;oBAC5C,GAAG,CAAC,GAAG,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC;iBACrB;qBAAM;oBACL,oCAAoC;iBACrC;aACF;YACD,OAAO,GAAG,CAAC;QACb,CAAC,EAAE,IAAI,GAAG,EAAE,CAAC,CAAC;QAEhB,gFAAgF;QAChF,IAAI,IAAI,CAAC,cAAc,CAAC,IAAI,GAAG,qBAAqB,EAAE;YACpD,IAAI,CAAC,cAAc,GAAG,IAAI,GAAG,CAC3B,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,cAAc,CAAC,OAAO,EAAE,CAAC;iBACtC,OAAO,EAAE,CAAC,sDAAsD;iBAChE,KAAK,CAAC,CAAC,EAAE,qBAAqB,CAAC,CACnC,CAAC;SACH;IACH,CAAC;IAEO,8BAAK,GAAb;QACE,OAAO,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,cAAc,CAAC,IAAI,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC;IAC1D,CAAC;IAEO,+BAAM,GAAd;QACE,IAAM,UAAU,GAAG,IAAI,cAAc,EAAE,CAAC;QACxC,UAAU,CAAC,cAAc,GAAG,IAAI,GAAG,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC;QACzD,OAAO,UAAU,CAAC;IACpB,CAAC;IACH,qBAAC;AAAD,CAAC,AA5ED,IA4EC","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 { TraceState } from '../trace_state';\nimport { validateKey, validateValue } from './tracestate-validators';\n\nconst MAX_TRACE_STATE_ITEMS = 32;\nconst MAX_TRACE_STATE_LEN = 512;\nconst LIST_MEMBERS_SEPARATOR = ',';\nconst LIST_MEMBER_KEY_VALUE_SPLITTER = '=';\n\n/**\n * TraceState must be a class and not a simple object type because of the spec\n * requirement (https://www.w3.org/TR/trace-context/#tracestate-field).\n *\n * Here is the list of allowed mutations:\n * - New key-value pair should be added into the beginning of the list\n * - The value of any key can be updated. Modified keys MUST be moved to the\n * beginning of the list.\n */\nexport class TraceStateImpl implements TraceState {\n private _internalState: Map<string, string> = new Map();\n\n constructor(rawTraceState?: string) {\n if (rawTraceState) this._parse(rawTraceState);\n }\n\n set(key: string, value: string): TraceStateImpl {\n // TODO: Benchmark the different approaches(map vs list) and\n // use the faster one.\n const traceState = this._clone();\n if (traceState._internalState.has(key)) {\n traceState._internalState.delete(key);\n }\n traceState._internalState.set(key, value);\n return traceState;\n }\n\n unset(key: string): TraceStateImpl {\n const traceState = this._clone();\n traceState._internalState.delete(key);\n return traceState;\n }\n\n get(key: string): string | undefined {\n return this._internalState.get(key);\n }\n\n serialize(): string {\n return this._keys()\n .reduce((agg: string[], key) => {\n agg.push(key + LIST_MEMBER_KEY_VALUE_SPLITTER + this.get(key));\n return agg;\n }, [])\n .join(LIST_MEMBERS_SEPARATOR);\n }\n\n private _parse(rawTraceState: string) {\n if (rawTraceState.length > MAX_TRACE_STATE_LEN) return;\n this._internalState = rawTraceState\n .split(LIST_MEMBERS_SEPARATOR)\n .reverse() // Store in reverse so new keys (.set(...)) will be placed at the beginning\n .reduce((agg: Map<string, string>, part: string) => {\n const listMember = part.trim(); // Optional Whitespace (OWS) handling\n const i = listMember.indexOf(LIST_MEMBER_KEY_VALUE_SPLITTER);\n if (i !== -1) {\n const key = listMember.slice(0, i);\n const value = listMember.slice(i + 1, part.length);\n if (validateKey(key) && validateValue(value)) {\n agg.set(key, value);\n } else {\n // TODO: Consider to add warning log\n }\n }\n return agg;\n }, new Map());\n\n // Because of the reverse() requirement, trunc must be done after map is created\n if (this._internalState.size > MAX_TRACE_STATE_ITEMS) {\n this._internalState = new Map(\n Array.from(this._internalState.entries())\n .reverse() // Use reverse same as original tracestate parse chain\n .slice(0, MAX_TRACE_STATE_ITEMS)\n );\n }\n }\n\n private _keys(): string[] {\n return Array.from(this._internalState.keys()).reverse();\n }\n\n private _clone(): TraceStateImpl {\n const traceState = new TraceStateImpl();\n traceState._internalState = new Map(this._internalState);\n return traceState;\n }\n}\n"]}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Key is opaque string up to 256 characters printable. It MUST begin with a
|
|
3
|
+
* lowercase letter, and can only contain lowercase letters a-z, digits 0-9,
|
|
4
|
+
* underscores _, dashes -, asterisks *, and forward slashes /.
|
|
5
|
+
* For multi-tenant vendor scenarios, an at sign (@) can be used to prefix the
|
|
6
|
+
* vendor name. Vendors SHOULD set the tenant ID at the beginning of the key.
|
|
7
|
+
* see https://www.w3.org/TR/trace-context/#key
|
|
8
|
+
*/
|
|
9
|
+
export declare function validateKey(key: string): boolean;
|
|
10
|
+
/**
|
|
11
|
+
* Value is opaque string up to 256 characters printable ASCII RFC0020
|
|
12
|
+
* characters (i.e., the range 0x20 to 0x7E) except comma , and =.
|
|
13
|
+
*/
|
|
14
|
+
export declare function validateValue(value: string): boolean;
|
|
15
|
+
//# sourceMappingURL=tracestate-validators.d.ts.map
|
|
@@ -0,0 +1,41 @@
|
|
|
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
|
+
var VALID_KEY_CHAR_RANGE = '[_0-9a-z-*/]';
|
|
17
|
+
var VALID_KEY = "[a-z]" + VALID_KEY_CHAR_RANGE + "{0,255}";
|
|
18
|
+
var VALID_VENDOR_KEY = "[a-z0-9]" + VALID_KEY_CHAR_RANGE + "{0,240}@[a-z]" + VALID_KEY_CHAR_RANGE + "{0,13}";
|
|
19
|
+
var VALID_KEY_REGEX = new RegExp("^(?:" + VALID_KEY + "|" + VALID_VENDOR_KEY + ")$");
|
|
20
|
+
var VALID_VALUE_BASE_REGEX = /^[ -~]{0,255}[!-~]$/;
|
|
21
|
+
var INVALID_VALUE_COMMA_EQUAL_REGEX = /,|=/;
|
|
22
|
+
/**
|
|
23
|
+
* Key is opaque string up to 256 characters printable. It MUST begin with a
|
|
24
|
+
* lowercase letter, and can only contain lowercase letters a-z, digits 0-9,
|
|
25
|
+
* underscores _, dashes -, asterisks *, and forward slashes /.
|
|
26
|
+
* For multi-tenant vendor scenarios, an at sign (@) can be used to prefix the
|
|
27
|
+
* vendor name. Vendors SHOULD set the tenant ID at the beginning of the key.
|
|
28
|
+
* see https://www.w3.org/TR/trace-context/#key
|
|
29
|
+
*/
|
|
30
|
+
export function validateKey(key) {
|
|
31
|
+
return VALID_KEY_REGEX.test(key);
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Value is opaque string up to 256 characters printable ASCII RFC0020
|
|
35
|
+
* characters (i.e., the range 0x20 to 0x7E) except comma , and =.
|
|
36
|
+
*/
|
|
37
|
+
export function validateValue(value) {
|
|
38
|
+
return (VALID_VALUE_BASE_REGEX.test(value) &&
|
|
39
|
+
!INVALID_VALUE_COMMA_EQUAL_REGEX.test(value));
|
|
40
|
+
}
|
|
41
|
+
//# sourceMappingURL=tracestate-validators.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tracestate-validators.js","sourceRoot":"","sources":["../../../../src/trace/internal/tracestate-validators.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,IAAM,oBAAoB,GAAG,cAAc,CAAC;AAC5C,IAAM,SAAS,GAAG,UAAQ,oBAAoB,YAAS,CAAC;AACxD,IAAM,gBAAgB,GAAG,aAAW,oBAAoB,qBAAgB,oBAAoB,WAAQ,CAAC;AACrG,IAAM,eAAe,GAAG,IAAI,MAAM,CAAC,SAAO,SAAS,SAAI,gBAAgB,OAAI,CAAC,CAAC;AAC7E,IAAM,sBAAsB,GAAG,qBAAqB,CAAC;AACrD,IAAM,+BAA+B,GAAG,KAAK,CAAC;AAE9C;;;;;;;GAOG;AACH,MAAM,UAAU,WAAW,CAAC,GAAW;IACrC,OAAO,eAAe,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AACnC,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,aAAa,CAAC,KAAa;IACzC,OAAO,CACL,sBAAsB,CAAC,IAAI,CAAC,KAAK,CAAC;QAClC,CAAC,+BAA+B,CAAC,IAAI,CAAC,KAAK,CAAC,CAC7C,CAAC;AACJ,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\nconst VALID_KEY_CHAR_RANGE = '[_0-9a-z-*/]';\nconst VALID_KEY = `[a-z]${VALID_KEY_CHAR_RANGE}{0,255}`;\nconst VALID_VENDOR_KEY = `[a-z0-9]${VALID_KEY_CHAR_RANGE}{0,240}@[a-z]${VALID_KEY_CHAR_RANGE}{0,13}`;\nconst VALID_KEY_REGEX = new RegExp(`^(?:${VALID_KEY}|${VALID_VENDOR_KEY})$`);\nconst VALID_VALUE_BASE_REGEX = /^[ -~]{0,255}[!-~]$/;\nconst INVALID_VALUE_COMMA_EQUAL_REGEX = /,|=/;\n\n/**\n * Key is opaque string up to 256 characters printable. It MUST begin with a\n * lowercase letter, and can only contain lowercase letters a-z, digits 0-9,\n * underscores _, dashes -, asterisks *, and forward slashes /.\n * For multi-tenant vendor scenarios, an at sign (@) can be used to prefix the\n * vendor name. Vendors SHOULD set the tenant ID at the beginning of the key.\n * see https://www.w3.org/TR/trace-context/#key\n */\nexport function validateKey(key: string): boolean {\n return VALID_KEY_REGEX.test(key);\n}\n\n/**\n * Value is opaque string up to 256 characters printable ASCII RFC0020\n * characters (i.e., the range 0x20 to 0x7E) except comma , and =.\n */\nexport function validateValue(value: string): boolean {\n return (\n VALID_VALUE_BASE_REGEX.test(value) &&\n !INVALID_VALUE_COMMA_EQUAL_REGEX.test(value)\n );\n}\n"]}
|
|
@@ -0,0 +1,20 @@
|
|
|
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
|
+
import { TraceStateImpl } from './tracestate-impl';
|
|
17
|
+
export function createTraceState(rawTraceState) {
|
|
18
|
+
return new TraceStateImpl(rawTraceState);
|
|
19
|
+
}
|
|
20
|
+
//# sourceMappingURL=utils.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../../src/trace/internal/utils.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAGnD,MAAM,UAAU,gBAAgB,CAAC,aAAsB;IACrD,OAAO,IAAI,cAAc,CAAC,aAAa,CAAC,CAAC;AAC3C,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\nimport { TraceState } from '../trace_state';\nimport { TraceStateImpl } from './tracestate-impl';\n\n\nexport function createTraceState(rawTraceState?: string): TraceState {\n return new TraceStateImpl(rawTraceState);\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"]}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Tracer } from './tracer';
|
|
2
|
+
import { TracerOptions } from './tracer_options';
|
|
2
3
|
/**
|
|
3
4
|
* A registry for creating named {@link Tracer}s.
|
|
4
5
|
*/
|
|
@@ -12,8 +13,9 @@ export interface TracerProvider {
|
|
|
12
13
|
*
|
|
13
14
|
* @param name The name of the tracer or instrumentation library.
|
|
14
15
|
* @param version The version of the tracer or instrumentation library.
|
|
16
|
+
* @param options The options of the tracer or instrumentation library.
|
|
15
17
|
* @returns Tracer A Tracer with the given name and version
|
|
16
18
|
*/
|
|
17
|
-
getTracer(name: string, version?: string): Tracer;
|
|
19
|
+
getTracer(name: string, version?: string, options?: TracerOptions): Tracer;
|
|
18
20
|
}
|
|
19
21
|
//# sourceMappingURL=tracer_provider.d.ts.map
|