Spaces:
Paused
Paused
Upload folder using huggingface_hub (part 13)
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
- node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/src/trace-api.d.ts +4 -0
- node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/src/trace-api.js +24 -0
- node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/src/trace-api.js.map +1 -0
- node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/src/trace/context-utils.js.map +1 -0
- node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/src/trace/internal/tracestate-impl.d.ts +22 -0
- node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/src/trace/internal/tracestate-impl.js +103 -0
- node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/src/trace/internal/tracestate-impl.js.map +1 -0
- node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/src/trace/internal/tracestate-validators.d.ts +15 -0
- node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/src/trace/internal/tracestate-validators.js +46 -0
- node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/src/trace/internal/tracestate-validators.js.map +1 -0
- node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/src/trace/internal/utils.d.ts +3 -0
- node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/src/trace/internal/utils.js +24 -0
- node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/src/trace/internal/utils.js.map +1 -0
- node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/src/trace/invalid-span-constants.d.ts +5 -0
- node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/src/trace/invalid-span-constants.js +27 -0
- node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/src/trace/invalid-span-constants.js.map +1 -0
- node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/src/trace/link.d.ts +26 -0
- node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/src/trace/link.js +18 -0
- node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/src/trace/link.js.map +1 -0
- node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/src/trace/span.d.ts +120 -0
- node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/src/trace/span.js +18 -0
- node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/src/trace/span.js.map +1 -0
- node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/src/trace/span_context.d.ts +53 -0
- node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/src/trace/span_context.js +18 -0
- node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/src/trace/span_context.js.map +1 -0
- node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/src/trace/span_kind.d.ts +27 -0
- node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/src/trace/span_kind.js +46 -0
- node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/src/trace/span_kind.js.map +1 -0
- node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/src/trace/spancontext-utils.d.ts +17 -0
- node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/src/trace/spancontext-utils.js +49 -0
- node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/src/trace/spancontext-utils.js.map +1 -0
- node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/src/trace/status.d.ts +25 -0
- node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/src/trace/status.js +23 -0
- node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/src/trace/status.js.map +1 -0
- node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/src/trace/trace_flags.d.ts +7 -0
- node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/src/trace/trace_flags.js +26 -0
- node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/src/trace/trace_flags.js.map +1 -0
- node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/src/trace/trace_state.d.ts +38 -0
- node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/src/trace/trace_state.js +18 -0
- node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/src/trace/trace_state.js.map +1 -0
- node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/src/trace/tracer.d.ts +71 -0
- node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/src/trace/tracer.js +18 -0
- node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/src/trace/tracer.js.map +1 -0
- node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/src/trace/tracer_options.d.ts +10 -0
- node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/src/trace/tracer_options.js +18 -0
- node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/src/trace/tracer_options.js.map +1 -0
- node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/src/trace/tracer_provider.d.ts +21 -0
- node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/src/trace/tracer_provider.js +18 -0
- node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/src/trace/tracer_provider.js.map +1 -0
- node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/src/version.d.ts +2 -0
node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/src/trace-api.d.ts
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import { TraceAPI } from './api/trace';
|
| 2 |
+
/** Entrypoint for trace API */
|
| 3 |
+
export declare const trace: TraceAPI;
|
| 4 |
+
//# sourceMappingURL=trace-api.d.ts.map
|
node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/src/trace-api.js
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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.trace = void 0;
|
| 19 |
+
// Split module-level variable definition into separate files to allow
|
| 20 |
+
// tree-shaking on each api instance.
|
| 21 |
+
const trace_1 = require("./api/trace");
|
| 22 |
+
/** Entrypoint for trace API */
|
| 23 |
+
exports.trace = trace_1.TraceAPI.getInstance();
|
| 24 |
+
//# sourceMappingURL=trace-api.js.map
|
node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/src/trace-api.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"version":3,"file":"trace-api.js","sourceRoot":"","sources":["../../src/trace-api.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAEH,sEAAsE;AACtE,qCAAqC;AACrC,uCAAuC;AACvC,+BAA+B;AAClB,QAAA,KAAK,GAAG,gBAAQ,CAAC,WAAW,EAAE,CAAC","sourcesContent":["/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n// Split module-level variable definition into separate files to allow\n// tree-shaking on each api instance.\nimport { TraceAPI } from './api/trace';\n/** Entrypoint for trace API */\nexport const trace = TraceAPI.getInstance();\n"]}
|
node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/src/trace/context-utils.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"version":3,"file":"context-utils.js","sourceRoot":"","sources":["../../../src/trace/context-utils.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAEH,gDAAsD;AAItD,yDAAsD;AACtD,4CAA4C;AAE5C;;GAEG;AACH,MAAM,QAAQ,GAAG,IAAA,0BAAgB,EAAC,gCAAgC,CAAC,CAAC;AAEpE;;;;GAIG;AACH,SAAgB,OAAO,CAAC,OAAgB;IACtC,OAAQ,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAU,IAAI,SAAS,CAAC;AAC3D,CAAC;AAFD,0BAEC;AAED;;GAEG;AACH,SAAgB,aAAa;IAC3B,OAAO,OAAO,CAAC,oBAAU,CAAC,WAAW,EAAE,CAAC,MAAM,EAAE,CAAC,CAAC;AACpD,CAAC;AAFD,sCAEC;AAED;;;;;GAKG;AACH,SAAgB,OAAO,CAAC,OAAgB,EAAE,IAAU;IAClD,OAAO,OAAO,CAAC,QAAQ,CAAC,QAAQ,EAAE,IAAI,CAAC,CAAC;AAC1C,CAAC;AAFD,0BAEC;AAED;;;;GAIG;AACH,SAAgB,UAAU,CAAC,OAAgB;IACzC,OAAO,OAAO,CAAC,WAAW,CAAC,QAAQ,CAAC,CAAC;AACvC,CAAC;AAFD,gCAEC;AAED;;;;;;GAMG;AACH,SAAgB,cAAc,CAC5B,OAAgB,EAChB,WAAwB;IAExB,OAAO,OAAO,CAAC,OAAO,EAAE,IAAI,mCAAgB,CAAC,WAAW,CAAC,CAAC,CAAC;AAC7D,CAAC;AALD,wCAKC;AAED;;;;GAIG;AACH,SAAgB,cAAc,CAAC,OAAgB;;IAC7C,OAAO,MAAA,OAAO,CAAC,OAAO,CAAC,0CAAE,WAAW,EAAE,CAAC;AACzC,CAAC;AAFD,wCAEC","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 { createContextKey } from '../context/context';\nimport { Context } from '../context/types';\nimport { Span } from './span';\nimport { SpanContext } from './span_context';\nimport { NonRecordingSpan } from './NonRecordingSpan';\nimport { ContextAPI } from '../api/context';\n\n/**\n * span key\n */\nconst SPAN_KEY = createContextKey('OpenTelemetry Context Key SPAN');\n\n/**\n * Return the span if one exists\n *\n * @param context context to get span from\n */\nexport function getSpan(context: Context): Span | undefined {\n return (context.getValue(SPAN_KEY) as Span) || undefined;\n}\n\n/**\n * Gets the span from the current context, if one exists.\n */\nexport function getActiveSpan(): Span | undefined {\n return getSpan(ContextAPI.getInstance().active());\n}\n\n/**\n * Set the span on a context\n *\n * @param context context to use as parent\n * @param span span to set active\n */\nexport function setSpan(context: Context, span: Span): Context {\n return context.setValue(SPAN_KEY, span);\n}\n\n/**\n * Remove current span stored in the context\n *\n * @param context context to delete span from\n */\nexport function deleteSpan(context: Context): Context {\n return context.deleteValue(SPAN_KEY);\n}\n\n/**\n * Wrap span context in a NoopSpan and set as span in a new\n * context\n *\n * @param context context to set active span on\n * @param spanContext span context to be wrapped\n */\nexport function setSpanContext(\n context: Context,\n spanContext: SpanContext\n): Context {\n return setSpan(context, new NonRecordingSpan(spanContext));\n}\n\n/**\n * Get the span context of the span if it exists.\n *\n * @param context context to get values from\n */\nexport function getSpanContext(context: Context): SpanContext | undefined {\n return getSpan(context)?.spanContext();\n}\n"]}
|
node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/src/trace/internal/tracestate-impl.d.ts
ADDED
|
@@ -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
|
node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/src/trace/internal/tracestate-impl.js
ADDED
|
@@ -0,0 +1,103 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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.TraceStateImpl = void 0;
|
| 19 |
+
const tracestate_validators_1 = require("./tracestate-validators");
|
| 20 |
+
const MAX_TRACE_STATE_ITEMS = 32;
|
| 21 |
+
const MAX_TRACE_STATE_LEN = 512;
|
| 22 |
+
const LIST_MEMBERS_SEPARATOR = ',';
|
| 23 |
+
const LIST_MEMBER_KEY_VALUE_SPLITTER = '=';
|
| 24 |
+
/**
|
| 25 |
+
* TraceState must be a class and not a simple object type because of the spec
|
| 26 |
+
* requirement (https://www.w3.org/TR/trace-context/#tracestate-field).
|
| 27 |
+
*
|
| 28 |
+
* Here is the list of allowed mutations:
|
| 29 |
+
* - New key-value pair should be added into the beginning of the list
|
| 30 |
+
* - The value of any key can be updated. Modified keys MUST be moved to the
|
| 31 |
+
* beginning of the list.
|
| 32 |
+
*/
|
| 33 |
+
class TraceStateImpl {
|
| 34 |
+
constructor(rawTraceState) {
|
| 35 |
+
this._internalState = new Map();
|
| 36 |
+
if (rawTraceState)
|
| 37 |
+
this._parse(rawTraceState);
|
| 38 |
+
}
|
| 39 |
+
set(key, value) {
|
| 40 |
+
// TODO: Benchmark the different approaches(map vs list) and
|
| 41 |
+
// use the faster one.
|
| 42 |
+
const traceState = this._clone();
|
| 43 |
+
if (traceState._internalState.has(key)) {
|
| 44 |
+
traceState._internalState.delete(key);
|
| 45 |
+
}
|
| 46 |
+
traceState._internalState.set(key, value);
|
| 47 |
+
return traceState;
|
| 48 |
+
}
|
| 49 |
+
unset(key) {
|
| 50 |
+
const traceState = this._clone();
|
| 51 |
+
traceState._internalState.delete(key);
|
| 52 |
+
return traceState;
|
| 53 |
+
}
|
| 54 |
+
get(key) {
|
| 55 |
+
return this._internalState.get(key);
|
| 56 |
+
}
|
| 57 |
+
serialize() {
|
| 58 |
+
return this._keys()
|
| 59 |
+
.reduce((agg, key) => {
|
| 60 |
+
agg.push(key + LIST_MEMBER_KEY_VALUE_SPLITTER + this.get(key));
|
| 61 |
+
return agg;
|
| 62 |
+
}, [])
|
| 63 |
+
.join(LIST_MEMBERS_SEPARATOR);
|
| 64 |
+
}
|
| 65 |
+
_parse(rawTraceState) {
|
| 66 |
+
if (rawTraceState.length > MAX_TRACE_STATE_LEN)
|
| 67 |
+
return;
|
| 68 |
+
this._internalState = rawTraceState
|
| 69 |
+
.split(LIST_MEMBERS_SEPARATOR)
|
| 70 |
+
.reverse() // Store in reverse so new keys (.set(...)) will be placed at the beginning
|
| 71 |
+
.reduce((agg, part) => {
|
| 72 |
+
const listMember = part.trim(); // Optional Whitespace (OWS) handling
|
| 73 |
+
const i = listMember.indexOf(LIST_MEMBER_KEY_VALUE_SPLITTER);
|
| 74 |
+
if (i !== -1) {
|
| 75 |
+
const key = listMember.slice(0, i);
|
| 76 |
+
const value = listMember.slice(i + 1, part.length);
|
| 77 |
+
if ((0, tracestate_validators_1.validateKey)(key) && (0, tracestate_validators_1.validateValue)(value)) {
|
| 78 |
+
agg.set(key, value);
|
| 79 |
+
}
|
| 80 |
+
else {
|
| 81 |
+
// TODO: Consider to add warning log
|
| 82 |
+
}
|
| 83 |
+
}
|
| 84 |
+
return agg;
|
| 85 |
+
}, new Map());
|
| 86 |
+
// Because of the reverse() requirement, trunc must be done after map is created
|
| 87 |
+
if (this._internalState.size > MAX_TRACE_STATE_ITEMS) {
|
| 88 |
+
this._internalState = new Map(Array.from(this._internalState.entries())
|
| 89 |
+
.reverse() // Use reverse same as original tracestate parse chain
|
| 90 |
+
.slice(0, MAX_TRACE_STATE_ITEMS));
|
| 91 |
+
}
|
| 92 |
+
}
|
| 93 |
+
_keys() {
|
| 94 |
+
return Array.from(this._internalState.keys()).reverse();
|
| 95 |
+
}
|
| 96 |
+
_clone() {
|
| 97 |
+
const traceState = new TraceStateImpl();
|
| 98 |
+
traceState._internalState = new Map(this._internalState);
|
| 99 |
+
return traceState;
|
| 100 |
+
}
|
| 101 |
+
}
|
| 102 |
+
exports.TraceStateImpl = TraceStateImpl;
|
| 103 |
+
//# sourceMappingURL=tracestate-impl.js.map
|
node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/src/trace/internal/tracestate-impl.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"version":3,"file":"tracestate-impl.js","sourceRoot":"","sources":["../../../../src/trace/internal/tracestate-impl.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAGH,mEAAqE;AAErE,MAAM,qBAAqB,GAAG,EAAE,CAAC;AACjC,MAAM,mBAAmB,GAAG,GAAG,CAAC;AAChC,MAAM,sBAAsB,GAAG,GAAG,CAAC;AACnC,MAAM,8BAA8B,GAAG,GAAG,CAAC;AAE3C;;;;;;;;GAQG;AACH,MAAa,cAAc;IAGzB,YAAY,aAAsB;QAF1B,mBAAc,GAAwB,IAAI,GAAG,EAAE,CAAC;QAGtD,IAAI,aAAa;YAAE,IAAI,CAAC,MAAM,CAAC,aAAa,CAAC,CAAC;IAChD,CAAC;IAED,GAAG,CAAC,GAAW,EAAE,KAAa;QAC5B,4DAA4D;QAC5D,sBAAsB;QACtB,MAAM,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,KAAK,CAAC,GAAW;QACf,MAAM,UAAU,GAAG,IAAI,CAAC,MAAM,EAAE,CAAC;QACjC,UAAU,CAAC,cAAc,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;QACtC,OAAO,UAAU,CAAC;IACpB,CAAC;IAED,GAAG,CAAC,GAAW;QACb,OAAO,IAAI,CAAC,cAAc,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;IACtC,CAAC;IAED,SAAS;QACP,OAAO,IAAI,CAAC,KAAK,EAAE;aAChB,MAAM,CAAC,CAAC,GAAa,EAAE,GAAG,EAAE,EAAE;YAC7B,GAAG,CAAC,IAAI,CAAC,GAAG,GAAG,8BAA8B,GAAG,IAAI,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,MAAM,CAAC,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,CAAC,GAAwB,EAAE,IAAY,EAAE,EAAE;YACjD,MAAM,UAAU,GAAG,IAAI,CAAC,IAAI,EAAE,CAAC,CAAC,qCAAqC;YACrE,MAAM,CAAC,GAAG,UAAU,CAAC,OAAO,CAAC,8BAA8B,CAAC,CAAC;YAC7D,IAAI,CAAC,KAAK,CAAC,CAAC,EAAE;gBACZ,MAAM,GAAG,GAAG,UAAU,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;gBACnC,MAAM,KAAK,GAAG,UAAU,CAAC,KAAK,CAAC,CAAC,GAAG,CAAC,EAAE,IAAI,CAAC,MAAM,CAAC,CAAC;gBACnD,IAAI,IAAA,mCAAW,EAAC,GAAG,CAAC,IAAI,IAAA,qCAAa,EAAC,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,KAAK;QACX,OAAO,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,cAAc,CAAC,IAAI,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC;IAC1D,CAAC;IAEO,MAAM;QACZ,MAAM,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;CACF;AA5ED,wCA4EC","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"]}
|
node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/src/trace/internal/tracestate-validators.d.ts
ADDED
|
@@ -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
|
node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/src/trace/internal/tracestate-validators.js
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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.validateValue = exports.validateKey = void 0;
|
| 19 |
+
const VALID_KEY_CHAR_RANGE = '[_0-9a-z-*/]';
|
| 20 |
+
const VALID_KEY = `[a-z]${VALID_KEY_CHAR_RANGE}{0,255}`;
|
| 21 |
+
const VALID_VENDOR_KEY = `[a-z0-9]${VALID_KEY_CHAR_RANGE}{0,240}@[a-z]${VALID_KEY_CHAR_RANGE}{0,13}`;
|
| 22 |
+
const VALID_KEY_REGEX = new RegExp(`^(?:${VALID_KEY}|${VALID_VENDOR_KEY})$`);
|
| 23 |
+
const VALID_VALUE_BASE_REGEX = /^[ -~]{0,255}[!-~]$/;
|
| 24 |
+
const INVALID_VALUE_COMMA_EQUAL_REGEX = /,|=/;
|
| 25 |
+
/**
|
| 26 |
+
* Key is opaque string up to 256 characters printable. It MUST begin with a
|
| 27 |
+
* lowercase letter, and can only contain lowercase letters a-z, digits 0-9,
|
| 28 |
+
* underscores _, dashes -, asterisks *, and forward slashes /.
|
| 29 |
+
* For multi-tenant vendor scenarios, an at sign (@) can be used to prefix the
|
| 30 |
+
* vendor name. Vendors SHOULD set the tenant ID at the beginning of the key.
|
| 31 |
+
* see https://www.w3.org/TR/trace-context/#key
|
| 32 |
+
*/
|
| 33 |
+
function validateKey(key) {
|
| 34 |
+
return VALID_KEY_REGEX.test(key);
|
| 35 |
+
}
|
| 36 |
+
exports.validateKey = validateKey;
|
| 37 |
+
/**
|
| 38 |
+
* Value is opaque string up to 256 characters printable ASCII RFC0020
|
| 39 |
+
* characters (i.e., the range 0x20 to 0x7E) except comma , and =.
|
| 40 |
+
*/
|
| 41 |
+
function validateValue(value) {
|
| 42 |
+
return (VALID_VALUE_BASE_REGEX.test(value) &&
|
| 43 |
+
!INVALID_VALUE_COMMA_EQUAL_REGEX.test(value));
|
| 44 |
+
}
|
| 45 |
+
exports.validateValue = validateValue;
|
| 46 |
+
//# sourceMappingURL=tracestate-validators.js.map
|
node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/src/trace/internal/tracestate-validators.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"version":3,"file":"tracestate-validators.js","sourceRoot":"","sources":["../../../../src/trace/internal/tracestate-validators.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAEH,MAAM,oBAAoB,GAAG,cAAc,CAAC;AAC5C,MAAM,SAAS,GAAG,QAAQ,oBAAoB,SAAS,CAAC;AACxD,MAAM,gBAAgB,GAAG,WAAW,oBAAoB,gBAAgB,oBAAoB,QAAQ,CAAC;AACrG,MAAM,eAAe,GAAG,IAAI,MAAM,CAAC,OAAO,SAAS,IAAI,gBAAgB,IAAI,CAAC,CAAC;AAC7E,MAAM,sBAAsB,GAAG,qBAAqB,CAAC;AACrD,MAAM,+BAA+B,GAAG,KAAK,CAAC;AAE9C;;;;;;;GAOG;AACH,SAAgB,WAAW,CAAC,GAAW;IACrC,OAAO,eAAe,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AACnC,CAAC;AAFD,kCAEC;AAED;;;GAGG;AACH,SAAgB,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;AALD,sCAKC","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"]}
|
node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/src/trace/internal/utils.d.ts
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import { TraceState } from '../trace_state';
|
| 2 |
+
export declare function createTraceState(rawTraceState?: string): TraceState;
|
| 3 |
+
//# sourceMappingURL=utils.d.ts.map
|
node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/src/trace/internal/utils.js
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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.createTraceState = void 0;
|
| 19 |
+
const tracestate_impl_1 = require("./tracestate-impl");
|
| 20 |
+
function createTraceState(rawTraceState) {
|
| 21 |
+
return new tracestate_impl_1.TraceStateImpl(rawTraceState);
|
| 22 |
+
}
|
| 23 |
+
exports.createTraceState = createTraceState;
|
| 24 |
+
//# sourceMappingURL=utils.js.map
|
node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/src/trace/internal/utils.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../../src/trace/internal/utils.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAGH,uDAAmD;AAEnD,SAAgB,gBAAgB,CAAC,aAAsB;IACrD,OAAO,IAAI,gCAAc,CAAC,aAAa,CAAC,CAAC;AAC3C,CAAC;AAFD,4CAEC","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\nexport function createTraceState(rawTraceState?: string): TraceState {\n return new TraceStateImpl(rawTraceState);\n}\n"]}
|
node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/src/trace/invalid-span-constants.d.ts
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import { SpanContext } from './span_context';
|
| 2 |
+
export declare const INVALID_SPANID = "0000000000000000";
|
| 3 |
+
export declare const INVALID_TRACEID = "00000000000000000000000000000000";
|
| 4 |
+
export declare const INVALID_SPAN_CONTEXT: SpanContext;
|
| 5 |
+
//# sourceMappingURL=invalid-span-constants.d.ts.map
|
node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/src/trace/invalid-span-constants.js
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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.INVALID_SPAN_CONTEXT = exports.INVALID_TRACEID = exports.INVALID_SPANID = void 0;
|
| 19 |
+
const trace_flags_1 = require("./trace_flags");
|
| 20 |
+
exports.INVALID_SPANID = '0000000000000000';
|
| 21 |
+
exports.INVALID_TRACEID = '00000000000000000000000000000000';
|
| 22 |
+
exports.INVALID_SPAN_CONTEXT = {
|
| 23 |
+
traceId: exports.INVALID_TRACEID,
|
| 24 |
+
spanId: exports.INVALID_SPANID,
|
| 25 |
+
traceFlags: trace_flags_1.TraceFlags.NONE,
|
| 26 |
+
};
|
| 27 |
+
//# sourceMappingURL=invalid-span-constants.js.map
|
node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/src/trace/invalid-span-constants.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"version":3,"file":"invalid-span-constants.js","sourceRoot":"","sources":["../../../src/trace/invalid-span-constants.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAGH,+CAA2C;AAE9B,QAAA,cAAc,GAAG,kBAAkB,CAAC;AACpC,QAAA,eAAe,GAAG,kCAAkC,CAAC;AACrD,QAAA,oBAAoB,GAAgB;IAC/C,OAAO,EAAE,uBAAe;IACxB,MAAM,EAAE,sBAAc;IACtB,UAAU,EAAE,wBAAU,CAAC,IAAI;CAC5B,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 { SpanContext } from './span_context';\nimport { TraceFlags } from './trace_flags';\n\nexport const INVALID_SPANID = '0000000000000000';\nexport const INVALID_TRACEID = '00000000000000000000000000000000';\nexport const INVALID_SPAN_CONTEXT: SpanContext = {\n traceId: INVALID_TRACEID,\n spanId: INVALID_SPANID,\n traceFlags: TraceFlags.NONE,\n};\n"]}
|
node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/src/trace/link.d.ts
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import { SpanAttributes } from './attributes';
|
| 2 |
+
import { SpanContext } from './span_context';
|
| 3 |
+
/**
|
| 4 |
+
* A pointer from the current {@link Span} to another span in the same trace or
|
| 5 |
+
* in a different trace.
|
| 6 |
+
* Few examples of Link usage.
|
| 7 |
+
* 1. Batch Processing: A batch of elements may contain elements associated
|
| 8 |
+
* with one or more traces/spans. Since there can only be one parent
|
| 9 |
+
* SpanContext, Link is used to keep reference to SpanContext of all
|
| 10 |
+
* elements in the batch.
|
| 11 |
+
* 2. Public Endpoint: A SpanContext in incoming client request on a public
|
| 12 |
+
* endpoint is untrusted from service provider perspective. In such case it
|
| 13 |
+
* is advisable to start a new trace with appropriate sampling decision.
|
| 14 |
+
* However, it is desirable to associate incoming SpanContext to new trace
|
| 15 |
+
* initiated on service provider side so two traces (from Client and from
|
| 16 |
+
* Service Provider) can be correlated.
|
| 17 |
+
*/
|
| 18 |
+
export interface Link {
|
| 19 |
+
/** The {@link SpanContext} of a linked span. */
|
| 20 |
+
context: SpanContext;
|
| 21 |
+
/** A set of {@link SpanAttributes} on the link. */
|
| 22 |
+
attributes?: SpanAttributes;
|
| 23 |
+
/** Count of attributes of the link that were dropped due to collection limits */
|
| 24 |
+
droppedAttributesCount?: number;
|
| 25 |
+
}
|
| 26 |
+
//# sourceMappingURL=link.d.ts.map
|
node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/src/trace/link.js
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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 |
+
//# sourceMappingURL=link.js.map
|
node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/src/trace/link.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"version":3,"file":"link.js","sourceRoot":"","sources":["../../../src/trace/link.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 { SpanAttributes } from './attributes';\nimport { SpanContext } from './span_context';\n\n/**\n * A pointer from the current {@link Span} to another span in the same trace or\n * in a different trace.\n * Few examples of Link usage.\n * 1. Batch Processing: A batch of elements may contain elements associated\n * with one or more traces/spans. Since there can only be one parent\n * SpanContext, Link is used to keep reference to SpanContext of all\n * elements in the batch.\n * 2. Public Endpoint: A SpanContext in incoming client request on a public\n * endpoint is untrusted from service provider perspective. In such case it\n * is advisable to start a new trace with appropriate sampling decision.\n * However, it is desirable to associate incoming SpanContext to new trace\n * initiated on service provider side so two traces (from Client and from\n * Service Provider) can be correlated.\n */\nexport interface Link {\n /** The {@link SpanContext} of a linked span. */\n context: SpanContext;\n /** A set of {@link SpanAttributes} on the link. */\n attributes?: SpanAttributes;\n /** Count of attributes of the link that were dropped due to collection limits */\n droppedAttributesCount?: number;\n}\n"]}
|
node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/src/trace/span.d.ts
ADDED
|
@@ -0,0 +1,120 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import { Exception } from '../common/Exception';
|
| 2 |
+
import { TimeInput } from '../common/Time';
|
| 3 |
+
import { SpanAttributes, SpanAttributeValue } from './attributes';
|
| 4 |
+
import { SpanContext } from './span_context';
|
| 5 |
+
import { SpanStatus } from './status';
|
| 6 |
+
import { Link } from './link';
|
| 7 |
+
/**
|
| 8 |
+
* An interface that represents a span. A span represents a single operation
|
| 9 |
+
* within a trace. Examples of span might include remote procedure calls or a
|
| 10 |
+
* in-process function calls to sub-components. A Trace has a single, top-level
|
| 11 |
+
* "root" Span that in turn may have zero or more child Spans, which in turn
|
| 12 |
+
* may have children.
|
| 13 |
+
*
|
| 14 |
+
* Spans are created by the {@link Tracer.startSpan} method.
|
| 15 |
+
*/
|
| 16 |
+
export interface Span {
|
| 17 |
+
/**
|
| 18 |
+
* Returns the {@link SpanContext} object associated with this Span.
|
| 19 |
+
*
|
| 20 |
+
* Get an immutable, serializable identifier for this span that can be used
|
| 21 |
+
* to create new child spans. Returned SpanContext is usable even after the
|
| 22 |
+
* span ends.
|
| 23 |
+
*
|
| 24 |
+
* @returns the SpanContext object associated with this Span.
|
| 25 |
+
*/
|
| 26 |
+
spanContext(): SpanContext;
|
| 27 |
+
/**
|
| 28 |
+
* Sets an attribute to the span.
|
| 29 |
+
*
|
| 30 |
+
* Sets a single Attribute with the key and value passed as arguments.
|
| 31 |
+
*
|
| 32 |
+
* @param key the key for this attribute.
|
| 33 |
+
* @param value the value for this attribute. Setting a value null or
|
| 34 |
+
* undefined is invalid and will result in undefined behavior.
|
| 35 |
+
*/
|
| 36 |
+
setAttribute(key: string, value: SpanAttributeValue): this;
|
| 37 |
+
/**
|
| 38 |
+
* Sets attributes to the span.
|
| 39 |
+
*
|
| 40 |
+
* @param attributes the attributes that will be added.
|
| 41 |
+
* null or undefined attribute values
|
| 42 |
+
* are invalid and will result in undefined behavior.
|
| 43 |
+
*/
|
| 44 |
+
setAttributes(attributes: SpanAttributes): this;
|
| 45 |
+
/**
|
| 46 |
+
* Adds an event to the Span.
|
| 47 |
+
*
|
| 48 |
+
* @param name the name of the event.
|
| 49 |
+
* @param [attributesOrStartTime] the attributes that will be added; these are
|
| 50 |
+
* associated with this event. Can be also a start time
|
| 51 |
+
* if type is {@type TimeInput} and 3rd param is undefined
|
| 52 |
+
* @param [startTime] start time of the event.
|
| 53 |
+
*/
|
| 54 |
+
addEvent(name: string, attributesOrStartTime?: SpanAttributes | TimeInput, startTime?: TimeInput): this;
|
| 55 |
+
/**
|
| 56 |
+
* Adds a single link to the span.
|
| 57 |
+
*
|
| 58 |
+
* Links added after the creation will not affect the sampling decision.
|
| 59 |
+
* It is preferred span links be added at span creation.
|
| 60 |
+
*
|
| 61 |
+
* @param link the link to add.
|
| 62 |
+
*/
|
| 63 |
+
addLink(link: Link): this;
|
| 64 |
+
/**
|
| 65 |
+
* Adds multiple links to the span.
|
| 66 |
+
*
|
| 67 |
+
* Links added after the creation will not affect the sampling decision.
|
| 68 |
+
* It is preferred span links be added at span creation.
|
| 69 |
+
*
|
| 70 |
+
* @param links the links to add.
|
| 71 |
+
*/
|
| 72 |
+
addLinks(links: Link[]): this;
|
| 73 |
+
/**
|
| 74 |
+
* Sets a status to the span. If used, this will override the default Span
|
| 75 |
+
* status. Default is {@link SpanStatusCode.UNSET}. SetStatus overrides the value
|
| 76 |
+
* of previous calls to SetStatus on the Span.
|
| 77 |
+
*
|
| 78 |
+
* @param status the SpanStatus to set.
|
| 79 |
+
*/
|
| 80 |
+
setStatus(status: SpanStatus): this;
|
| 81 |
+
/**
|
| 82 |
+
* Updates the Span name.
|
| 83 |
+
*
|
| 84 |
+
* This will override the name provided via {@link Tracer.startSpan}.
|
| 85 |
+
*
|
| 86 |
+
* Upon this update, any sampling behavior based on Span name will depend on
|
| 87 |
+
* the implementation.
|
| 88 |
+
*
|
| 89 |
+
* @param name the Span name.
|
| 90 |
+
*/
|
| 91 |
+
updateName(name: string): this;
|
| 92 |
+
/**
|
| 93 |
+
* Marks the end of Span execution.
|
| 94 |
+
*
|
| 95 |
+
* Call to End of a Span MUST not have any effects on child spans. Those may
|
| 96 |
+
* still be running and can be ended later.
|
| 97 |
+
*
|
| 98 |
+
* Do not return `this`. The Span generally should not be used after it
|
| 99 |
+
* is ended so chaining is not desired in this context.
|
| 100 |
+
*
|
| 101 |
+
* @param [endTime] the time to set as Span's end time. If not provided,
|
| 102 |
+
* use the current time as the span's end time.
|
| 103 |
+
*/
|
| 104 |
+
end(endTime?: TimeInput): void;
|
| 105 |
+
/**
|
| 106 |
+
* Returns the flag whether this span will be recorded.
|
| 107 |
+
*
|
| 108 |
+
* @returns true if this Span is active and recording information like events
|
| 109 |
+
* with the `AddEvent` operation and attributes using `setAttributes`.
|
| 110 |
+
*/
|
| 111 |
+
isRecording(): boolean;
|
| 112 |
+
/**
|
| 113 |
+
* Sets exception as a span event
|
| 114 |
+
* @param exception the exception the only accepted values are string or Error
|
| 115 |
+
* @param [time] the time to set as Span's event time. If not provided,
|
| 116 |
+
* use the current time.
|
| 117 |
+
*/
|
| 118 |
+
recordException(exception: Exception, time?: TimeInput): void;
|
| 119 |
+
}
|
| 120 |
+
//# sourceMappingURL=span.d.ts.map
|
node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/src/trace/span.js
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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 |
+
//# sourceMappingURL=span.js.map
|
node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/src/trace/span.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"version":3,"file":"span.js","sourceRoot":"","sources":["../../../src/trace/span.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 { Exception } from '../common/Exception';\nimport { TimeInput } from '../common/Time';\nimport { SpanAttributes, SpanAttributeValue } from './attributes';\nimport { SpanContext } from './span_context';\nimport { SpanStatus } from './status';\nimport { Link } from './link';\n\n/**\n * An interface that represents a span. A span represents a single operation\n * within a trace. Examples of span might include remote procedure calls or a\n * in-process function calls to sub-components. A Trace has a single, top-level\n * \"root\" Span that in turn may have zero or more child Spans, which in turn\n * may have children.\n *\n * Spans are created by the {@link Tracer.startSpan} method.\n */\nexport interface Span {\n /**\n * Returns the {@link SpanContext} object associated with this Span.\n *\n * Get an immutable, serializable identifier for this span that can be used\n * to create new child spans. Returned SpanContext is usable even after the\n * span ends.\n *\n * @returns the SpanContext object associated with this Span.\n */\n spanContext(): SpanContext;\n\n /**\n * Sets an attribute to the span.\n *\n * Sets a single Attribute with the key and value passed as arguments.\n *\n * @param key the key for this attribute.\n * @param value the value for this attribute. Setting a value null or\n * undefined is invalid and will result in undefined behavior.\n */\n setAttribute(key: string, value: SpanAttributeValue): this;\n\n /**\n * Sets attributes to the span.\n *\n * @param attributes the attributes that will be added.\n * null or undefined attribute values\n * are invalid and will result in undefined behavior.\n */\n setAttributes(attributes: SpanAttributes): this;\n\n /**\n * Adds an event to the Span.\n *\n * @param name the name of the event.\n * @param [attributesOrStartTime] the attributes that will be added; these are\n * associated with this event. Can be also a start time\n * if type is {@type TimeInput} and 3rd param is undefined\n * @param [startTime] start time of the event.\n */\n addEvent(\n name: string,\n attributesOrStartTime?: SpanAttributes | TimeInput,\n startTime?: TimeInput\n ): this;\n\n /**\n * Adds a single link to the span.\n *\n * Links added after the creation will not affect the sampling decision.\n * It is preferred span links be added at span creation.\n *\n * @param link the link to add.\n */\n addLink(link: Link): this;\n\n /**\n * Adds multiple links to the span.\n *\n * Links added after the creation will not affect the sampling decision.\n * It is preferred span links be added at span creation.\n *\n * @param links the links to add.\n */\n addLinks(links: Link[]): this;\n\n /**\n * Sets a status to the span. If used, this will override the default Span\n * status. Default is {@link SpanStatusCode.UNSET}. SetStatus overrides the value\n * of previous calls to SetStatus on the Span.\n *\n * @param status the SpanStatus to set.\n */\n setStatus(status: SpanStatus): this;\n\n /**\n * Updates the Span name.\n *\n * This will override the name provided via {@link Tracer.startSpan}.\n *\n * Upon this update, any sampling behavior based on Span name will depend on\n * the implementation.\n *\n * @param name the Span name.\n */\n updateName(name: string): this;\n\n /**\n * Marks the end of Span execution.\n *\n * Call to End of a Span MUST not have any effects on child spans. Those may\n * still be running and can be ended later.\n *\n * Do not return `this`. The Span generally should not be used after it\n * is ended so chaining is not desired in this context.\n *\n * @param [endTime] the time to set as Span's end time. If not provided,\n * use the current time as the span's end time.\n */\n end(endTime?: TimeInput): void;\n\n /**\n * Returns the flag whether this span will be recorded.\n *\n * @returns true if this Span is active and recording information like events\n * with the `AddEvent` operation and attributes using `setAttributes`.\n */\n isRecording(): boolean;\n\n /**\n * Sets exception as a span event\n * @param exception the exception the only accepted values are string or Error\n * @param [time] the time to set as Span's event time. If not provided,\n * use the current time.\n */\n recordException(exception: Exception, time?: TimeInput): void;\n}\n"]}
|
node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/src/trace/span_context.d.ts
ADDED
|
@@ -0,0 +1,53 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import { TraceState } from './trace_state';
|
| 2 |
+
/**
|
| 3 |
+
* A SpanContext represents the portion of a {@link Span} which must be
|
| 4 |
+
* serialized and propagated along side of a {@link Baggage}.
|
| 5 |
+
*/
|
| 6 |
+
export interface SpanContext {
|
| 7 |
+
/**
|
| 8 |
+
* The ID of the trace that this span belongs to. It is worldwide unique
|
| 9 |
+
* with practically sufficient probability by being made as 16 randomly
|
| 10 |
+
* generated bytes, encoded as a 32 lowercase hex characters corresponding to
|
| 11 |
+
* 128 bits.
|
| 12 |
+
*/
|
| 13 |
+
traceId: string;
|
| 14 |
+
/**
|
| 15 |
+
* The ID of the Span. It is globally unique with practically sufficient
|
| 16 |
+
* probability by being made as 8 randomly generated bytes, encoded as a 16
|
| 17 |
+
* lowercase hex characters corresponding to 64 bits.
|
| 18 |
+
*/
|
| 19 |
+
spanId: string;
|
| 20 |
+
/**
|
| 21 |
+
* Only true if the SpanContext was propagated from a remote parent.
|
| 22 |
+
*/
|
| 23 |
+
isRemote?: boolean;
|
| 24 |
+
/**
|
| 25 |
+
* Trace flags to propagate.
|
| 26 |
+
*
|
| 27 |
+
* It is represented as 1 byte (bitmap). Bit to represent whether trace is
|
| 28 |
+
* sampled or not. When set, the least significant bit documents that the
|
| 29 |
+
* caller may have recorded trace data. A caller who does not record trace
|
| 30 |
+
* data out-of-band leaves this flag unset.
|
| 31 |
+
*
|
| 32 |
+
* see {@link TraceFlags} for valid flag values.
|
| 33 |
+
*/
|
| 34 |
+
traceFlags: number;
|
| 35 |
+
/**
|
| 36 |
+
* Tracing-system-specific info to propagate.
|
| 37 |
+
*
|
| 38 |
+
* The tracestate field value is a `list` as defined below. The `list` is a
|
| 39 |
+
* series of `list-members` separated by commas `,`, and a list-member is a
|
| 40 |
+
* key/value pair separated by an equals sign `=`. Spaces and horizontal tabs
|
| 41 |
+
* surrounding `list-members` are ignored. There can be a maximum of 32
|
| 42 |
+
* `list-members` in a `list`.
|
| 43 |
+
* More Info: https://www.w3.org/TR/trace-context/#tracestate-field
|
| 44 |
+
*
|
| 45 |
+
* Examples:
|
| 46 |
+
* Single tracing system (generic format):
|
| 47 |
+
* tracestate: rojo=00f067aa0ba902b7
|
| 48 |
+
* Multiple tracing systems (with different formatting):
|
| 49 |
+
* tracestate: rojo=00f067aa0ba902b7,congo=t61rcWkgMzE
|
| 50 |
+
*/
|
| 51 |
+
traceState?: TraceState;
|
| 52 |
+
}
|
| 53 |
+
//# sourceMappingURL=span_context.d.ts.map
|
node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/src/trace/span_context.js
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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 |
+
//# sourceMappingURL=span_context.js.map
|
node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/src/trace/span_context.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"version":3,"file":"span_context.js","sourceRoot":"","sources":["../../../src/trace/span_context.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 { TraceState } from './trace_state';\n\n/**\n * A SpanContext represents the portion of a {@link Span} which must be\n * serialized and propagated along side of a {@link Baggage}.\n */\nexport interface SpanContext {\n /**\n * The ID of the trace that this span belongs to. It is worldwide unique\n * with practically sufficient probability by being made as 16 randomly\n * generated bytes, encoded as a 32 lowercase hex characters corresponding to\n * 128 bits.\n */\n traceId: string;\n /**\n * The ID of the Span. It is globally unique with practically sufficient\n * probability by being made as 8 randomly generated bytes, encoded as a 16\n * lowercase hex characters corresponding to 64 bits.\n */\n spanId: string;\n /**\n * Only true if the SpanContext was propagated from a remote parent.\n */\n isRemote?: boolean;\n /**\n * Trace flags to propagate.\n *\n * It is represented as 1 byte (bitmap). Bit to represent whether trace is\n * sampled or not. When set, the least significant bit documents that the\n * caller may have recorded trace data. A caller who does not record trace\n * data out-of-band leaves this flag unset.\n *\n * see {@link TraceFlags} for valid flag values.\n */\n traceFlags: number;\n /**\n * Tracing-system-specific info to propagate.\n *\n * The tracestate field value is a `list` as defined below. The `list` is a\n * series of `list-members` separated by commas `,`, and a list-member is a\n * key/value pair separated by an equals sign `=`. Spaces and horizontal tabs\n * surrounding `list-members` are ignored. There can be a maximum of 32\n * `list-members` in a `list`.\n * More Info: https://www.w3.org/TR/trace-context/#tracestate-field\n *\n * Examples:\n * Single tracing system (generic format):\n * tracestate: rojo=00f067aa0ba902b7\n * Multiple tracing systems (with different formatting):\n * tracestate: rojo=00f067aa0ba902b7,congo=t61rcWkgMzE\n */\n traceState?: TraceState;\n}\n"]}
|
node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/src/trace/span_kind.d.ts
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
export declare enum SpanKind {
|
| 2 |
+
/** Default value. Indicates that the span is used internally. */
|
| 3 |
+
INTERNAL = 0,
|
| 4 |
+
/**
|
| 5 |
+
* Indicates that the span covers server-side handling of an RPC or other
|
| 6 |
+
* remote request.
|
| 7 |
+
*/
|
| 8 |
+
SERVER = 1,
|
| 9 |
+
/**
|
| 10 |
+
* Indicates that the span covers the client-side wrapper around an RPC or
|
| 11 |
+
* other remote request.
|
| 12 |
+
*/
|
| 13 |
+
CLIENT = 2,
|
| 14 |
+
/**
|
| 15 |
+
* Indicates that the span describes producer sending a message to a
|
| 16 |
+
* broker. Unlike client and server, there is no direct critical path latency
|
| 17 |
+
* relationship between producer and consumer spans.
|
| 18 |
+
*/
|
| 19 |
+
PRODUCER = 3,
|
| 20 |
+
/**
|
| 21 |
+
* Indicates that the span describes consumer receiving a message from a
|
| 22 |
+
* broker. Unlike client and server, there is no direct critical path latency
|
| 23 |
+
* relationship between producer and consumer spans.
|
| 24 |
+
*/
|
| 25 |
+
CONSUMER = 4
|
| 26 |
+
}
|
| 27 |
+
//# sourceMappingURL=span_kind.d.ts.map
|
node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/src/trace/span_kind.js
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"use strict";
|
| 2 |
+
Object.defineProperty(exports, "__esModule", { value: true });
|
| 3 |
+
exports.SpanKind = void 0;
|
| 4 |
+
/*
|
| 5 |
+
* Copyright The OpenTelemetry Authors
|
| 6 |
+
*
|
| 7 |
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
| 8 |
+
* you may not use this file except in compliance with the License.
|
| 9 |
+
* You may obtain a copy of the License at
|
| 10 |
+
*
|
| 11 |
+
* https://www.apache.org/licenses/LICENSE-2.0
|
| 12 |
+
*
|
| 13 |
+
* Unless required by applicable law or agreed to in writing, software
|
| 14 |
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
| 15 |
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
| 16 |
+
* See the License for the specific language governing permissions and
|
| 17 |
+
* limitations under the License.
|
| 18 |
+
*/
|
| 19 |
+
var SpanKind;
|
| 20 |
+
(function (SpanKind) {
|
| 21 |
+
/** Default value. Indicates that the span is used internally. */
|
| 22 |
+
SpanKind[SpanKind["INTERNAL"] = 0] = "INTERNAL";
|
| 23 |
+
/**
|
| 24 |
+
* Indicates that the span covers server-side handling of an RPC or other
|
| 25 |
+
* remote request.
|
| 26 |
+
*/
|
| 27 |
+
SpanKind[SpanKind["SERVER"] = 1] = "SERVER";
|
| 28 |
+
/**
|
| 29 |
+
* Indicates that the span covers the client-side wrapper around an RPC or
|
| 30 |
+
* other remote request.
|
| 31 |
+
*/
|
| 32 |
+
SpanKind[SpanKind["CLIENT"] = 2] = "CLIENT";
|
| 33 |
+
/**
|
| 34 |
+
* Indicates that the span describes producer sending a message to a
|
| 35 |
+
* broker. Unlike client and server, there is no direct critical path latency
|
| 36 |
+
* relationship between producer and consumer spans.
|
| 37 |
+
*/
|
| 38 |
+
SpanKind[SpanKind["PRODUCER"] = 3] = "PRODUCER";
|
| 39 |
+
/**
|
| 40 |
+
* Indicates that the span describes consumer receiving a message from a
|
| 41 |
+
* broker. Unlike client and server, there is no direct critical path latency
|
| 42 |
+
* relationship between producer and consumer spans.
|
| 43 |
+
*/
|
| 44 |
+
SpanKind[SpanKind["CONSUMER"] = 4] = "CONSUMER";
|
| 45 |
+
})(SpanKind = exports.SpanKind || (exports.SpanKind = {}));
|
| 46 |
+
//# sourceMappingURL=span_kind.js.map
|
node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/src/trace/span_kind.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"version":3,"file":"span_kind.js","sourceRoot":"","sources":["../../../src/trace/span_kind.ts"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;GAcG;AACH,IAAY,QA6BX;AA7BD,WAAY,QAAQ;IAClB,iEAAiE;IACjE,+CAAY,CAAA;IAEZ;;;OAGG;IACH,2CAAU,CAAA;IAEV;;;OAGG;IACH,2CAAU,CAAA;IAEV;;;;OAIG;IACH,+CAAY,CAAA;IAEZ;;;;OAIG;IACH,+CAAY,CAAA;AACd,CAAC,EA7BW,QAAQ,GAAR,gBAAQ,KAAR,gBAAQ,QA6BnB","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 */\nexport enum SpanKind {\n /** Default value. Indicates that the span is used internally. */\n INTERNAL = 0,\n\n /**\n * Indicates that the span covers server-side handling of an RPC or other\n * remote request.\n */\n SERVER = 1,\n\n /**\n * Indicates that the span covers the client-side wrapper around an RPC or\n * other remote request.\n */\n CLIENT = 2,\n\n /**\n * Indicates that the span describes producer sending a message to a\n * broker. Unlike client and server, there is no direct critical path latency\n * relationship between producer and consumer spans.\n */\n PRODUCER = 3,\n\n /**\n * Indicates that the span describes consumer receiving a message from a\n * broker. Unlike client and server, there is no direct critical path latency\n * relationship between producer and consumer spans.\n */\n CONSUMER = 4,\n}\n"]}
|
node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/src/trace/spancontext-utils.d.ts
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import { Span } from './span';
|
| 2 |
+
import { SpanContext } from './span_context';
|
| 3 |
+
export declare function isValidTraceId(traceId: string): boolean;
|
| 4 |
+
export declare function isValidSpanId(spanId: string): boolean;
|
| 5 |
+
/**
|
| 6 |
+
* Returns true if this {@link SpanContext} is valid.
|
| 7 |
+
* @return true if this {@link SpanContext} is valid.
|
| 8 |
+
*/
|
| 9 |
+
export declare function isSpanContextValid(spanContext: SpanContext): boolean;
|
| 10 |
+
/**
|
| 11 |
+
* Wrap the given {@link SpanContext} in a new non-recording {@link Span}
|
| 12 |
+
*
|
| 13 |
+
* @param spanContext span context to be wrapped
|
| 14 |
+
* @returns a new non-recording {@link Span} with the provided context
|
| 15 |
+
*/
|
| 16 |
+
export declare function wrapSpanContext(spanContext: SpanContext): Span;
|
| 17 |
+
//# sourceMappingURL=spancontext-utils.d.ts.map
|
node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/src/trace/spancontext-utils.js
ADDED
|
@@ -0,0 +1,49 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"use strict";
|
| 2 |
+
Object.defineProperty(exports, "__esModule", { value: true });
|
| 3 |
+
exports.wrapSpanContext = exports.isSpanContextValid = exports.isValidSpanId = exports.isValidTraceId = void 0;
|
| 4 |
+
/*
|
| 5 |
+
* Copyright The OpenTelemetry Authors
|
| 6 |
+
*
|
| 7 |
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
| 8 |
+
* you may not use this file except in compliance with the License.
|
| 9 |
+
* You may obtain a copy of the License at
|
| 10 |
+
*
|
| 11 |
+
* https://www.apache.org/licenses/LICENSE-2.0
|
| 12 |
+
*
|
| 13 |
+
* Unless required by applicable law or agreed to in writing, software
|
| 14 |
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
| 15 |
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
| 16 |
+
* See the License for the specific language governing permissions and
|
| 17 |
+
* limitations under the License.
|
| 18 |
+
*/
|
| 19 |
+
const invalid_span_constants_1 = require("./invalid-span-constants");
|
| 20 |
+
const NonRecordingSpan_1 = require("./NonRecordingSpan");
|
| 21 |
+
const VALID_TRACEID_REGEX = /^([0-9a-f]{32})$/i;
|
| 22 |
+
const VALID_SPANID_REGEX = /^[0-9a-f]{16}$/i;
|
| 23 |
+
function isValidTraceId(traceId) {
|
| 24 |
+
return VALID_TRACEID_REGEX.test(traceId) && traceId !== invalid_span_constants_1.INVALID_TRACEID;
|
| 25 |
+
}
|
| 26 |
+
exports.isValidTraceId = isValidTraceId;
|
| 27 |
+
function isValidSpanId(spanId) {
|
| 28 |
+
return VALID_SPANID_REGEX.test(spanId) && spanId !== invalid_span_constants_1.INVALID_SPANID;
|
| 29 |
+
}
|
| 30 |
+
exports.isValidSpanId = isValidSpanId;
|
| 31 |
+
/**
|
| 32 |
+
* Returns true if this {@link SpanContext} is valid.
|
| 33 |
+
* @return true if this {@link SpanContext} is valid.
|
| 34 |
+
*/
|
| 35 |
+
function isSpanContextValid(spanContext) {
|
| 36 |
+
return (isValidTraceId(spanContext.traceId) && isValidSpanId(spanContext.spanId));
|
| 37 |
+
}
|
| 38 |
+
exports.isSpanContextValid = isSpanContextValid;
|
| 39 |
+
/**
|
| 40 |
+
* Wrap the given {@link SpanContext} in a new non-recording {@link Span}
|
| 41 |
+
*
|
| 42 |
+
* @param spanContext span context to be wrapped
|
| 43 |
+
* @returns a new non-recording {@link Span} with the provided context
|
| 44 |
+
*/
|
| 45 |
+
function wrapSpanContext(spanContext) {
|
| 46 |
+
return new NonRecordingSpan_1.NonRecordingSpan(spanContext);
|
| 47 |
+
}
|
| 48 |
+
exports.wrapSpanContext = wrapSpanContext;
|
| 49 |
+
//# sourceMappingURL=spancontext-utils.js.map
|
node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/src/trace/spancontext-utils.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"version":3,"file":"spancontext-utils.js","sourceRoot":"","sources":["../../../src/trace/spancontext-utils.ts"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;GAcG;AACH,qEAA2E;AAC3E,yDAAsD;AAItD,MAAM,mBAAmB,GAAG,mBAAmB,CAAC;AAChD,MAAM,kBAAkB,GAAG,iBAAiB,CAAC;AAE7C,SAAgB,cAAc,CAAC,OAAe;IAC5C,OAAO,mBAAmB,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,OAAO,KAAK,wCAAe,CAAC;AAC1E,CAAC;AAFD,wCAEC;AAED,SAAgB,aAAa,CAAC,MAAc;IAC1C,OAAO,kBAAkB,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,MAAM,KAAK,uCAAc,CAAC;AACtE,CAAC;AAFD,sCAEC;AAED;;;GAGG;AACH,SAAgB,kBAAkB,CAAC,WAAwB;IACzD,OAAO,CACL,cAAc,CAAC,WAAW,CAAC,OAAO,CAAC,IAAI,aAAa,CAAC,WAAW,CAAC,MAAM,CAAC,CACzE,CAAC;AACJ,CAAC;AAJD,gDAIC;AAED;;;;;GAKG;AACH,SAAgB,eAAe,CAAC,WAAwB;IACtD,OAAO,IAAI,mCAAgB,CAAC,WAAW,CAAC,CAAC;AAC3C,CAAC;AAFD,0CAEC","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 */\nimport { INVALID_SPANID, INVALID_TRACEID } from './invalid-span-constants';\nimport { NonRecordingSpan } from './NonRecordingSpan';\nimport { Span } from './span';\nimport { SpanContext } from './span_context';\n\nconst VALID_TRACEID_REGEX = /^([0-9a-f]{32})$/i;\nconst VALID_SPANID_REGEX = /^[0-9a-f]{16}$/i;\n\nexport function isValidTraceId(traceId: string): boolean {\n return VALID_TRACEID_REGEX.test(traceId) && traceId !== INVALID_TRACEID;\n}\n\nexport function isValidSpanId(spanId: string): boolean {\n return VALID_SPANID_REGEX.test(spanId) && spanId !== INVALID_SPANID;\n}\n\n/**\n * Returns true if this {@link SpanContext} is valid.\n * @return true if this {@link SpanContext} is valid.\n */\nexport function isSpanContextValid(spanContext: SpanContext): boolean {\n return (\n isValidTraceId(spanContext.traceId) && isValidSpanId(spanContext.spanId)\n );\n}\n\n/**\n * Wrap the given {@link SpanContext} in a new non-recording {@link Span}\n *\n * @param spanContext span context to be wrapped\n * @returns a new non-recording {@link Span} with the provided context\n */\nexport function wrapSpanContext(spanContext: SpanContext): Span {\n return new NonRecordingSpan(spanContext);\n}\n"]}
|
node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/src/trace/status.d.ts
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
export interface SpanStatus {
|
| 2 |
+
/** The status code of this message. */
|
| 3 |
+
code: SpanStatusCode;
|
| 4 |
+
/** A developer-facing error message. */
|
| 5 |
+
message?: string;
|
| 6 |
+
}
|
| 7 |
+
/**
|
| 8 |
+
* An enumeration of status codes.
|
| 9 |
+
*/
|
| 10 |
+
export declare enum SpanStatusCode {
|
| 11 |
+
/**
|
| 12 |
+
* The default status.
|
| 13 |
+
*/
|
| 14 |
+
UNSET = 0,
|
| 15 |
+
/**
|
| 16 |
+
* The operation has been validated by an Application developer or
|
| 17 |
+
* Operator to have completed successfully.
|
| 18 |
+
*/
|
| 19 |
+
OK = 1,
|
| 20 |
+
/**
|
| 21 |
+
* The operation contains an error.
|
| 22 |
+
*/
|
| 23 |
+
ERROR = 2
|
| 24 |
+
}
|
| 25 |
+
//# sourceMappingURL=status.d.ts.map
|
node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/src/trace/status.js
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"use strict";
|
| 2 |
+
Object.defineProperty(exports, "__esModule", { value: true });
|
| 3 |
+
exports.SpanStatusCode = void 0;
|
| 4 |
+
/**
|
| 5 |
+
* An enumeration of status codes.
|
| 6 |
+
*/
|
| 7 |
+
var SpanStatusCode;
|
| 8 |
+
(function (SpanStatusCode) {
|
| 9 |
+
/**
|
| 10 |
+
* The default status.
|
| 11 |
+
*/
|
| 12 |
+
SpanStatusCode[SpanStatusCode["UNSET"] = 0] = "UNSET";
|
| 13 |
+
/**
|
| 14 |
+
* The operation has been validated by an Application developer or
|
| 15 |
+
* Operator to have completed successfully.
|
| 16 |
+
*/
|
| 17 |
+
SpanStatusCode[SpanStatusCode["OK"] = 1] = "OK";
|
| 18 |
+
/**
|
| 19 |
+
* The operation contains an error.
|
| 20 |
+
*/
|
| 21 |
+
SpanStatusCode[SpanStatusCode["ERROR"] = 2] = "ERROR";
|
| 22 |
+
})(SpanStatusCode = exports.SpanStatusCode || (exports.SpanStatusCode = {}));
|
| 23 |
+
//# sourceMappingURL=status.js.map
|
node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/src/trace/status.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"version":3,"file":"status.js","sourceRoot":"","sources":["../../../src/trace/status.ts"],"names":[],"mappings":";;;AAsBA;;GAEG;AACH,IAAY,cAcX;AAdD,WAAY,cAAc;IACxB;;OAEG;IACH,qDAAS,CAAA;IACT;;;OAGG;IACH,+CAAM,CAAA;IACN;;OAEG;IACH,qDAAS,CAAA;AACX,CAAC,EAdW,cAAc,GAAd,sBAAc,KAAd,sBAAc,QAczB","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 */\nexport interface SpanStatus {\n /** The status code of this message. */\n code: SpanStatusCode;\n /** A developer-facing error message. */\n message?: string;\n}\n\n/**\n * An enumeration of status codes.\n */\nexport enum SpanStatusCode {\n /**\n * The default status.\n */\n UNSET = 0,\n /**\n * The operation has been validated by an Application developer or\n * Operator to have completed successfully.\n */\n OK = 1,\n /**\n * The operation contains an error.\n */\n ERROR = 2,\n}\n"]}
|
node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/src/trace/trace_flags.d.ts
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
export declare enum TraceFlags {
|
| 2 |
+
/** Represents no flag set. */
|
| 3 |
+
NONE = 0,
|
| 4 |
+
/** Bit to represent whether trace is sampled in trace flags. */
|
| 5 |
+
SAMPLED = 1
|
| 6 |
+
}
|
| 7 |
+
//# sourceMappingURL=trace_flags.d.ts.map
|
node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/src/trace/trace_flags.js
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"use strict";
|
| 2 |
+
Object.defineProperty(exports, "__esModule", { value: true });
|
| 3 |
+
exports.TraceFlags = void 0;
|
| 4 |
+
/*
|
| 5 |
+
* Copyright The OpenTelemetry Authors
|
| 6 |
+
*
|
| 7 |
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
| 8 |
+
* you may not use this file except in compliance with the License.
|
| 9 |
+
* You may obtain a copy of the License at
|
| 10 |
+
*
|
| 11 |
+
* https://www.apache.org/licenses/LICENSE-2.0
|
| 12 |
+
*
|
| 13 |
+
* Unless required by applicable law or agreed to in writing, software
|
| 14 |
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
| 15 |
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
| 16 |
+
* See the License for the specific language governing permissions and
|
| 17 |
+
* limitations under the License.
|
| 18 |
+
*/
|
| 19 |
+
var TraceFlags;
|
| 20 |
+
(function (TraceFlags) {
|
| 21 |
+
/** Represents no flag set. */
|
| 22 |
+
TraceFlags[TraceFlags["NONE"] = 0] = "NONE";
|
| 23 |
+
/** Bit to represent whether trace is sampled in trace flags. */
|
| 24 |
+
TraceFlags[TraceFlags["SAMPLED"] = 1] = "SAMPLED";
|
| 25 |
+
})(TraceFlags = exports.TraceFlags || (exports.TraceFlags = {}));
|
| 26 |
+
//# sourceMappingURL=trace_flags.js.map
|
node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/src/trace/trace_flags.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"version":3,"file":"trace_flags.js","sourceRoot":"","sources":["../../../src/trace/trace_flags.ts"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;GAcG;AACH,IAAY,UAKX;AALD,WAAY,UAAU;IACpB,8BAA8B;IAC9B,2CAAU,CAAA;IACV,gEAAgE;IAChE,iDAAkB,CAAA;AACpB,CAAC,EALW,UAAU,GAAV,kBAAU,KAAV,kBAAU,QAKrB","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 */\nexport enum TraceFlags {\n /** Represents no flag set. */\n NONE = 0x0,\n /** Bit to represent whether trace is sampled in trace flags. */\n SAMPLED = 0x1 << 0,\n}\n"]}
|
node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/src/trace/trace_state.d.ts
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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
|
node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/src/trace/trace_state.js
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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 |
+
//# sourceMappingURL=trace_state.js.map
|
node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/src/trace/trace_state.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"version":3,"file":"trace_state.js","sourceRoot":"","sources":["../../../src/trace/trace_state.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\nexport interface TraceState {\n /**\n * Create a new TraceState which inherits from this TraceState and has the\n * given key set.\n * The new entry will always be added in the front of the list of states.\n *\n * @param key key of the TraceState entry.\n * @param value value of the TraceState entry.\n */\n set(key: string, value: string): TraceState;\n\n /**\n * Return a new TraceState which inherits from this TraceState but does not\n * contain the given key.\n *\n * @param key the key for the TraceState entry to be removed.\n */\n unset(key: string): TraceState;\n\n /**\n * Returns the value to which the specified key is mapped, or `undefined` if\n * this map contains no mapping for the key.\n *\n * @param key with which the specified value is to be associated.\n * @returns the value to which the specified key is mapped, or `undefined` if\n * this map contains no mapping for the key.\n */\n get(key: string): string | undefined;\n\n // TODO: Consider to add support for merging an object as well by also\n // accepting a single internalTraceState argument similar to the constructor.\n\n /**\n * Serializes the TraceState to a `list` as defined below. The `list` is a\n * series of `list-members` separated by commas `,`, and a list-member is a\n * key/value pair separated by an equals sign `=`. Spaces and horizontal tabs\n * surrounding `list-members` are ignored. There can be a maximum of 32\n * `list-members` in a `list`.\n *\n * @returns the serialized string.\n */\n serialize(): string;\n}\n"]}
|
node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/src/trace/tracer.d.ts
ADDED
|
@@ -0,0 +1,71 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import { Context } from '../context/types';
|
| 2 |
+
import { Span } from './span';
|
| 3 |
+
import { SpanOptions } from './SpanOptions';
|
| 4 |
+
/**
|
| 5 |
+
* Tracer provides an interface for creating {@link Span}s.
|
| 6 |
+
*/
|
| 7 |
+
export interface Tracer {
|
| 8 |
+
/**
|
| 9 |
+
* Starts a new {@link Span}. Start the span without setting it on context.
|
| 10 |
+
*
|
| 11 |
+
* This method do NOT modify the current Context.
|
| 12 |
+
*
|
| 13 |
+
* @param name The name of the span
|
| 14 |
+
* @param [options] SpanOptions used for span creation
|
| 15 |
+
* @param [context] Context to use to extract parent
|
| 16 |
+
* @returns Span The newly created span
|
| 17 |
+
* @example
|
| 18 |
+
* const span = tracer.startSpan('op');
|
| 19 |
+
* span.setAttribute('key', 'value');
|
| 20 |
+
* span.end();
|
| 21 |
+
*/
|
| 22 |
+
startSpan(name: string, options?: SpanOptions, context?: Context): Span;
|
| 23 |
+
/**
|
| 24 |
+
* Starts a new {@link Span} and calls the given function passing it the
|
| 25 |
+
* created span as first argument.
|
| 26 |
+
* Additionally the new span gets set in context and this context is activated
|
| 27 |
+
* for the duration of the function call.
|
| 28 |
+
*
|
| 29 |
+
* @param name The name of the span
|
| 30 |
+
* @param [options] SpanOptions used for span creation
|
| 31 |
+
* @param [context] Context to use to extract parent
|
| 32 |
+
* @param fn function called in the context of the span and receives the newly created span as an argument
|
| 33 |
+
* @returns return value of fn
|
| 34 |
+
* @example
|
| 35 |
+
* const something = tracer.startActiveSpan('op', span => {
|
| 36 |
+
* try {
|
| 37 |
+
* do some work
|
| 38 |
+
* span.setStatus({code: SpanStatusCode.OK});
|
| 39 |
+
* return something;
|
| 40 |
+
* } catch (err) {
|
| 41 |
+
* span.setStatus({
|
| 42 |
+
* code: SpanStatusCode.ERROR,
|
| 43 |
+
* message: err.message,
|
| 44 |
+
* });
|
| 45 |
+
* throw err;
|
| 46 |
+
* } finally {
|
| 47 |
+
* span.end();
|
| 48 |
+
* }
|
| 49 |
+
* });
|
| 50 |
+
*
|
| 51 |
+
* @example
|
| 52 |
+
* const span = tracer.startActiveSpan('op', span => {
|
| 53 |
+
* try {
|
| 54 |
+
* do some work
|
| 55 |
+
* return span;
|
| 56 |
+
* } catch (err) {
|
| 57 |
+
* span.setStatus({
|
| 58 |
+
* code: SpanStatusCode.ERROR,
|
| 59 |
+
* message: err.message,
|
| 60 |
+
* });
|
| 61 |
+
* throw err;
|
| 62 |
+
* }
|
| 63 |
+
* });
|
| 64 |
+
* do some more work
|
| 65 |
+
* span.end();
|
| 66 |
+
*/
|
| 67 |
+
startActiveSpan<F extends (span: Span) => unknown>(name: string, fn: F): ReturnType<F>;
|
| 68 |
+
startActiveSpan<F extends (span: Span) => unknown>(name: string, options: SpanOptions, fn: F): ReturnType<F>;
|
| 69 |
+
startActiveSpan<F extends (span: Span) => unknown>(name: string, options: SpanOptions, context: Context, fn: F): ReturnType<F>;
|
| 70 |
+
}
|
| 71 |
+
//# sourceMappingURL=tracer.d.ts.map
|
node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/src/trace/tracer.js
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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 |
+
//# sourceMappingURL=tracer.js.map
|
node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/src/trace/tracer.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"version":3,"file":"tracer.js","sourceRoot":"","sources":["../../../src/trace/tracer.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG","sourcesContent":["/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { Context } from '../context/types';\nimport { Span } from './span';\nimport { SpanOptions } from './SpanOptions';\n\n/**\n * Tracer provides an interface for creating {@link Span}s.\n */\nexport interface Tracer {\n /**\n * Starts a new {@link Span}. Start the span without setting it on context.\n *\n * This method do NOT modify the current Context.\n *\n * @param name The name of the span\n * @param [options] SpanOptions used for span creation\n * @param [context] Context to use to extract parent\n * @returns Span The newly created span\n * @example\n * const span = tracer.startSpan('op');\n * span.setAttribute('key', 'value');\n * span.end();\n */\n startSpan(name: string, options?: SpanOptions, context?: Context): Span;\n\n /**\n * Starts a new {@link Span} and calls the given function passing it the\n * created span as first argument.\n * Additionally the new span gets set in context and this context is activated\n * for the duration of the function call.\n *\n * @param name The name of the span\n * @param [options] SpanOptions used for span creation\n * @param [context] Context to use to extract parent\n * @param fn function called in the context of the span and receives the newly created span as an argument\n * @returns return value of fn\n * @example\n * const something = tracer.startActiveSpan('op', span => {\n * try {\n * do some work\n * span.setStatus({code: SpanStatusCode.OK});\n * return something;\n * } catch (err) {\n * span.setStatus({\n * code: SpanStatusCode.ERROR,\n * message: err.message,\n * });\n * throw err;\n * } finally {\n * span.end();\n * }\n * });\n *\n * @example\n * const span = tracer.startActiveSpan('op', span => {\n * try {\n * do some work\n * return span;\n * } catch (err) {\n * span.setStatus({\n * code: SpanStatusCode.ERROR,\n * message: err.message,\n * });\n * throw err;\n * }\n * });\n * do some more work\n * span.end();\n */\n startActiveSpan<F extends (span: Span) => unknown>(\n name: string,\n fn: F\n ): ReturnType<F>;\n startActiveSpan<F extends (span: Span) => unknown>(\n name: string,\n options: SpanOptions,\n fn: F\n ): ReturnType<F>;\n startActiveSpan<F extends (span: Span) => unknown>(\n name: string,\n options: SpanOptions,\n context: Context,\n fn: F\n ): ReturnType<F>;\n}\n"]}
|
node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/src/trace/tracer_options.d.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/**
|
| 2 |
+
* An interface describes additional metadata of a tracer.
|
| 3 |
+
*/
|
| 4 |
+
export interface TracerOptions {
|
| 5 |
+
/**
|
| 6 |
+
* The schemaUrl of the tracer or instrumentation library
|
| 7 |
+
*/
|
| 8 |
+
schemaUrl?: string;
|
| 9 |
+
}
|
| 10 |
+
//# sourceMappingURL=tracer_options.d.ts.map
|
node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/src/trace/tracer_options.js
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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 |
+
//# sourceMappingURL=tracer_options.js.map
|
node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/src/trace/tracer_options.js.map
ADDED
|
@@ -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"]}
|
node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/src/trace/tracer_provider.d.ts
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import { Tracer } from './tracer';
|
| 2 |
+
import { TracerOptions } from './tracer_options';
|
| 3 |
+
/**
|
| 4 |
+
* A registry for creating named {@link Tracer}s.
|
| 5 |
+
*/
|
| 6 |
+
export interface TracerProvider {
|
| 7 |
+
/**
|
| 8 |
+
* Returns a Tracer, creating one if one with the given name and version is
|
| 9 |
+
* not already created.
|
| 10 |
+
*
|
| 11 |
+
* This function may return different Tracer types (e.g.
|
| 12 |
+
* {@link NoopTracerProvider} vs. a functional tracer).
|
| 13 |
+
*
|
| 14 |
+
* @param name The name of the tracer or instrumentation library.
|
| 15 |
+
* @param version The version of the tracer or instrumentation library.
|
| 16 |
+
* @param options The options of the tracer or instrumentation library.
|
| 17 |
+
* @returns Tracer A Tracer with the given name and version
|
| 18 |
+
*/
|
| 19 |
+
getTracer(name: string, version?: string, options?: TracerOptions): Tracer;
|
| 20 |
+
}
|
| 21 |
+
//# sourceMappingURL=tracer_provider.d.ts.map
|
node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/src/trace/tracer_provider.js
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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 |
+
//# sourceMappingURL=tracer_provider.js.map
|
node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/src/trace/tracer_provider.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"version":3,"file":"tracer_provider.js","sourceRoot":"","sources":["../../../src/trace/tracer_provider.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG","sourcesContent":["/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { Tracer } from './tracer';\nimport { TracerOptions } from './tracer_options';\n\n/**\n * A registry for creating named {@link Tracer}s.\n */\nexport interface TracerProvider {\n /**\n * Returns a Tracer, creating one if one with the given name and version is\n * not already created.\n *\n * This function may return different Tracer types (e.g.\n * {@link NoopTracerProvider} vs. a functional tracer).\n *\n * @param name The name of the tracer or instrumentation library.\n * @param version The version of the tracer or instrumentation library.\n * @param options The options of the tracer or instrumentation library.\n * @returns Tracer A Tracer with the given name and version\n */\n getTracer(name: string, version?: string, options?: TracerOptions): Tracer;\n}\n"]}
|
node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/src/version.d.ts
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
|
|
|
| 1 |
+
export declare const VERSION = "1.9.0";
|
| 2 |
+
//# sourceMappingURL=version.d.ts.map
|