@opentelemetry/api 0.12.0 → 0.14.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/build/src/api/global-utils.d.ts +1 -1
- package/build/src/api/global-utils.js +1 -1
- package/build/src/api/propagation.d.ts +5 -7
- package/build/src/api/propagation.js +7 -12
- package/build/src/api/propagation.js.map +1 -1
- package/build/src/{correlation_context/CorrelationContext.d.ts → baggage/Baggage.d.ts} +5 -5
- package/build/src/{trace/instrumentation/Plugin.js → baggage/Baggage.js} +1 -1
- package/build/src/baggage/Baggage.js.map +1 -0
- package/build/src/{correlation_context → baggage}/EntryValue.d.ts +0 -0
- package/build/src/{correlation_context → baggage}/EntryValue.js +0 -0
- package/build/src/baggage/EntryValue.js.map +1 -0
- package/build/src/context/context.d.ts +11 -1
- package/build/src/context/context.js +22 -2
- package/build/src/context/context.js.map +1 -1
- package/build/src/context/propagation/NoopTextMapPropagator.d.ts +3 -2
- package/build/src/context/propagation/NoopTextMapPropagator.js +5 -2
- package/build/src/context/propagation/NoopTextMapPropagator.js.map +1 -1
- package/build/src/context/propagation/TextMapPropagator.d.ts +52 -9
- package/build/src/context/propagation/TextMapPropagator.js +23 -0
- package/build/src/context/propagation/TextMapPropagator.js.map +1 -1
- package/build/src/index.d.ts +2 -5
- package/build/src/index.js +2 -5
- package/build/src/index.js.map +1 -1
- package/build/src/metrics/Meter.d.ts +18 -5
- package/build/src/metrics/Metric.d.ts +5 -3
- package/build/src/metrics/Metric.js.map +1 -1
- package/build/src/metrics/NoopMeter.d.ts +28 -14
- package/build/src/metrics/NoopMeter.js +36 -20
- package/build/src/metrics/NoopMeter.js.map +1 -1
- package/build/src/trace/NoopLogger.d.ts +4 -4
- package/build/src/trace/NoopLogger.js +12 -12
- package/build/src/trace/NoopLogger.js.map +1 -1
- package/build/src/trace/NoopSpan.d.ts +7 -7
- package/build/src/trace/NoopSpan.js +7 -7
- package/build/src/trace/NoopSpan.js.map +1 -1
- package/build/src/trace/NoopTracer.d.ts +1 -1
- package/build/src/trace/NoopTracer.js +6 -7
- package/build/src/trace/NoopTracer.js.map +1 -1
- package/build/src/trace/Sampler.d.ts +4 -5
- package/build/src/trace/SpanOptions.d.ts +2 -15
- package/build/src/trace/attributes.d.ts +5 -0
- package/build/src/trace/span.d.ts +5 -2
- package/build/src/trace/span_context.d.ts +1 -1
- package/build/src/trace/status.d.ts +10 -128
- package/build/src/trace/status.js +12 -130
- package/build/src/trace/status.js.map +1 -1
- package/build/src/trace/trace_state.d.ts +8 -7
- package/build/src/trace/trace_state.js +15 -0
- package/build/src/trace/trace_state.js.map +1 -1
- package/build/src/version.d.ts +1 -1
- package/build/src/version.js +1 -1
- package/package.json +15 -15
- package/build/src/context/propagation/HttpTextPropagator.d.ts +0 -44
- package/build/src/context/propagation/HttpTextPropagator.js +0 -18
- package/build/src/context/propagation/HttpTextPropagator.js.map +0 -1
- package/build/src/context/propagation/NoopHttpTextPropagator.d.ts +0 -13
- package/build/src/context/propagation/NoopHttpTextPropagator.js +0 -35
- package/build/src/context/propagation/NoopHttpTextPropagator.js.map +0 -1
- package/build/src/context/propagation/getter.d.ts +0 -10
- package/build/src/context/propagation/getter.js +0 -30
- package/build/src/context/propagation/getter.js.map +0 -1
- package/build/src/context/propagation/setter.d.ts +0 -9
- package/build/src/context/propagation/setter.js +0 -29
- package/build/src/context/propagation/setter.js.map +0 -1
- package/build/src/correlation_context/CorrelationContext.js +0 -18
- package/build/src/correlation_context/CorrelationContext.js.map +0 -1
- package/build/src/correlation_context/EntryValue.js.map +0 -1
- package/build/src/metrics/MetricObservable.d.ts +0 -18
- package/build/src/metrics/MetricObservable.js +0 -3
- package/build/src/metrics/MetricObservable.js.map +0 -1
- package/build/src/trace/instrumentation/BasePlugin.d.ts +0 -65
- package/build/src/trace/instrumentation/BasePlugin.js +0 -18
- package/build/src/trace/instrumentation/BasePlugin.js.map +0 -1
- package/build/src/trace/instrumentation/Instrumentation.d.ts +0 -50
- package/build/src/trace/instrumentation/Instrumentation.js +0 -18
- package/build/src/trace/instrumentation/Instrumentation.js.map +0 -1
- package/build/src/trace/instrumentation/Plugin.d.ts +0 -71
- package/build/src/trace/instrumentation/Plugin.js.map +0 -1
|
@@ -28,7 +28,7 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
28
28
|
};
|
|
29
29
|
})();
|
|
30
30
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
31
|
-
exports.
|
|
31
|
+
exports.NOOP_BATCH_OBSERVER = exports.NOOP_SUM_OBSERVER_METRIC = exports.NOOP_UP_DOWN_SUM_OBSERVER_METRIC = exports.NOOP_VALUE_OBSERVER_METRIC = exports.NOOP_BOUND_BASE_OBSERVER = exports.NOOP_VALUE_RECORDER_METRIC = exports.NOOP_BOUND_VALUE_RECORDER = exports.NOOP_COUNTER_METRIC = exports.NOOP_BOUND_COUNTER = exports.NOOP_METER = exports.NoopBoundBaseObserver = exports.NoopBoundValueRecorder = exports.NoopBoundCounter = exports.NoopBatchObserver = exports.NoopBaseObserverMetric = exports.NoopValueRecorderMetric = exports.NoopCounterMetric = exports.NoopMetric = exports.NoopMeter = void 0;
|
|
32
32
|
/**
|
|
33
33
|
* NoopMeter is a noop implementation of the {@link Meter} interface. It reuses
|
|
34
34
|
* constant NoopMetrics for all of its methods.
|
|
@@ -41,7 +41,7 @@ var NoopMeter = /** @class */ (function () {
|
|
|
41
41
|
* @param name the name of the metric.
|
|
42
42
|
* @param [options] the metric options.
|
|
43
43
|
*/
|
|
44
|
-
NoopMeter.prototype.createValueRecorder = function (
|
|
44
|
+
NoopMeter.prototype.createValueRecorder = function (_name, _options) {
|
|
45
45
|
return exports.NOOP_VALUE_RECORDER_METRIC;
|
|
46
46
|
};
|
|
47
47
|
/**
|
|
@@ -49,7 +49,7 @@ var NoopMeter = /** @class */ (function () {
|
|
|
49
49
|
* @param name the name of the metric.
|
|
50
50
|
* @param [options] the metric options.
|
|
51
51
|
*/
|
|
52
|
-
NoopMeter.prototype.createCounter = function (
|
|
52
|
+
NoopMeter.prototype.createCounter = function (_name, _options) {
|
|
53
53
|
return exports.NOOP_COUNTER_METRIC;
|
|
54
54
|
};
|
|
55
55
|
/**
|
|
@@ -57,7 +57,7 @@ var NoopMeter = /** @class */ (function () {
|
|
|
57
57
|
* @param name the name of the metric.
|
|
58
58
|
* @param [options] the metric options.
|
|
59
59
|
*/
|
|
60
|
-
NoopMeter.prototype.createUpDownCounter = function (
|
|
60
|
+
NoopMeter.prototype.createUpDownCounter = function (_name, _options) {
|
|
61
61
|
return exports.NOOP_COUNTER_METRIC;
|
|
62
62
|
};
|
|
63
63
|
/**
|
|
@@ -66,16 +66,34 @@ var NoopMeter = /** @class */ (function () {
|
|
|
66
66
|
* @param [options] the metric options.
|
|
67
67
|
* @param [callback] the value observer callback
|
|
68
68
|
*/
|
|
69
|
-
NoopMeter.prototype.createValueObserver = function (
|
|
69
|
+
NoopMeter.prototype.createValueObserver = function (_name, _options, _callback) {
|
|
70
70
|
return exports.NOOP_VALUE_OBSERVER_METRIC;
|
|
71
71
|
};
|
|
72
|
+
/**
|
|
73
|
+
* Returns constant noop sum observer.
|
|
74
|
+
* @param name the name of the metric.
|
|
75
|
+
* @param [options] the metric options.
|
|
76
|
+
* @param [callback] the sum observer callback
|
|
77
|
+
*/
|
|
78
|
+
NoopMeter.prototype.createSumObserver = function (_name, _options, _callback) {
|
|
79
|
+
return exports.NOOP_SUM_OBSERVER_METRIC;
|
|
80
|
+
};
|
|
81
|
+
/**
|
|
82
|
+
* Returns constant noop up down sum observer.
|
|
83
|
+
* @param name the name of the metric.
|
|
84
|
+
* @param [options] the metric options.
|
|
85
|
+
* @param [callback] the up down sum observer callback
|
|
86
|
+
*/
|
|
87
|
+
NoopMeter.prototype.createUpDownSumObserver = function (_name, _options, _callback) {
|
|
88
|
+
return exports.NOOP_UP_DOWN_SUM_OBSERVER_METRIC;
|
|
89
|
+
};
|
|
72
90
|
/**
|
|
73
91
|
* Returns constant noop batch observer.
|
|
74
92
|
* @param name the name of the metric.
|
|
75
93
|
* @param callback the batch observer callback
|
|
76
94
|
*/
|
|
77
|
-
NoopMeter.prototype.createBatchObserver = function (
|
|
78
|
-
return exports.
|
|
95
|
+
NoopMeter.prototype.createBatchObserver = function (_callback) {
|
|
96
|
+
return exports.NOOP_BATCH_OBSERVER;
|
|
79
97
|
};
|
|
80
98
|
return NoopMeter;
|
|
81
99
|
}());
|
|
@@ -91,14 +109,14 @@ var NoopMetric = /** @class */ (function () {
|
|
|
91
109
|
* @param labels key-values pairs that are associated with a specific metric
|
|
92
110
|
* that you want to record.
|
|
93
111
|
*/
|
|
94
|
-
NoopMetric.prototype.bind = function (
|
|
112
|
+
NoopMetric.prototype.bind = function (_labels) {
|
|
95
113
|
return this._instrument;
|
|
96
114
|
};
|
|
97
115
|
/**
|
|
98
116
|
* Removes the Binding from the metric, if it is present.
|
|
99
117
|
* @param labels key-values pairs that are associated with a specific metric.
|
|
100
118
|
*/
|
|
101
|
-
NoopMetric.prototype.unbind = function (
|
|
119
|
+
NoopMetric.prototype.unbind = function (_labels) {
|
|
102
120
|
return;
|
|
103
121
|
};
|
|
104
122
|
/**
|
|
@@ -146,18 +164,16 @@ var NoopBaseObserverMetric = /** @class */ (function (_super) {
|
|
|
146
164
|
return NoopBaseObserverMetric;
|
|
147
165
|
}(NoopMetric));
|
|
148
166
|
exports.NoopBaseObserverMetric = NoopBaseObserverMetric;
|
|
149
|
-
var
|
|
150
|
-
|
|
151
|
-
function NoopBatchObserverMetric() {
|
|
152
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
167
|
+
var NoopBatchObserver = /** @class */ (function () {
|
|
168
|
+
function NoopBatchObserver() {
|
|
153
169
|
}
|
|
154
|
-
return
|
|
155
|
-
}(
|
|
156
|
-
exports.
|
|
170
|
+
return NoopBatchObserver;
|
|
171
|
+
}());
|
|
172
|
+
exports.NoopBatchObserver = NoopBatchObserver;
|
|
157
173
|
var NoopBoundCounter = /** @class */ (function () {
|
|
158
174
|
function NoopBoundCounter() {
|
|
159
175
|
}
|
|
160
|
-
NoopBoundCounter.prototype.add = function (
|
|
176
|
+
NoopBoundCounter.prototype.add = function (_value) {
|
|
161
177
|
return;
|
|
162
178
|
};
|
|
163
179
|
return NoopBoundCounter;
|
|
@@ -166,7 +182,7 @@ exports.NoopBoundCounter = NoopBoundCounter;
|
|
|
166
182
|
var NoopBoundValueRecorder = /** @class */ (function () {
|
|
167
183
|
function NoopBoundValueRecorder() {
|
|
168
184
|
}
|
|
169
|
-
NoopBoundValueRecorder.prototype.record = function (
|
|
185
|
+
NoopBoundValueRecorder.prototype.record = function (_value, _baggage, _spanContext) {
|
|
170
186
|
return;
|
|
171
187
|
};
|
|
172
188
|
return NoopBoundValueRecorder;
|
|
@@ -175,7 +191,7 @@ exports.NoopBoundValueRecorder = NoopBoundValueRecorder;
|
|
|
175
191
|
var NoopBoundBaseObserver = /** @class */ (function () {
|
|
176
192
|
function NoopBoundBaseObserver() {
|
|
177
193
|
}
|
|
178
|
-
NoopBoundBaseObserver.prototype.update = function (
|
|
194
|
+
NoopBoundBaseObserver.prototype.update = function (_value) { };
|
|
179
195
|
return NoopBoundBaseObserver;
|
|
180
196
|
}());
|
|
181
197
|
exports.NoopBoundBaseObserver = NoopBoundBaseObserver;
|
|
@@ -188,5 +204,5 @@ exports.NOOP_BOUND_BASE_OBSERVER = new NoopBoundBaseObserver();
|
|
|
188
204
|
exports.NOOP_VALUE_OBSERVER_METRIC = new NoopBaseObserverMetric(exports.NOOP_BOUND_BASE_OBSERVER);
|
|
189
205
|
exports.NOOP_UP_DOWN_SUM_OBSERVER_METRIC = new NoopBaseObserverMetric(exports.NOOP_BOUND_BASE_OBSERVER);
|
|
190
206
|
exports.NOOP_SUM_OBSERVER_METRIC = new NoopBaseObserverMetric(exports.NOOP_BOUND_BASE_OBSERVER);
|
|
191
|
-
exports.
|
|
207
|
+
exports.NOOP_BATCH_OBSERVER = new NoopBatchObserver();
|
|
192
208
|
//# sourceMappingURL=NoopMeter.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NoopMeter.js","sourceRoot":"","sources":["../../../src/metrics/NoopMeter.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;;;;;;;;;;;;;;AAwBH;;;GAGG;AACH;IACE;IAAe,CAAC;IAEhB;;;;OAIG;IACH,uCAAmB,GAAnB,UAAoB,
|
|
1
|
+
{"version":3,"file":"NoopMeter.js","sourceRoot":"","sources":["../../../src/metrics/NoopMeter.ts"],"names":[],"mappings":"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"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { Logger } from '../common/Logger';
|
|
2
2
|
/** No-op implementation of Logger */
|
|
3
3
|
export declare class NoopLogger implements Logger {
|
|
4
|
-
debug(
|
|
5
|
-
error(
|
|
6
|
-
warn(
|
|
7
|
-
info(
|
|
4
|
+
debug(_message: string, ..._args: unknown[]): void;
|
|
5
|
+
error(_message: string, ..._args: unknown[]): void;
|
|
6
|
+
warn(_message: string, ..._args: unknown[]): void;
|
|
7
|
+
info(_message: string, ..._args: unknown[]): void;
|
|
8
8
|
}
|
|
9
9
|
//# sourceMappingURL=NoopLogger.d.ts.map
|
|
@@ -21,31 +21,31 @@ var NoopLogger = /** @class */ (function () {
|
|
|
21
21
|
function NoopLogger() {
|
|
22
22
|
}
|
|
23
23
|
// By default does nothing
|
|
24
|
-
NoopLogger.prototype.debug = function (
|
|
25
|
-
var
|
|
24
|
+
NoopLogger.prototype.debug = function (_message) {
|
|
25
|
+
var _args = [];
|
|
26
26
|
for (var _i = 1; _i < arguments.length; _i++) {
|
|
27
|
-
|
|
27
|
+
_args[_i - 1] = arguments[_i];
|
|
28
28
|
}
|
|
29
29
|
};
|
|
30
30
|
// By default does nothing
|
|
31
|
-
NoopLogger.prototype.error = function (
|
|
32
|
-
var
|
|
31
|
+
NoopLogger.prototype.error = function (_message) {
|
|
32
|
+
var _args = [];
|
|
33
33
|
for (var _i = 1; _i < arguments.length; _i++) {
|
|
34
|
-
|
|
34
|
+
_args[_i - 1] = arguments[_i];
|
|
35
35
|
}
|
|
36
36
|
};
|
|
37
37
|
// By default does nothing
|
|
38
|
-
NoopLogger.prototype.warn = function (
|
|
39
|
-
var
|
|
38
|
+
NoopLogger.prototype.warn = function (_message) {
|
|
39
|
+
var _args = [];
|
|
40
40
|
for (var _i = 1; _i < arguments.length; _i++) {
|
|
41
|
-
|
|
41
|
+
_args[_i - 1] = arguments[_i];
|
|
42
42
|
}
|
|
43
43
|
};
|
|
44
44
|
// By default does nothing
|
|
45
|
-
NoopLogger.prototype.info = function (
|
|
46
|
-
var
|
|
45
|
+
NoopLogger.prototype.info = function (_message) {
|
|
46
|
+
var _args = [];
|
|
47
47
|
for (var _i = 1; _i < arguments.length; _i++) {
|
|
48
|
-
|
|
48
|
+
_args[_i - 1] = arguments[_i];
|
|
49
49
|
}
|
|
50
50
|
};
|
|
51
51
|
return NoopLogger;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NoopLogger.js","sourceRoot":"","sources":["../../../src/trace/NoopLogger.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAIH,qCAAqC;AACrC;IAAA;IAYA,CAAC;IAXC,0BAA0B;IAC1B,0BAAK,GAAL,UAAM,
|
|
1
|
+
{"version":3,"file":"NoopLogger.js","sourceRoot":"","sources":["../../../src/trace/NoopLogger.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAIH,qCAAqC;AACrC;IAAA;IAYA,CAAC;IAXC,0BAA0B;IAC1B,0BAAK,GAAL,UAAM,QAAgB;QAAE,eAAmB;aAAnB,UAAmB,EAAnB,qBAAmB,EAAnB,IAAmB;YAAnB,8BAAmB;;IAAG,CAAC;IAE/C,0BAA0B;IAC1B,0BAAK,GAAL,UAAM,QAAgB;QAAE,eAAmB;aAAnB,UAAmB,EAAnB,qBAAmB,EAAnB,IAAmB;YAAnB,8BAAmB;;IAAG,CAAC;IAE/C,0BAA0B;IAC1B,yBAAI,GAAJ,UAAK,QAAgB;QAAE,eAAmB;aAAnB,UAAmB,EAAnB,qBAAmB,EAAnB,IAAmB;YAAnB,8BAAmB;;IAAG,CAAC;IAE9C,0BAA0B;IAC1B,yBAAI,GAAJ,UAAK,QAAgB;QAAE,eAAmB;aAAnB,UAAmB,EAAnB,qBAAmB,EAAnB,IAAmB;YAAnB,8BAAmB;;IAAG,CAAC;IAChD,iBAAC;AAAD,CAAC,AAZD,IAYC;AAZY,gCAAU"}
|
|
@@ -13,14 +13,14 @@ export declare class NoopSpan implements Span {
|
|
|
13
13
|
private readonly _spanContext;
|
|
14
14
|
constructor(_spanContext?: SpanContext);
|
|
15
15
|
context(): SpanContext;
|
|
16
|
-
setAttribute(
|
|
17
|
-
setAttributes(
|
|
18
|
-
addEvent(
|
|
19
|
-
setStatus(
|
|
20
|
-
updateName(
|
|
21
|
-
end(
|
|
16
|
+
setAttribute(_key: string, _value: unknown): this;
|
|
17
|
+
setAttributes(_attributes: Attributes): this;
|
|
18
|
+
addEvent(_name: string, _attributes?: Attributes): this;
|
|
19
|
+
setStatus(_status: Status): this;
|
|
20
|
+
updateName(_name: string): this;
|
|
21
|
+
end(_endTime?: TimeInput): void;
|
|
22
22
|
isRecording(): boolean;
|
|
23
|
-
recordException(
|
|
23
|
+
recordException(_exception: Exception, _time?: TimeInput): void;
|
|
24
24
|
}
|
|
25
25
|
export declare const NOOP_SPAN: NoopSpan;
|
|
26
26
|
//# sourceMappingURL=NoopSpan.d.ts.map
|
|
@@ -32,33 +32,33 @@ var NoopSpan = /** @class */ (function () {
|
|
|
32
32
|
return this._spanContext;
|
|
33
33
|
};
|
|
34
34
|
// By default does nothing
|
|
35
|
-
NoopSpan.prototype.setAttribute = function (
|
|
35
|
+
NoopSpan.prototype.setAttribute = function (_key, _value) {
|
|
36
36
|
return this;
|
|
37
37
|
};
|
|
38
38
|
// By default does nothing
|
|
39
|
-
NoopSpan.prototype.setAttributes = function (
|
|
39
|
+
NoopSpan.prototype.setAttributes = function (_attributes) {
|
|
40
40
|
return this;
|
|
41
41
|
};
|
|
42
42
|
// By default does nothing
|
|
43
|
-
NoopSpan.prototype.addEvent = function (
|
|
43
|
+
NoopSpan.prototype.addEvent = function (_name, _attributes) {
|
|
44
44
|
return this;
|
|
45
45
|
};
|
|
46
46
|
// By default does nothing
|
|
47
|
-
NoopSpan.prototype.setStatus = function (
|
|
47
|
+
NoopSpan.prototype.setStatus = function (_status) {
|
|
48
48
|
return this;
|
|
49
49
|
};
|
|
50
50
|
// By default does nothing
|
|
51
|
-
NoopSpan.prototype.updateName = function (
|
|
51
|
+
NoopSpan.prototype.updateName = function (_name) {
|
|
52
52
|
return this;
|
|
53
53
|
};
|
|
54
54
|
// By default does nothing
|
|
55
|
-
NoopSpan.prototype.end = function (
|
|
55
|
+
NoopSpan.prototype.end = function (_endTime) { };
|
|
56
56
|
// isRecording always returns false for noopSpan.
|
|
57
57
|
NoopSpan.prototype.isRecording = function () {
|
|
58
58
|
return false;
|
|
59
59
|
};
|
|
60
60
|
// By default does nothing
|
|
61
|
-
NoopSpan.prototype.recordException = function (
|
|
61
|
+
NoopSpan.prototype.recordException = function (_exception, _time) { };
|
|
62
62
|
return NoopSpan;
|
|
63
63
|
}());
|
|
64
64
|
exports.NoopSpan = NoopSpan;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NoopSpan.js","sourceRoot":"","sources":["../../../src/trace/NoopSpan.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAQH,yDAA2D;AAE3D;;;;GAIG;AACH;IACE,kBACmB,YAAgD;QAAhD,6BAAA,EAAA,eAA4B,wCAAoB;QAAhD,iBAAY,GAAZ,YAAY,CAAoC;IAChE,CAAC;IAEJ,yBAAyB;IACzB,0BAAO,GAAP;QACE,OAAO,IAAI,CAAC,YAAY,CAAC;IAC3B,CAAC;IAED,0BAA0B;IAC1B,+BAAY,GAAZ,UAAa,
|
|
1
|
+
{"version":3,"file":"NoopSpan.js","sourceRoot":"","sources":["../../../src/trace/NoopSpan.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAQH,yDAA2D;AAE3D;;;;GAIG;AACH;IACE,kBACmB,YAAgD;QAAhD,6BAAA,EAAA,eAA4B,wCAAoB;QAAhD,iBAAY,GAAZ,YAAY,CAAoC;IAChE,CAAC;IAEJ,yBAAyB;IACzB,0BAAO,GAAP;QACE,OAAO,IAAI,CAAC,YAAY,CAAC;IAC3B,CAAC;IAED,0BAA0B;IAC1B,+BAAY,GAAZ,UAAa,IAAY,EAAE,MAAe;QACxC,OAAO,IAAI,CAAC;IACd,CAAC;IAED,0BAA0B;IAC1B,gCAAa,GAAb,UAAc,WAAuB;QACnC,OAAO,IAAI,CAAC;IACd,CAAC;IAED,0BAA0B;IAC1B,2BAAQ,GAAR,UAAS,KAAa,EAAE,WAAwB;QAC9C,OAAO,IAAI,CAAC;IACd,CAAC;IAED,0BAA0B;IAC1B,4BAAS,GAAT,UAAU,OAAe;QACvB,OAAO,IAAI,CAAC;IACd,CAAC;IAED,0BAA0B;IAC1B,6BAAU,GAAV,UAAW,KAAa;QACtB,OAAO,IAAI,CAAC;IACd,CAAC;IAED,0BAA0B;IAC1B,sBAAG,GAAH,UAAI,QAAoB,IAAS,CAAC;IAElC,iDAAiD;IACjD,8BAAW,GAAX;QACE,OAAO,KAAK,CAAC;IACf,CAAC;IAED,0BAA0B;IAC1B,kCAAe,GAAf,UAAgB,UAAqB,EAAE,KAAiB,IAAS,CAAC;IACpE,eAAC;AAAD,CAAC,AA7CD,IA6CC;AA7CY,4BAAQ;AA+CR,QAAA,SAAS,GAAG,IAAI,QAAQ,EAAE,CAAC"}
|
|
@@ -7,7 +7,7 @@ export declare class NoopTracer implements Tracer {
|
|
|
7
7
|
getCurrentSpan(): Span;
|
|
8
8
|
startSpan(name: string, options?: SpanOptions, context?: Context): Span;
|
|
9
9
|
withSpan<T extends (...args: unknown[]) => ReturnType<T>>(span: Span, fn: T): ReturnType<T>;
|
|
10
|
-
bind<T>(target: T,
|
|
10
|
+
bind<T>(target: T, _span?: Span): T;
|
|
11
11
|
}
|
|
12
12
|
export declare const NOOP_TRACER: NoopTracer;
|
|
13
13
|
//# sourceMappingURL=NoopTracer.d.ts.map
|
|
@@ -30,13 +30,12 @@ var NoopTracer = /** @class */ (function () {
|
|
|
30
30
|
};
|
|
31
31
|
// startSpan starts a noop span.
|
|
32
32
|
NoopTracer.prototype.startSpan = function (name, options, context) {
|
|
33
|
-
var
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
if (isSpanContext(parent) && spancontext_utils_1.isSpanContextValid(parent)) {
|
|
37
|
-
return new NoopSpan_1.NoopSpan(parent);
|
|
33
|
+
var root = Boolean(options === null || options === void 0 ? void 0 : options.root);
|
|
34
|
+
if (root) {
|
|
35
|
+
return NoopSpan_1.NOOP_SPAN;
|
|
38
36
|
}
|
|
39
|
-
|
|
37
|
+
var parentFromContext = context && context_1.getParentSpanContext(context);
|
|
38
|
+
if (isSpanContext(parentFromContext) &&
|
|
40
39
|
spancontext_utils_1.isSpanContextValid(parentFromContext)) {
|
|
41
40
|
return new NoopSpan_1.NoopSpan(parentFromContext);
|
|
42
41
|
}
|
|
@@ -47,7 +46,7 @@ var NoopTracer = /** @class */ (function () {
|
|
|
47
46
|
NoopTracer.prototype.withSpan = function (span, fn) {
|
|
48
47
|
return fn();
|
|
49
48
|
};
|
|
50
|
-
NoopTracer.prototype.bind = function (target,
|
|
49
|
+
NoopTracer.prototype.bind = function (target, _span) {
|
|
51
50
|
return target;
|
|
52
51
|
};
|
|
53
52
|
return NoopTracer;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NoopTracer.js","sourceRoot":"","sources":["../../../src/trace/NoopTracer.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAIH,uCAAiD;AACjD,yDAAyD;AACzD,
|
|
1
|
+
{"version":3,"file":"NoopTracer.js","sourceRoot":"","sources":["../../../src/trace/NoopTracer.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAIH,uCAAiD;AACjD,yDAAyD;AACzD,8CAA0D;AAE1D;;GAEG;AACH;IAAA;IAkCA,CAAC;IAjCC,mCAAc,GAAd;QACE,OAAO,oBAAS,CAAC;IACnB,CAAC;IAED,gCAAgC;IAChC,8BAAS,GAAT,UAAU,IAAY,EAAE,OAAqB,EAAE,OAAiB;QAC9D,IAAM,IAAI,GAAG,OAAO,CAAC,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,IAAI,CAAC,CAAC;QACpC,IAAI,IAAI,EAAE;YACR,OAAO,oBAAS,CAAC;SAClB;QAED,IAAM,iBAAiB,GAAG,OAAO,IAAI,8BAAoB,CAAC,OAAO,CAAC,CAAC;QAEnE,IACE,aAAa,CAAC,iBAAiB,CAAC;YAChC,sCAAkB,CAAC,iBAAiB,CAAC,EACrC;YACA,OAAO,IAAI,mBAAQ,CAAC,iBAAiB,CAAC,CAAC;SACxC;aAAM;YACL,OAAO,oBAAS,CAAC;SAClB;IACH,CAAC;IAED,6BAAQ,GAAR,UACE,IAAU,EACV,EAAK;QAEL,OAAO,EAAE,EAAE,CAAC;IACd,CAAC;IAED,yBAAI,GAAJ,UAAQ,MAAS,EAAE,KAAY;QAC7B,OAAO,MAAM,CAAC;IAChB,CAAC;IACH,iBAAC;AAAD,CAAC,AAlCD,IAkCC;AAlCY,gCAAU;AAoCvB,SAAS,aAAa,CAAC,WAAgB;IACrC,OAAO,CACL,OAAO,WAAW,KAAK,QAAQ;QAC/B,OAAO,WAAW,CAAC,QAAQ,CAAC,KAAK,QAAQ;QACzC,OAAO,WAAW,CAAC,SAAS,CAAC,KAAK,QAAQ;QAC1C,OAAO,WAAW,CAAC,YAAY,CAAC,KAAK,QAAQ,CAC9C,CAAC;AACJ,CAAC;AAEY,QAAA,WAAW,GAAG,IAAI,UAAU,EAAE,CAAC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { SpanKind } from './span_kind';
|
|
1
|
+
import { Context } from '@opentelemetry/context-base';
|
|
3
2
|
import { Attributes } from './attributes';
|
|
4
3
|
import { Link } from './link';
|
|
5
4
|
import { SamplingResult } from './SamplingResult';
|
|
5
|
+
import { SpanKind } from './span_kind';
|
|
6
6
|
/**
|
|
7
7
|
* This interface represent a sampler. Sampling is a mechanism to control the
|
|
8
8
|
* noise and overhead introduced by OpenTelemetry by reducing the number of
|
|
@@ -12,8 +12,7 @@ export interface Sampler {
|
|
|
12
12
|
/**
|
|
13
13
|
* Checks whether span needs to be created and tracked.
|
|
14
14
|
*
|
|
15
|
-
* @param
|
|
16
|
-
* Can be null.
|
|
15
|
+
* @param context Parent Context which may contain a span.
|
|
17
16
|
* @param traceId of the span to be created. It can be different from the
|
|
18
17
|
* traceId in the {@link SpanContext}. Typically in situations when the
|
|
19
18
|
* span to be created starts a new trace.
|
|
@@ -24,7 +23,7 @@ export interface Sampler {
|
|
|
24
23
|
* be created. Typically useful for batch operations.
|
|
25
24
|
* @returns a {@link SamplingResult}.
|
|
26
25
|
*/
|
|
27
|
-
shouldSample(
|
|
26
|
+
shouldSample(context: Context, traceId: string, spanName: string, spanKind: SpanKind, attributes: Attributes, links: Link[]): SamplingResult;
|
|
28
27
|
/** Returns the sampler name or short description with the configuration. */
|
|
29
28
|
toString(): string;
|
|
30
29
|
}
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import { Attributes } from './attributes';
|
|
2
2
|
import { Link } from './link';
|
|
3
3
|
import { SpanKind } from './span_kind';
|
|
4
|
-
import { Span } from './span';
|
|
5
|
-
import { SpanContext } from './span_context';
|
|
6
4
|
/**
|
|
7
5
|
* Options needed for span creation
|
|
8
6
|
*/
|
|
@@ -16,20 +14,9 @@ export interface SpanOptions {
|
|
|
16
14
|
attributes?: Attributes;
|
|
17
15
|
/** {@link Link}s span to other spans */
|
|
18
16
|
links?: Link[];
|
|
19
|
-
/**
|
|
20
|
-
* This option is NOT RECOMMENDED for normal use and should ONLY be used
|
|
21
|
-
* if your application manages context manually without the global context
|
|
22
|
-
* manager, or you are trying to override the parent extracted from context.
|
|
23
|
-
*
|
|
24
|
-
* A parent `SpanContext` (or `Span`, for convenience) that the newly-started
|
|
25
|
-
* span will be the child of. This overrides the parent span extracted from
|
|
26
|
-
* the currently active context.
|
|
27
|
-
*
|
|
28
|
-
* A null value here should prevent the SDK from extracting a parent from
|
|
29
|
-
* the current context, forcing the new span to be a root span.
|
|
30
|
-
*/
|
|
31
|
-
parent?: Span | SpanContext | null;
|
|
32
17
|
/** A manually specified start time for the created `Span` object. */
|
|
33
18
|
startTime?: number;
|
|
19
|
+
/** The new span should be a root span. (Ignore parent from context). */
|
|
20
|
+
root?: boolean;
|
|
34
21
|
}
|
|
35
22
|
//# sourceMappingURL=SpanOptions.d.ts.map
|
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
export interface Attributes {
|
|
2
2
|
[attributeKey: string]: AttributeValue | undefined;
|
|
3
3
|
}
|
|
4
|
+
/**
|
|
5
|
+
* Attribute values may be any non-nullish primitive value except an object.
|
|
6
|
+
*
|
|
7
|
+
* null or undefined attribute values are invalid and will result in undefined behavior.
|
|
8
|
+
*/
|
|
4
9
|
export declare type AttributeValue = string | number | boolean | Array<null | undefined | string> | Array<null | undefined | number> | Array<null | undefined | boolean>;
|
|
5
10
|
//# sourceMappingURL=attributes.d.ts.map
|
|
@@ -29,13 +29,16 @@ export interface Span {
|
|
|
29
29
|
* Sets a single Attribute with the key and value passed as arguments.
|
|
30
30
|
*
|
|
31
31
|
* @param key the key for this attribute.
|
|
32
|
-
* @param value the value for this attribute.
|
|
32
|
+
* @param value the value for this attribute. Setting a value null or
|
|
33
|
+
* undefined is invalid and will result in undefined behavior.
|
|
33
34
|
*/
|
|
34
35
|
setAttribute(key: string, value?: AttributeValue): this;
|
|
35
36
|
/**
|
|
36
37
|
* Sets attributes to the span.
|
|
37
38
|
*
|
|
38
39
|
* @param attributes the attributes that will be added.
|
|
40
|
+
* null or undefined attribute values
|
|
41
|
+
* are invalid and will result in undefined behavior.
|
|
39
42
|
*/
|
|
40
43
|
setAttributes(attributes: Attributes): this;
|
|
41
44
|
/**
|
|
@@ -50,7 +53,7 @@ export interface Span {
|
|
|
50
53
|
addEvent(name: string, attributesOrStartTime?: Attributes | TimeInput, startTime?: TimeInput): this;
|
|
51
54
|
/**
|
|
52
55
|
* Sets a status to the span. If used, this will override the default Span
|
|
53
|
-
* status. Default is {@link
|
|
56
|
+
* status. Default is {@link StatusCode.UNSET}. SetStatus overrides the value
|
|
54
57
|
* of previous calls to SetStatus on the Span.
|
|
55
58
|
*
|
|
56
59
|
* @param status the Status to set.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { TraceState } from './trace_state';
|
|
2
2
|
/**
|
|
3
3
|
* A SpanContext represents the portion of a {@link Span} which must be
|
|
4
|
-
* serialized and propagated along side of a {@link
|
|
4
|
+
* serialized and propagated along side of a {@link Baggage}.
|
|
5
5
|
*/
|
|
6
6
|
export interface SpanContext {
|
|
7
7
|
/**
|
|
@@ -1,143 +1,25 @@
|
|
|
1
1
|
export interface Status {
|
|
2
|
-
/** The
|
|
3
|
-
code:
|
|
2
|
+
/** The status code of this message. */
|
|
3
|
+
code: StatusCode;
|
|
4
4
|
/** A developer-facing error message. */
|
|
5
5
|
message?: string;
|
|
6
6
|
}
|
|
7
7
|
/**
|
|
8
|
-
* An enumeration of
|
|
8
|
+
* An enumeration of status codes.
|
|
9
9
|
*/
|
|
10
|
-
export declare enum
|
|
10
|
+
export declare enum StatusCode {
|
|
11
11
|
/**
|
|
12
|
-
*
|
|
12
|
+
* The operation has been validated by an Application developer or
|
|
13
|
+
* Operator to have completed successfully.
|
|
13
14
|
*/
|
|
14
15
|
OK = 0,
|
|
15
16
|
/**
|
|
16
|
-
* The
|
|
17
|
+
* The default status.
|
|
17
18
|
*/
|
|
18
|
-
|
|
19
|
+
UNSET = 1,
|
|
19
20
|
/**
|
|
20
|
-
*
|
|
21
|
-
* if a status value received from another address space belongs to
|
|
22
|
-
* an error-space that is not known in this address space. Also
|
|
23
|
-
* errors raised by APIs that do not return enough error information
|
|
24
|
-
* may be converted to this error.
|
|
21
|
+
* The operation contains an error.
|
|
25
22
|
*/
|
|
26
|
-
|
|
27
|
-
/**
|
|
28
|
-
* Client specified an invalid argument. Note that this differs
|
|
29
|
-
* from FAILED_PRECONDITION. INVALID_ARGUMENT indicates arguments
|
|
30
|
-
* that are problematic regardless of the state of the system
|
|
31
|
-
* (e.g., a malformed file name).
|
|
32
|
-
*/
|
|
33
|
-
INVALID_ARGUMENT = 3,
|
|
34
|
-
/**
|
|
35
|
-
* Deadline expired before operation could complete. For operations
|
|
36
|
-
* that change the state of the system, this error may be returned
|
|
37
|
-
* even if the operation has completed successfully. For example, a
|
|
38
|
-
* successful response from a server could have been delayed long
|
|
39
|
-
* enough for the deadline to expire.
|
|
40
|
-
*/
|
|
41
|
-
DEADLINE_EXCEEDED = 4,
|
|
42
|
-
/**
|
|
43
|
-
* Some requested entity (e.g., file or directory) was not found.
|
|
44
|
-
*/
|
|
45
|
-
NOT_FOUND = 5,
|
|
46
|
-
/**
|
|
47
|
-
* Some entity that we attempted to create (e.g., file or directory)
|
|
48
|
-
* already exists.
|
|
49
|
-
*/
|
|
50
|
-
ALREADY_EXISTS = 6,
|
|
51
|
-
/**
|
|
52
|
-
* The caller does not have permission to execute the specified
|
|
53
|
-
* operation. PERMISSION_DENIED must not be used for rejections
|
|
54
|
-
* caused by exhausting some resource (use RESOURCE_EXHAUSTED
|
|
55
|
-
* instead for those errors). PERMISSION_DENIED must not be
|
|
56
|
-
* used if the caller can not be identified (use UNAUTHENTICATED
|
|
57
|
-
* instead for those errors).
|
|
58
|
-
*/
|
|
59
|
-
PERMISSION_DENIED = 7,
|
|
60
|
-
/**
|
|
61
|
-
* Some resource has been exhausted, perhaps a per-user quota, or
|
|
62
|
-
* perhaps the entire file system is out of space.
|
|
63
|
-
*/
|
|
64
|
-
RESOURCE_EXHAUSTED = 8,
|
|
65
|
-
/**
|
|
66
|
-
* Operation was rejected because the system is not in a state
|
|
67
|
-
* required for the operation's execution. For example, directory
|
|
68
|
-
* to be deleted may be non-empty, an rmdir operation is applied to
|
|
69
|
-
* a non-directory, etc.
|
|
70
|
-
*
|
|
71
|
-
* A litmus test that may help a service implementor in deciding
|
|
72
|
-
* between FAILED_PRECONDITION, ABORTED, and UNAVAILABLE:
|
|
73
|
-
*
|
|
74
|
-
* - Use UNAVAILABLE if the client can retry just the failing call.
|
|
75
|
-
* - Use ABORTED if the client should retry at a higher-level
|
|
76
|
-
* (e.g., restarting a read-modify-write sequence).
|
|
77
|
-
* - Use FAILED_PRECONDITION if the client should not retry until
|
|
78
|
-
* the system state has been explicitly fixed. E.g., if an "rmdir"
|
|
79
|
-
* fails because the directory is non-empty, FAILED_PRECONDITION
|
|
80
|
-
* should be returned since the client should not retry unless
|
|
81
|
-
* they have first fixed up the directory by deleting files from it.
|
|
82
|
-
* - Use FAILED_PRECONDITION if the client performs conditional
|
|
83
|
-
* REST Get/Update/Delete on a resource and the resource on the
|
|
84
|
-
* server does not match the condition. E.g., conflicting
|
|
85
|
-
* read-modify-write on the same resource.
|
|
86
|
-
*/
|
|
87
|
-
FAILED_PRECONDITION = 9,
|
|
88
|
-
/**
|
|
89
|
-
* The operation was aborted, typically due to a concurrency issue
|
|
90
|
-
* like sequencer check failures, transaction aborts, etc.
|
|
91
|
-
*
|
|
92
|
-
* See litmus test above for deciding between FAILED_PRECONDITION,
|
|
93
|
-
* ABORTED, and UNAVAILABLE.
|
|
94
|
-
*/
|
|
95
|
-
ABORTED = 10,
|
|
96
|
-
/**
|
|
97
|
-
* Operation was attempted past the valid range. E.g., seeking or
|
|
98
|
-
* reading past end of file.
|
|
99
|
-
*
|
|
100
|
-
* Unlike INVALID_ARGUMENT, this error indicates a problem that may
|
|
101
|
-
* be fixed if the system state changes. For example, a 32-bit file
|
|
102
|
-
* system will generate INVALID_ARGUMENT if asked to read at an
|
|
103
|
-
* offset that is not in the range [0,2^32-1], but it will generate
|
|
104
|
-
* OUT_OF_RANGE if asked to read from an offset past the current
|
|
105
|
-
* file size.
|
|
106
|
-
*
|
|
107
|
-
* There is a fair bit of overlap between FAILED_PRECONDITION and
|
|
108
|
-
* OUT_OF_RANGE. We recommend using OUT_OF_RANGE (the more specific
|
|
109
|
-
* error) when it applies so that callers who are iterating through
|
|
110
|
-
* a space can easily look for an OUT_OF_RANGE error to detect when
|
|
111
|
-
* they are done.
|
|
112
|
-
*/
|
|
113
|
-
OUT_OF_RANGE = 11,
|
|
114
|
-
/**
|
|
115
|
-
* Operation is not implemented or not supported/enabled in this service.
|
|
116
|
-
*/
|
|
117
|
-
UNIMPLEMENTED = 12,
|
|
118
|
-
/**
|
|
119
|
-
* Internal errors. Means some invariants expected by underlying
|
|
120
|
-
* system has been broken. If you see one of these errors,
|
|
121
|
-
* something is very broken.
|
|
122
|
-
*/
|
|
123
|
-
INTERNAL = 13,
|
|
124
|
-
/**
|
|
125
|
-
* The service is currently unavailable. This is a most likely a
|
|
126
|
-
* transient condition and may be corrected by retrying with
|
|
127
|
-
* a backoff.
|
|
128
|
-
*
|
|
129
|
-
* See litmus test above for deciding between FAILED_PRECONDITION,
|
|
130
|
-
* ABORTED, and UNAVAILABLE.
|
|
131
|
-
*/
|
|
132
|
-
UNAVAILABLE = 14,
|
|
133
|
-
/**
|
|
134
|
-
* Unrecoverable data loss or corruption.
|
|
135
|
-
*/
|
|
136
|
-
DATA_LOSS = 15,
|
|
137
|
-
/**
|
|
138
|
-
* The request does not have valid authentication credentials for the
|
|
139
|
-
* operation.
|
|
140
|
-
*/
|
|
141
|
-
UNAUTHENTICATED = 16
|
|
23
|
+
ERROR = 2
|
|
142
24
|
}
|
|
143
25
|
//# sourceMappingURL=status.d.ts.map
|