@opentelemetry/web-common 0.57.2 → 0.200.0-dev.1
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/build/esm/SessionLogRecordProcessor.js +10 -56
- package/build/esm/SessionLogRecordProcessor.js.map +1 -1
- package/build/esm/SessionSpanProcessor.js +12 -58
- package/build/esm/SessionSpanProcessor.js.map +1 -1
- package/build/esm/semconv.d.ts +7 -0
- package/build/esm/semconv.js +22 -0
- package/build/esm/semconv.js.map +1 -0
- package/build/esm/version.d.ts +1 -1
- package/build/esm/version.js +1 -1
- package/build/esm/version.js.map +1 -1
- package/build/esnext/SessionLogRecordProcessor.js +3 -3
- package/build/esnext/SessionLogRecordProcessor.js.map +1 -1
- package/build/esnext/SessionSpanProcessor.js +3 -3
- package/build/esnext/SessionSpanProcessor.js.map +1 -1
- package/build/esnext/semconv.d.ts +7 -0
- package/build/esnext/semconv.js +22 -0
- package/build/esnext/semconv.js.map +1 -0
- package/build/esnext/version.d.ts +1 -1
- package/build/esnext/version.js +1 -1
- package/build/esnext/version.js.map +1 -1
- package/build/src/SessionLogRecordProcessor.js +4 -4
- package/build/src/SessionLogRecordProcessor.js.map +1 -1
- package/build/src/SessionSpanProcessor.js +4 -4
- package/build/src/SessionSpanProcessor.js.map +1 -1
- package/build/src/semconv.d.ts +7 -0
- package/build/src/semconv.js +25 -0
- package/build/src/semconv.js.map +1 -0
- package/build/src/version.d.ts +1 -1
- package/build/src/version.js +1 -1
- package/build/src/version.js.map +1 -1
- package/package.json +16 -17
|
@@ -13,75 +13,29 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
-
|
|
17
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
18
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
19
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
20
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
21
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
22
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
23
|
-
});
|
|
24
|
-
};
|
|
25
|
-
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
26
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
27
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
28
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
29
|
-
function step(op) {
|
|
30
|
-
if (f) throw new TypeError("Generator is already executing.");
|
|
31
|
-
while (_) try {
|
|
32
|
-
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
33
|
-
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
34
|
-
switch (op[0]) {
|
|
35
|
-
case 0: case 1: t = op; break;
|
|
36
|
-
case 4: _.label++; return { value: op[1], done: false };
|
|
37
|
-
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
38
|
-
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
39
|
-
default:
|
|
40
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
41
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
42
|
-
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
43
|
-
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
44
|
-
if (t[2]) _.ops.pop();
|
|
45
|
-
_.trys.pop(); continue;
|
|
46
|
-
}
|
|
47
|
-
op = body.call(thisArg, _);
|
|
48
|
-
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
49
|
-
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
50
|
-
}
|
|
51
|
-
};
|
|
52
|
-
import { ATTR_SESSION_ID } from '@opentelemetry/semantic-conventions/incubating';
|
|
16
|
+
import { ATTR_SESSION_ID } from './semconv';
|
|
53
17
|
/**
|
|
54
18
|
* SessionLogRecordProcessor is a {@link SpanProcessor} adds the session.id attribute
|
|
55
19
|
*/
|
|
56
|
-
|
|
57
|
-
|
|
20
|
+
export class SessionLogRecordProcessor {
|
|
21
|
+
_sessionIdProvider;
|
|
22
|
+
constructor(sessionIdProvider) {
|
|
58
23
|
this._sessionIdProvider = sessionIdProvider;
|
|
59
24
|
}
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
var sessionId = (_a = this._sessionIdProvider) === null || _a === void 0 ? void 0 : _a.getSessionId();
|
|
25
|
+
onEmit(logRecord, _context) {
|
|
26
|
+
const sessionId = this._sessionIdProvider?.getSessionId();
|
|
63
27
|
if (sessionId) {
|
|
64
28
|
logRecord.setAttribute(ATTR_SESSION_ID, sessionId);
|
|
65
29
|
}
|
|
66
|
-
}
|
|
30
|
+
}
|
|
67
31
|
/**
|
|
68
32
|
* Forces to export all finished spans
|
|
69
33
|
*/
|
|
70
|
-
|
|
71
|
-
return __awaiter(this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
72
|
-
return [2 /*return*/];
|
|
73
|
-
}); });
|
|
74
|
-
};
|
|
34
|
+
async forceFlush() { }
|
|
75
35
|
/**
|
|
76
36
|
* Shuts down the processor. Called when SDK is shut down. This is an
|
|
77
37
|
* opportunity for processor to do any cleanup required.
|
|
78
38
|
*/
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
return [2 /*return*/];
|
|
82
|
-
}); });
|
|
83
|
-
};
|
|
84
|
-
return SessionLogRecordProcessor;
|
|
85
|
-
}());
|
|
86
|
-
export { SessionLogRecordProcessor };
|
|
39
|
+
async shutdown() { }
|
|
40
|
+
}
|
|
87
41
|
//# sourceMappingURL=SessionLogRecordProcessor.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SessionLogRecordProcessor.js","sourceRoot":"","sources":["../../src/SessionLogRecordProcessor.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG
|
|
1
|
+
{"version":3,"file":"SessionLogRecordProcessor.js","sourceRoot":"","sources":["../../src/SessionLogRecordProcessor.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAIH,OAAO,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAG5C;;GAEG;AACH,MAAM,OAAO,yBAAyB;IAC5B,kBAAkB,CAAkB;IAE5C,YAAY,iBAAkC;QAC5C,IAAI,CAAC,kBAAkB,GAAG,iBAAiB,CAAC;IAC9C,CAAC;IAED,MAAM,CAAC,SAAoB,EAAE,QAA8B;QACzD,MAAM,SAAS,GAAG,IAAI,CAAC,kBAAkB,EAAE,YAAY,EAAE,CAAC;QAC1D,IAAI,SAAS,EAAE;YACb,SAAS,CAAC,YAAY,CAAC,eAAe,EAAE,SAAS,CAAC,CAAC;SACpD;IACH,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,UAAU,KAAmB,CAAC;IAEpC;;;OAGG;IACH,KAAK,CAAC,QAAQ,KAAmB,CAAC;CACnC","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 '@opentelemetry/api';\nimport { LogRecord, LogRecordProcessor } from '@opentelemetry/sdk-logs';\nimport { ATTR_SESSION_ID } from './semconv';\nimport { SessionProvider } from './types/SessionProvider';\n\n/**\n * SessionLogRecordProcessor is a {@link SpanProcessor} adds the session.id attribute\n */\nexport class SessionLogRecordProcessor implements LogRecordProcessor {\n private _sessionIdProvider: SessionProvider;\n\n constructor(sessionIdProvider: SessionProvider) {\n this._sessionIdProvider = sessionIdProvider;\n }\n\n onEmit(logRecord: LogRecord, _context?: Context | undefined): void {\n const sessionId = this._sessionIdProvider?.getSessionId();\n if (sessionId) {\n logRecord.setAttribute(ATTR_SESSION_ID, sessionId);\n }\n }\n\n /**\n * Forces to export all finished spans\n */\n async forceFlush(): Promise<void> {}\n\n /**\n * Shuts down the processor. Called when SDK is shut down. This is an\n * opportunity for processor to do any cleanup required.\n */\n async shutdown(): Promise<void> {}\n}\n"]}
|
|
@@ -13,88 +13,42 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
-
|
|
17
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
18
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
19
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
20
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
21
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
22
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
23
|
-
});
|
|
24
|
-
};
|
|
25
|
-
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
26
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
27
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
28
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
29
|
-
function step(op) {
|
|
30
|
-
if (f) throw new TypeError("Generator is already executing.");
|
|
31
|
-
while (_) try {
|
|
32
|
-
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
33
|
-
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
34
|
-
switch (op[0]) {
|
|
35
|
-
case 0: case 1: t = op; break;
|
|
36
|
-
case 4: _.label++; return { value: op[1], done: false };
|
|
37
|
-
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
38
|
-
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
39
|
-
default:
|
|
40
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
41
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
42
|
-
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
43
|
-
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
44
|
-
if (t[2]) _.ops.pop();
|
|
45
|
-
_.trys.pop(); continue;
|
|
46
|
-
}
|
|
47
|
-
op = body.call(thisArg, _);
|
|
48
|
-
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
49
|
-
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
50
|
-
}
|
|
51
|
-
};
|
|
52
|
-
import { ATTR_SESSION_ID } from '@opentelemetry/semantic-conventions/incubating';
|
|
16
|
+
import { ATTR_SESSION_ID } from './semconv';
|
|
53
17
|
/**
|
|
54
18
|
* SessionSpanProcessor is a {@link SpanProcessor} that adds the session.id attribute
|
|
55
19
|
*/
|
|
56
|
-
|
|
57
|
-
|
|
20
|
+
export class SessionSpanProcessor {
|
|
21
|
+
_sessionIdProvider;
|
|
22
|
+
constructor(sessionIdProvider) {
|
|
58
23
|
this._sessionIdProvider = sessionIdProvider;
|
|
59
24
|
}
|
|
60
25
|
/**
|
|
61
26
|
* Forces to export all finished spans
|
|
62
27
|
*/
|
|
63
|
-
|
|
64
|
-
return __awaiter(this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
65
|
-
return [2 /*return*/];
|
|
66
|
-
}); });
|
|
67
|
-
};
|
|
28
|
+
async forceFlush() { }
|
|
68
29
|
/**
|
|
69
30
|
* Called when a {@link Span} is started, if the `span.isRecording()`
|
|
70
31
|
* returns true.
|
|
71
32
|
* @param span the Span that just started.
|
|
72
33
|
*/
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
var sessionId = (_a = this._sessionIdProvider) === null || _a === void 0 ? void 0 : _a.getSessionId();
|
|
34
|
+
onStart(span, _parentContext) {
|
|
35
|
+
const sessionId = this._sessionIdProvider?.getSessionId();
|
|
76
36
|
if (sessionId) {
|
|
77
37
|
span.setAttribute(ATTR_SESSION_ID, sessionId);
|
|
78
38
|
}
|
|
79
|
-
}
|
|
39
|
+
}
|
|
80
40
|
/**
|
|
81
41
|
* Called when a {@link ReadableSpan} is ended, if the `span.isRecording()`
|
|
82
42
|
* returns true.
|
|
83
43
|
* @param span the Span that just ended.
|
|
84
44
|
*/
|
|
85
|
-
|
|
45
|
+
onEnd(_) {
|
|
86
46
|
// no-op
|
|
87
|
-
}
|
|
47
|
+
}
|
|
88
48
|
/**
|
|
89
49
|
* Shuts down the processor. Called when SDK is shut down. This is an
|
|
90
50
|
* opportunity for processor to do any cleanup required.
|
|
91
51
|
*/
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
return [2 /*return*/];
|
|
95
|
-
}); });
|
|
96
|
-
};
|
|
97
|
-
return SessionSpanProcessor;
|
|
98
|
-
}());
|
|
99
|
-
export { SessionSpanProcessor };
|
|
52
|
+
async shutdown() { }
|
|
53
|
+
}
|
|
100
54
|
//# sourceMappingURL=SessionSpanProcessor.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SessionSpanProcessor.js","sourceRoot":"","sources":["../../src/SessionSpanProcessor.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG
|
|
1
|
+
{"version":3,"file":"SessionSpanProcessor.js","sourceRoot":"","sources":["../../src/SessionSpanProcessor.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAQH,OAAO,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAG5C;;GAEG;AACH,MAAM,OAAO,oBAAoB;IACvB,kBAAkB,CAAkB;IAE5C,YAAY,iBAAkC;QAC5C,IAAI,CAAC,kBAAkB,GAAG,iBAAiB,CAAC;IAC9C,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,UAAU,KAAmB,CAAC;IAEpC;;;;OAIG;IACH,OAAO,CAAC,IAAU,EAAE,cAAuB;QACzC,MAAM,SAAS,GAAG,IAAI,CAAC,kBAAkB,EAAE,YAAY,EAAE,CAAC;QAC1D,IAAI,SAAS,EAAE;YACb,IAAI,CAAC,YAAY,CAAC,eAAe,EAAE,SAAS,CAAC,CAAC;SAC/C;IACH,CAAC;IAED;;;;OAIG;IACH,KAAK,CAAC,CAAe;QACnB,QAAQ;IACV,CAAC;IAED;;;OAGG;IACH,KAAK,CAAC,QAAQ,KAAmB,CAAC;CACnC","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 '@opentelemetry/api';\nimport {\n SpanProcessor,\n Span,\n ReadableSpan,\n} from '@opentelemetry/sdk-trace-base';\nimport { ATTR_SESSION_ID } from './semconv';\nimport { SessionProvider } from './types/SessionProvider';\n\n/**\n * SessionSpanProcessor is a {@link SpanProcessor} that adds the session.id attribute\n */\nexport class SessionSpanProcessor implements SpanProcessor {\n private _sessionIdProvider: SessionProvider;\n\n constructor(sessionIdProvider: SessionProvider) {\n this._sessionIdProvider = sessionIdProvider;\n }\n\n /**\n * Forces to export all finished spans\n */\n async forceFlush(): Promise<void> {}\n\n /**\n * Called when a {@link Span} is started, if the `span.isRecording()`\n * returns true.\n * @param span the Span that just started.\n */\n onStart(span: Span, _parentContext: Context): void {\n const sessionId = this._sessionIdProvider?.getSessionId();\n if (sessionId) {\n span.setAttribute(ATTR_SESSION_ID, sessionId);\n }\n }\n\n /**\n * Called when a {@link ReadableSpan} is ended, if the `span.isRecording()`\n * returns true.\n * @param span the Span that just ended.\n */\n onEnd(_: ReadableSpan): void {\n // no-op\n }\n\n /**\n * Shuts down the processor. Called when SDK is shut down. This is an\n * opportunity for processor to do any cleanup required.\n */\n async shutdown(): Promise<void> {}\n}\n"]}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright The OpenTelemetry Authors
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* https://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
/**
|
|
17
|
+
* A unique id to identify a session.
|
|
18
|
+
*
|
|
19
|
+
* @example "00112233-4455-6677-8899-aabbccddeeff"
|
|
20
|
+
*/
|
|
21
|
+
export const ATTR_SESSION_ID = 'session.id';
|
|
22
|
+
//# sourceMappingURL=semconv.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"semconv.js","sourceRoot":"","sources":["../../src/semconv.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH;;;;GAIG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG,YAAqB,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/**\n * A unique id to identify a session.\n *\n * @example \"00112233-4455-6677-8899-aabbccddeeff\"\n */\nexport const ATTR_SESSION_ID = 'session.id' as const;\n"]}
|
package/build/esm/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.
|
|
1
|
+
export declare const VERSION = "0.200.0-dev.1";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/build/esm/version.js
CHANGED
package/build/esm/version.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.js","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,4DAA4D;AAC5D,MAAM,CAAC,
|
|
1
|
+
{"version":3,"file":"version.js","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,4DAA4D;AAC5D,MAAM,CAAC,MAAM,OAAO,GAAG,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// this is autogenerated file, see scripts/version-update.js\nexport const VERSION = '0.200.0-dev.1';\n"]}
|
|
@@ -13,17 +13,17 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
-
import { ATTR_SESSION_ID } from '
|
|
16
|
+
import { ATTR_SESSION_ID } from './semconv';
|
|
17
17
|
/**
|
|
18
18
|
* SessionLogRecordProcessor is a {@link SpanProcessor} adds the session.id attribute
|
|
19
19
|
*/
|
|
20
20
|
export class SessionLogRecordProcessor {
|
|
21
|
+
_sessionIdProvider;
|
|
21
22
|
constructor(sessionIdProvider) {
|
|
22
23
|
this._sessionIdProvider = sessionIdProvider;
|
|
23
24
|
}
|
|
24
25
|
onEmit(logRecord, _context) {
|
|
25
|
-
|
|
26
|
-
const sessionId = (_a = this._sessionIdProvider) === null || _a === void 0 ? void 0 : _a.getSessionId();
|
|
26
|
+
const sessionId = this._sessionIdProvider?.getSessionId();
|
|
27
27
|
if (sessionId) {
|
|
28
28
|
logRecord.setAttribute(ATTR_SESSION_ID, sessionId);
|
|
29
29
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SessionLogRecordProcessor.js","sourceRoot":"","sources":["../../src/SessionLogRecordProcessor.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAIH,OAAO,EAAE,eAAe,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"SessionLogRecordProcessor.js","sourceRoot":"","sources":["../../src/SessionLogRecordProcessor.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAIH,OAAO,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAG5C;;GAEG;AACH,MAAM,OAAO,yBAAyB;IAC5B,kBAAkB,CAAkB;IAE5C,YAAY,iBAAkC;QAC5C,IAAI,CAAC,kBAAkB,GAAG,iBAAiB,CAAC;IAC9C,CAAC;IAED,MAAM,CAAC,SAAoB,EAAE,QAA8B;QACzD,MAAM,SAAS,GAAG,IAAI,CAAC,kBAAkB,EAAE,YAAY,EAAE,CAAC;QAC1D,IAAI,SAAS,EAAE;YACb,SAAS,CAAC,YAAY,CAAC,eAAe,EAAE,SAAS,CAAC,CAAC;SACpD;IACH,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,UAAU,KAAmB,CAAC;IAEpC;;;OAGG;IACH,KAAK,CAAC,QAAQ,KAAmB,CAAC;CACnC","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 '@opentelemetry/api';\nimport { LogRecord, LogRecordProcessor } from '@opentelemetry/sdk-logs';\nimport { ATTR_SESSION_ID } from './semconv';\nimport { SessionProvider } from './types/SessionProvider';\n\n/**\n * SessionLogRecordProcessor is a {@link SpanProcessor} adds the session.id attribute\n */\nexport class SessionLogRecordProcessor implements LogRecordProcessor {\n private _sessionIdProvider: SessionProvider;\n\n constructor(sessionIdProvider: SessionProvider) {\n this._sessionIdProvider = sessionIdProvider;\n }\n\n onEmit(logRecord: LogRecord, _context?: Context | undefined): void {\n const sessionId = this._sessionIdProvider?.getSessionId();\n if (sessionId) {\n logRecord.setAttribute(ATTR_SESSION_ID, sessionId);\n }\n }\n\n /**\n * Forces to export all finished spans\n */\n async forceFlush(): Promise<void> {}\n\n /**\n * Shuts down the processor. Called when SDK is shut down. This is an\n * opportunity for processor to do any cleanup required.\n */\n async shutdown(): Promise<void> {}\n}\n"]}
|
|
@@ -13,11 +13,12 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
-
import { ATTR_SESSION_ID } from '
|
|
16
|
+
import { ATTR_SESSION_ID } from './semconv';
|
|
17
17
|
/**
|
|
18
18
|
* SessionSpanProcessor is a {@link SpanProcessor} that adds the session.id attribute
|
|
19
19
|
*/
|
|
20
20
|
export class SessionSpanProcessor {
|
|
21
|
+
_sessionIdProvider;
|
|
21
22
|
constructor(sessionIdProvider) {
|
|
22
23
|
this._sessionIdProvider = sessionIdProvider;
|
|
23
24
|
}
|
|
@@ -31,8 +32,7 @@ export class SessionSpanProcessor {
|
|
|
31
32
|
* @param span the Span that just started.
|
|
32
33
|
*/
|
|
33
34
|
onStart(span, _parentContext) {
|
|
34
|
-
|
|
35
|
-
const sessionId = (_a = this._sessionIdProvider) === null || _a === void 0 ? void 0 : _a.getSessionId();
|
|
35
|
+
const sessionId = this._sessionIdProvider?.getSessionId();
|
|
36
36
|
if (sessionId) {
|
|
37
37
|
span.setAttribute(ATTR_SESSION_ID, sessionId);
|
|
38
38
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SessionSpanProcessor.js","sourceRoot":"","sources":["../../src/SessionSpanProcessor.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAQH,OAAO,EAAE,eAAe,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"SessionSpanProcessor.js","sourceRoot":"","sources":["../../src/SessionSpanProcessor.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAQH,OAAO,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAG5C;;GAEG;AACH,MAAM,OAAO,oBAAoB;IACvB,kBAAkB,CAAkB;IAE5C,YAAY,iBAAkC;QAC5C,IAAI,CAAC,kBAAkB,GAAG,iBAAiB,CAAC;IAC9C,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,UAAU,KAAmB,CAAC;IAEpC;;;;OAIG;IACH,OAAO,CAAC,IAAU,EAAE,cAAuB;QACzC,MAAM,SAAS,GAAG,IAAI,CAAC,kBAAkB,EAAE,YAAY,EAAE,CAAC;QAC1D,IAAI,SAAS,EAAE;YACb,IAAI,CAAC,YAAY,CAAC,eAAe,EAAE,SAAS,CAAC,CAAC;SAC/C;IACH,CAAC;IAED;;;;OAIG;IACH,KAAK,CAAC,CAAe;QACnB,QAAQ;IACV,CAAC;IAED;;;OAGG;IACH,KAAK,CAAC,QAAQ,KAAmB,CAAC;CACnC","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 '@opentelemetry/api';\nimport {\n SpanProcessor,\n Span,\n ReadableSpan,\n} from '@opentelemetry/sdk-trace-base';\nimport { ATTR_SESSION_ID } from './semconv';\nimport { SessionProvider } from './types/SessionProvider';\n\n/**\n * SessionSpanProcessor is a {@link SpanProcessor} that adds the session.id attribute\n */\nexport class SessionSpanProcessor implements SpanProcessor {\n private _sessionIdProvider: SessionProvider;\n\n constructor(sessionIdProvider: SessionProvider) {\n this._sessionIdProvider = sessionIdProvider;\n }\n\n /**\n * Forces to export all finished spans\n */\n async forceFlush(): Promise<void> {}\n\n /**\n * Called when a {@link Span} is started, if the `span.isRecording()`\n * returns true.\n * @param span the Span that just started.\n */\n onStart(span: Span, _parentContext: Context): void {\n const sessionId = this._sessionIdProvider?.getSessionId();\n if (sessionId) {\n span.setAttribute(ATTR_SESSION_ID, sessionId);\n }\n }\n\n /**\n * Called when a {@link ReadableSpan} is ended, if the `span.isRecording()`\n * returns true.\n * @param span the Span that just ended.\n */\n onEnd(_: ReadableSpan): void {\n // no-op\n }\n\n /**\n * Shuts down the processor. Called when SDK is shut down. This is an\n * opportunity for processor to do any cleanup required.\n */\n async shutdown(): Promise<void> {}\n}\n"]}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright The OpenTelemetry Authors
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* https://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
/**
|
|
17
|
+
* A unique id to identify a session.
|
|
18
|
+
*
|
|
19
|
+
* @example "00112233-4455-6677-8899-aabbccddeeff"
|
|
20
|
+
*/
|
|
21
|
+
export const ATTR_SESSION_ID = 'session.id';
|
|
22
|
+
//# sourceMappingURL=semconv.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"semconv.js","sourceRoot":"","sources":["../../src/semconv.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH;;;;GAIG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG,YAAqB,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/**\n * A unique id to identify a session.\n *\n * @example \"00112233-4455-6677-8899-aabbccddeeff\"\n */\nexport const ATTR_SESSION_ID = 'session.id' as const;\n"]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.
|
|
1
|
+
export declare const VERSION = "0.200.0-dev.1";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/build/esnext/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.js","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,4DAA4D;AAC5D,MAAM,CAAC,MAAM,OAAO,GAAG,
|
|
1
|
+
{"version":3,"file":"version.js","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,4DAA4D;AAC5D,MAAM,CAAC,MAAM,OAAO,GAAG,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// this is autogenerated file, see scripts/version-update.js\nexport const VERSION = '0.200.0-dev.1';\n"]}
|
|
@@ -16,19 +16,19 @@
|
|
|
16
16
|
*/
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
18
|
exports.SessionLogRecordProcessor = void 0;
|
|
19
|
-
const
|
|
19
|
+
const semconv_1 = require("./semconv");
|
|
20
20
|
/**
|
|
21
21
|
* SessionLogRecordProcessor is a {@link SpanProcessor} adds the session.id attribute
|
|
22
22
|
*/
|
|
23
23
|
class SessionLogRecordProcessor {
|
|
24
|
+
_sessionIdProvider;
|
|
24
25
|
constructor(sessionIdProvider) {
|
|
25
26
|
this._sessionIdProvider = sessionIdProvider;
|
|
26
27
|
}
|
|
27
28
|
onEmit(logRecord, _context) {
|
|
28
|
-
|
|
29
|
-
const sessionId = (_a = this._sessionIdProvider) === null || _a === void 0 ? void 0 : _a.getSessionId();
|
|
29
|
+
const sessionId = this._sessionIdProvider?.getSessionId();
|
|
30
30
|
if (sessionId) {
|
|
31
|
-
logRecord.setAttribute(
|
|
31
|
+
logRecord.setAttribute(semconv_1.ATTR_SESSION_ID, sessionId);
|
|
32
32
|
}
|
|
33
33
|
}
|
|
34
34
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SessionLogRecordProcessor.js","sourceRoot":"","sources":["../../src/SessionLogRecordProcessor.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAIH
|
|
1
|
+
{"version":3,"file":"SessionLogRecordProcessor.js","sourceRoot":"","sources":["../../src/SessionLogRecordProcessor.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAIH,uCAA4C;AAG5C;;GAEG;AACH,MAAa,yBAAyB;IAC5B,kBAAkB,CAAkB;IAE5C,YAAY,iBAAkC;QAC5C,IAAI,CAAC,kBAAkB,GAAG,iBAAiB,CAAC;IAC9C,CAAC;IAED,MAAM,CAAC,SAAoB,EAAE,QAA8B;QACzD,MAAM,SAAS,GAAG,IAAI,CAAC,kBAAkB,EAAE,YAAY,EAAE,CAAC;QAC1D,IAAI,SAAS,EAAE;YACb,SAAS,CAAC,YAAY,CAAC,yBAAe,EAAE,SAAS,CAAC,CAAC;SACpD;IACH,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,UAAU,KAAmB,CAAC;IAEpC;;;OAGG;IACH,KAAK,CAAC,QAAQ,KAAmB,CAAC;CACnC;AAxBD,8DAwBC","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 '@opentelemetry/api';\nimport { LogRecord, LogRecordProcessor } from '@opentelemetry/sdk-logs';\nimport { ATTR_SESSION_ID } from './semconv';\nimport { SessionProvider } from './types/SessionProvider';\n\n/**\n * SessionLogRecordProcessor is a {@link SpanProcessor} adds the session.id attribute\n */\nexport class SessionLogRecordProcessor implements LogRecordProcessor {\n private _sessionIdProvider: SessionProvider;\n\n constructor(sessionIdProvider: SessionProvider) {\n this._sessionIdProvider = sessionIdProvider;\n }\n\n onEmit(logRecord: LogRecord, _context?: Context | undefined): void {\n const sessionId = this._sessionIdProvider?.getSessionId();\n if (sessionId) {\n logRecord.setAttribute(ATTR_SESSION_ID, sessionId);\n }\n }\n\n /**\n * Forces to export all finished spans\n */\n async forceFlush(): Promise<void> {}\n\n /**\n * Shuts down the processor. Called when SDK is shut down. This is an\n * opportunity for processor to do any cleanup required.\n */\n async shutdown(): Promise<void> {}\n}\n"]}
|
|
@@ -16,11 +16,12 @@
|
|
|
16
16
|
*/
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
18
|
exports.SessionSpanProcessor = void 0;
|
|
19
|
-
const
|
|
19
|
+
const semconv_1 = require("./semconv");
|
|
20
20
|
/**
|
|
21
21
|
* SessionSpanProcessor is a {@link SpanProcessor} that adds the session.id attribute
|
|
22
22
|
*/
|
|
23
23
|
class SessionSpanProcessor {
|
|
24
|
+
_sessionIdProvider;
|
|
24
25
|
constructor(sessionIdProvider) {
|
|
25
26
|
this._sessionIdProvider = sessionIdProvider;
|
|
26
27
|
}
|
|
@@ -34,10 +35,9 @@ class SessionSpanProcessor {
|
|
|
34
35
|
* @param span the Span that just started.
|
|
35
36
|
*/
|
|
36
37
|
onStart(span, _parentContext) {
|
|
37
|
-
|
|
38
|
-
const sessionId = (_a = this._sessionIdProvider) === null || _a === void 0 ? void 0 : _a.getSessionId();
|
|
38
|
+
const sessionId = this._sessionIdProvider?.getSessionId();
|
|
39
39
|
if (sessionId) {
|
|
40
|
-
span.setAttribute(
|
|
40
|
+
span.setAttribute(semconv_1.ATTR_SESSION_ID, sessionId);
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
43
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SessionSpanProcessor.js","sourceRoot":"","sources":["../../src/SessionSpanProcessor.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAQH
|
|
1
|
+
{"version":3,"file":"SessionSpanProcessor.js","sourceRoot":"","sources":["../../src/SessionSpanProcessor.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAQH,uCAA4C;AAG5C;;GAEG;AACH,MAAa,oBAAoB;IACvB,kBAAkB,CAAkB;IAE5C,YAAY,iBAAkC;QAC5C,IAAI,CAAC,kBAAkB,GAAG,iBAAiB,CAAC;IAC9C,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,UAAU,KAAmB,CAAC;IAEpC;;;;OAIG;IACH,OAAO,CAAC,IAAU,EAAE,cAAuB;QACzC,MAAM,SAAS,GAAG,IAAI,CAAC,kBAAkB,EAAE,YAAY,EAAE,CAAC;QAC1D,IAAI,SAAS,EAAE;YACb,IAAI,CAAC,YAAY,CAAC,yBAAe,EAAE,SAAS,CAAC,CAAC;SAC/C;IACH,CAAC;IAED;;;;OAIG;IACH,KAAK,CAAC,CAAe;QACnB,QAAQ;IACV,CAAC;IAED;;;OAGG;IACH,KAAK,CAAC,QAAQ,KAAmB,CAAC;CACnC;AAtCD,oDAsCC","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 '@opentelemetry/api';\nimport {\n SpanProcessor,\n Span,\n ReadableSpan,\n} from '@opentelemetry/sdk-trace-base';\nimport { ATTR_SESSION_ID } from './semconv';\nimport { SessionProvider } from './types/SessionProvider';\n\n/**\n * SessionSpanProcessor is a {@link SpanProcessor} that adds the session.id attribute\n */\nexport class SessionSpanProcessor implements SpanProcessor {\n private _sessionIdProvider: SessionProvider;\n\n constructor(sessionIdProvider: SessionProvider) {\n this._sessionIdProvider = sessionIdProvider;\n }\n\n /**\n * Forces to export all finished spans\n */\n async forceFlush(): Promise<void> {}\n\n /**\n * Called when a {@link Span} is started, if the `span.isRecording()`\n * returns true.\n * @param span the Span that just started.\n */\n onStart(span: Span, _parentContext: Context): void {\n const sessionId = this._sessionIdProvider?.getSessionId();\n if (sessionId) {\n span.setAttribute(ATTR_SESSION_ID, sessionId);\n }\n }\n\n /**\n * Called when a {@link ReadableSpan} is ended, if the `span.isRecording()`\n * returns true.\n * @param span the Span that just ended.\n */\n onEnd(_: ReadableSpan): void {\n // no-op\n }\n\n /**\n * Shuts down the processor. Called when SDK is shut down. This is an\n * opportunity for processor to do any cleanup required.\n */\n async shutdown(): Promise<void> {}\n}\n"]}
|
|
@@ -0,0 +1,25 @@
|
|
|
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.ATTR_SESSION_ID = void 0;
|
|
19
|
+
/**
|
|
20
|
+
* A unique id to identify a session.
|
|
21
|
+
*
|
|
22
|
+
* @example "00112233-4455-6677-8899-aabbccddeeff"
|
|
23
|
+
*/
|
|
24
|
+
exports.ATTR_SESSION_ID = 'session.id';
|
|
25
|
+
//# sourceMappingURL=semconv.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"semconv.js","sourceRoot":"","sources":["../../src/semconv.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAEH;;;;GAIG;AACU,QAAA,eAAe,GAAG,YAAqB,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/**\n * A unique id to identify a session.\n *\n * @example \"00112233-4455-6677-8899-aabbccddeeff\"\n */\nexport const ATTR_SESSION_ID = 'session.id' as const;\n"]}
|
package/build/src/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.
|
|
1
|
+
export declare const VERSION = "0.200.0-dev.1";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/build/src/version.js
CHANGED
|
@@ -17,5 +17,5 @@
|
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
18
|
exports.VERSION = void 0;
|
|
19
19
|
// this is autogenerated file, see scripts/version-update.js
|
|
20
|
-
exports.VERSION = '0.
|
|
20
|
+
exports.VERSION = '0.200.0-dev.1';
|
|
21
21
|
//# sourceMappingURL=version.js.map
|
package/build/src/version.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.js","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAEH,4DAA4D;AAC/C,QAAA,OAAO,GAAG,
|
|
1
|
+
{"version":3,"file":"version.js","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAEH,4DAA4D;AAC/C,QAAA,OAAO,GAAG,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// this is autogenerated file, see scripts/version-update.js\nexport const VERSION = '0.200.0-dev.1';\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opentelemetry/web-common",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.200.0-dev.1",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"url": "https://github.com/open-telemetry/opentelemetry-js/issues"
|
|
21
21
|
},
|
|
22
22
|
"engines": {
|
|
23
|
-
"node": ">=
|
|
23
|
+
"node": "^18.19.0 || >=20.6.0"
|
|
24
24
|
},
|
|
25
25
|
"scripts": {
|
|
26
26
|
"clean": "tsc --build --clean tsconfig.json tsconfig.esm.json tsconfig.esnext.json",
|
|
@@ -66,20 +66,20 @@
|
|
|
66
66
|
"@opentelemetry/api": ">=1.4.0 <1.10.0"
|
|
67
67
|
},
|
|
68
68
|
"dependencies": {
|
|
69
|
-
"@opentelemetry/sdk-logs": "0.
|
|
70
|
-
"@opentelemetry/sdk-trace-base": "
|
|
71
|
-
"@opentelemetry/semantic-conventions": "1.
|
|
69
|
+
"@opentelemetry/sdk-logs": "0.200.0-dev.1",
|
|
70
|
+
"@opentelemetry/sdk-trace-base": "2.0.0-dev.1",
|
|
71
|
+
"@opentelemetry/semantic-conventions": "^1.29.0"
|
|
72
72
|
},
|
|
73
73
|
"devDependencies": {
|
|
74
|
-
"@babel/core": "7.26.
|
|
74
|
+
"@babel/core": "7.26.9",
|
|
75
75
|
"@opentelemetry/api": "1.9.0",
|
|
76
|
-
"@opentelemetry/api-events": "0.
|
|
77
|
-
"@opentelemetry/api-logs": "0.
|
|
76
|
+
"@opentelemetry/api-events": "0.200.0-dev.1",
|
|
77
|
+
"@opentelemetry/api-logs": "0.200.0-dev.1",
|
|
78
78
|
"@types/mocha": "10.0.10",
|
|
79
79
|
"@types/node": "18.6.5",
|
|
80
|
-
"@types/sinon": "
|
|
80
|
+
"@types/sinon": "17.0.4",
|
|
81
81
|
"@types/webpack-env": "1.16.3",
|
|
82
|
-
"babel-loader": "
|
|
82
|
+
"babel-loader": "9.2.1",
|
|
83
83
|
"babel-plugin-istanbul": "7.0.0",
|
|
84
84
|
"cross-var": "1.1.0",
|
|
85
85
|
"karma": "6.4.4",
|
|
@@ -89,14 +89,13 @@
|
|
|
89
89
|
"karma-spec-reporter": "0.0.36",
|
|
90
90
|
"karma-webpack": "5.0.1",
|
|
91
91
|
"lerna": "6.6.2",
|
|
92
|
-
"mocha": "
|
|
93
|
-
"nyc": "
|
|
92
|
+
"mocha": "11.1.0",
|
|
93
|
+
"nyc": "17.1.0",
|
|
94
94
|
"sinon": "15.1.2",
|
|
95
|
-
"ts-loader": "9.5.
|
|
96
|
-
"typescript": "
|
|
95
|
+
"ts-loader": "9.5.2",
|
|
96
|
+
"typescript": "5.0.4",
|
|
97
97
|
"webpack": "5.96.1",
|
|
98
|
-
"webpack-cli": "
|
|
99
|
-
"webpack-merge": "5.10.0"
|
|
98
|
+
"webpack-cli": "6.0.1"
|
|
100
99
|
},
|
|
101
|
-
"gitHead": "
|
|
100
|
+
"gitHead": "92fde6aa77e464ee85c4a18f279fe12294f625d1"
|
|
102
101
|
}
|