@opentelemetry/web-common 0.54.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.
Files changed (57) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +30 -0
  3. package/build/esm/SessionLogRecordProcessor.d.ts +21 -0
  4. package/build/esm/SessionLogRecordProcessor.js +87 -0
  5. package/build/esm/SessionLogRecordProcessor.js.map +1 -0
  6. package/build/esm/SessionSpanProcessor.d.ts +32 -0
  7. package/build/esm/SessionSpanProcessor.js +100 -0
  8. package/build/esm/SessionSpanProcessor.js.map +1 -0
  9. package/build/esm/index.d.ts +3 -0
  10. package/build/esm/index.js +17 -0
  11. package/build/esm/index.js.map +1 -0
  12. package/build/esm/types/SessionProvider.d.ts +4 -0
  13. package/build/esm/types/SessionProvider.js +17 -0
  14. package/build/esm/types/SessionProvider.js.map +1 -0
  15. package/build/esm/utils.d.ts +6 -0
  16. package/build/esm/utils.js +24 -0
  17. package/build/esm/utils.js.map +1 -0
  18. package/build/esm/version.d.ts +2 -0
  19. package/build/esm/version.js +18 -0
  20. package/build/esm/version.js.map +1 -0
  21. package/build/esnext/SessionLogRecordProcessor.d.ts +21 -0
  22. package/build/esnext/SessionLogRecordProcessor.js +41 -0
  23. package/build/esnext/SessionLogRecordProcessor.js.map +1 -0
  24. package/build/esnext/SessionSpanProcessor.d.ts +32 -0
  25. package/build/esnext/SessionSpanProcessor.js +54 -0
  26. package/build/esnext/SessionSpanProcessor.js.map +1 -0
  27. package/build/esnext/index.d.ts +3 -0
  28. package/build/esnext/index.js +17 -0
  29. package/build/esnext/index.js.map +1 -0
  30. package/build/esnext/types/SessionProvider.d.ts +4 -0
  31. package/build/esnext/types/SessionProvider.js +17 -0
  32. package/build/esnext/types/SessionProvider.js.map +1 -0
  33. package/build/esnext/utils.d.ts +6 -0
  34. package/build/esnext/utils.js +24 -0
  35. package/build/esnext/utils.js.map +1 -0
  36. package/build/esnext/version.d.ts +2 -0
  37. package/build/esnext/version.js +18 -0
  38. package/build/esnext/version.js.map +1 -0
  39. package/build/src/SessionLogRecordProcessor.d.ts +21 -0
  40. package/build/src/SessionLogRecordProcessor.js +45 -0
  41. package/build/src/SessionLogRecordProcessor.js.map +1 -0
  42. package/build/src/SessionSpanProcessor.d.ts +32 -0
  43. package/build/src/SessionSpanProcessor.js +58 -0
  44. package/build/src/SessionSpanProcessor.js.map +1 -0
  45. package/build/src/index.d.ts +3 -0
  46. package/build/src/index.js +22 -0
  47. package/build/src/index.js.map +1 -0
  48. package/build/src/types/SessionProvider.d.ts +4 -0
  49. package/build/src/types/SessionProvider.js +18 -0
  50. package/build/src/types/SessionProvider.js.map +1 -0
  51. package/build/src/utils.d.ts +6 -0
  52. package/build/src/utils.js +29 -0
  53. package/build/src/utils.js.map +1 -0
  54. package/build/src/version.d.ts +2 -0
  55. package/build/src/version.js +21 -0
  56. package/build/src/version.js.map +1 -0
  57. package/package.json +102 -0
@@ -0,0 +1,41 @@
1
+ /*
2
+ * Copyright The OpenTelemetry Authors
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * https://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ import { ATTR_SESSION_ID } from '@opentelemetry/semantic-conventions/incubating';
17
+ /**
18
+ * SessionLogRecordProcessor is a {@link SpanProcessor} adds the session.id attribute
19
+ */
20
+ export class SessionLogRecordProcessor {
21
+ constructor(sessionIdProvider) {
22
+ this._sessionIdProvider = sessionIdProvider;
23
+ }
24
+ onEmit(logRecord, _context) {
25
+ var _a;
26
+ const sessionId = (_a = this._sessionIdProvider) === null || _a === void 0 ? void 0 : _a.getSessionId();
27
+ if (sessionId) {
28
+ logRecord.setAttribute(ATTR_SESSION_ID, sessionId);
29
+ }
30
+ }
31
+ /**
32
+ * Forces to export all finished spans
33
+ */
34
+ async forceFlush() { }
35
+ /**
36
+ * Shuts down the processor. Called when SDK is shut down. This is an
37
+ * opportunity for processor to do any cleanup required.
38
+ */
39
+ async shutdown() { }
40
+ }
41
+ //# sourceMappingURL=SessionLogRecordProcessor.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SessionLogRecordProcessor.js","sourceRoot":"","sources":["../../src/SessionLogRecordProcessor.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAIH,OAAO,EAAE,eAAe,EAAE,MAAM,gDAAgD,CAAC;AAGjF;;GAEG;AACH,MAAM,OAAO,yBAAyB;IAGpC,YAAY,iBAAkC;QAC5C,IAAI,CAAC,kBAAkB,GAAG,iBAAiB,CAAC;IAC9C,CAAC;IAED,MAAM,CAAC,SAAoB,EAAE,QAA8B;;QACzD,MAAM,SAAS,GAAG,MAAA,IAAI,CAAC,kBAAkB,0CAAE,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 '@opentelemetry/semantic-conventions/incubating';\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"]}
@@ -0,0 +1,32 @@
1
+ import { Context } from '@opentelemetry/api';
2
+ import { SpanProcessor, Span, ReadableSpan } from '@opentelemetry/sdk-trace-base';
3
+ import { SessionProvider } from './types/SessionProvider';
4
+ /**
5
+ * SessionSpanProcessor is a {@link SpanProcessor} that adds the session.id attribute
6
+ */
7
+ export declare class SessionSpanProcessor implements SpanProcessor {
8
+ private _sessionIdProvider;
9
+ constructor(sessionIdProvider: SessionProvider);
10
+ /**
11
+ * Forces to export all finished spans
12
+ */
13
+ forceFlush(): Promise<void>;
14
+ /**
15
+ * Called when a {@link Span} is started, if the `span.isRecording()`
16
+ * returns true.
17
+ * @param span the Span that just started.
18
+ */
19
+ onStart(span: Span, _parentContext: Context): void;
20
+ /**
21
+ * Called when a {@link ReadableSpan} is ended, if the `span.isRecording()`
22
+ * returns true.
23
+ * @param span the Span that just ended.
24
+ */
25
+ onEnd(_: ReadableSpan): void;
26
+ /**
27
+ * Shuts down the processor. Called when SDK is shut down. This is an
28
+ * opportunity for processor to do any cleanup required.
29
+ */
30
+ shutdown(): Promise<void>;
31
+ }
32
+ //# sourceMappingURL=SessionSpanProcessor.d.ts.map
@@ -0,0 +1,54 @@
1
+ /*
2
+ * Copyright The OpenTelemetry Authors
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * https://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ import { ATTR_SESSION_ID } from '@opentelemetry/semantic-conventions/incubating';
17
+ /**
18
+ * SessionSpanProcessor is a {@link SpanProcessor} that adds the session.id attribute
19
+ */
20
+ export class SessionSpanProcessor {
21
+ constructor(sessionIdProvider) {
22
+ this._sessionIdProvider = sessionIdProvider;
23
+ }
24
+ /**
25
+ * Forces to export all finished spans
26
+ */
27
+ async forceFlush() { }
28
+ /**
29
+ * Called when a {@link Span} is started, if the `span.isRecording()`
30
+ * returns true.
31
+ * @param span the Span that just started.
32
+ */
33
+ onStart(span, _parentContext) {
34
+ var _a;
35
+ const sessionId = (_a = this._sessionIdProvider) === null || _a === void 0 ? void 0 : _a.getSessionId();
36
+ if (sessionId) {
37
+ span.setAttribute(ATTR_SESSION_ID, sessionId);
38
+ }
39
+ }
40
+ /**
41
+ * Called when a {@link ReadableSpan} is ended, if the `span.isRecording()`
42
+ * returns true.
43
+ * @param span the Span that just ended.
44
+ */
45
+ onEnd(_) {
46
+ // no-op
47
+ }
48
+ /**
49
+ * Shuts down the processor. Called when SDK is shut down. This is an
50
+ * opportunity for processor to do any cleanup required.
51
+ */
52
+ async shutdown() { }
53
+ }
54
+ //# sourceMappingURL=SessionSpanProcessor.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SessionSpanProcessor.js","sourceRoot":"","sources":["../../src/SessionSpanProcessor.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAQH,OAAO,EAAE,eAAe,EAAE,MAAM,gDAAgD,CAAC;AAGjF;;GAEG;AACH,MAAM,OAAO,oBAAoB;IAG/B,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,MAAA,IAAI,CAAC,kBAAkB,0CAAE,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 '@opentelemetry/semantic-conventions/incubating';\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,3 @@
1
+ export { SessionProvider } from './types/SessionProvider';
2
+ export { createSessionSpanProcessor, createSessionLogRecordProcessor, } from './utils';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,17 @@
1
+ /*
2
+ * Copyright The OpenTelemetry Authors
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * https://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ export { createSessionSpanProcessor, createSessionLogRecordProcessor, } from './utils';
17
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,EACL,0BAA0B,EAC1B,+BAA+B,GAChC,MAAM,SAAS,CAAC","sourcesContent":["/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport { SessionProvider } from './types/SessionProvider';\nexport {\n createSessionSpanProcessor,\n createSessionLogRecordProcessor,\n} from './utils';\n"]}
@@ -0,0 +1,4 @@
1
+ export interface SessionProvider {
2
+ getSessionId(): string | null;
3
+ }
4
+ //# sourceMappingURL=SessionProvider.d.ts.map
@@ -0,0 +1,17 @@
1
+ /*
2
+ * Copyright The OpenTelemetry Authors
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * https://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ export {};
17
+ //# sourceMappingURL=SessionProvider.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SessionProvider.js","sourceRoot":"","sources":["../../../src/types/SessionProvider.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 SessionProvider {\n getSessionId(): string | null;\n}\n"]}
@@ -0,0 +1,6 @@
1
+ import { SessionProvider } from './types/SessionProvider';
2
+ import { SpanProcessor } from '@opentelemetry/sdk-trace-base';
3
+ import { LogRecordProcessor } from '@opentelemetry/sdk-logs';
4
+ export declare function createSessionSpanProcessor(sessionProvider: SessionProvider): SpanProcessor;
5
+ export declare function createSessionLogRecordProcessor(sessionProvider: SessionProvider): LogRecordProcessor;
6
+ //# sourceMappingURL=utils.d.ts.map
@@ -0,0 +1,24 @@
1
+ /*
2
+ * Copyright The OpenTelemetry Authors
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * https://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ import { SessionSpanProcessor } from './SessionSpanProcessor';
17
+ import { SessionLogRecordProcessor } from './SessionLogRecordProcessor';
18
+ export function createSessionSpanProcessor(sessionProvider) {
19
+ return new SessionSpanProcessor(sessionProvider);
20
+ }
21
+ export function createSessionLogRecordProcessor(sessionProvider) {
22
+ return new SessionLogRecordProcessor(sessionProvider);
23
+ }
24
+ //# sourceMappingURL=utils.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.js","sourceRoot":"","sources":["../../src/utils.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAIH,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAE9D,OAAO,EAAE,yBAAyB,EAAE,MAAM,6BAA6B,CAAC;AAExE,MAAM,UAAU,0BAA0B,CACxC,eAAgC;IAEhC,OAAO,IAAI,oBAAoB,CAAC,eAAe,CAAC,CAAC;AACnD,CAAC;AAED,MAAM,UAAU,+BAA+B,CAC7C,eAAgC;IAEhC,OAAO,IAAI,yBAAyB,CAAC,eAAe,CAAC,CAAC;AACxD,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 { SessionProvider } from './types/SessionProvider';\nimport { SpanProcessor } from '@opentelemetry/sdk-trace-base';\nimport { SessionSpanProcessor } from './SessionSpanProcessor';\nimport { LogRecordProcessor } from '@opentelemetry/sdk-logs';\nimport { SessionLogRecordProcessor } from './SessionLogRecordProcessor';\n\nexport function createSessionSpanProcessor(\n sessionProvider: SessionProvider\n): SpanProcessor {\n return new SessionSpanProcessor(sessionProvider);\n}\n\nexport function createSessionLogRecordProcessor(\n sessionProvider: SessionProvider\n): LogRecordProcessor {\n return new SessionLogRecordProcessor(sessionProvider);\n}\n"]}
@@ -0,0 +1,2 @@
1
+ export declare const VERSION = "0.54.0";
2
+ //# sourceMappingURL=version.d.ts.map
@@ -0,0 +1,18 @@
1
+ /*
2
+ * Copyright The OpenTelemetry Authors
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * https://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ // this is autogenerated file, see scripts/version-update.js
17
+ export const VERSION = '0.54.0';
18
+ //# sourceMappingURL=version.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"version.js","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,4DAA4D;AAC5D,MAAM,CAAC,MAAM,OAAO,GAAG,QAAQ,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.54.0';\n"]}
@@ -0,0 +1,21 @@
1
+ import { Context } from '@opentelemetry/api';
2
+ import { LogRecord, LogRecordProcessor } from '@opentelemetry/sdk-logs';
3
+ import { SessionProvider } from './types/SessionProvider';
4
+ /**
5
+ * SessionLogRecordProcessor is a {@link SpanProcessor} adds the session.id attribute
6
+ */
7
+ export declare class SessionLogRecordProcessor implements LogRecordProcessor {
8
+ private _sessionIdProvider;
9
+ constructor(sessionIdProvider: SessionProvider);
10
+ onEmit(logRecord: LogRecord, _context?: Context | undefined): void;
11
+ /**
12
+ * Forces to export all finished spans
13
+ */
14
+ forceFlush(): Promise<void>;
15
+ /**
16
+ * Shuts down the processor. Called when SDK is shut down. This is an
17
+ * opportunity for processor to do any cleanup required.
18
+ */
19
+ shutdown(): Promise<void>;
20
+ }
21
+ //# sourceMappingURL=SessionLogRecordProcessor.d.ts.map
@@ -0,0 +1,45 @@
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.SessionLogRecordProcessor = void 0;
19
+ const incubating_1 = require("@opentelemetry/semantic-conventions/incubating");
20
+ /**
21
+ * SessionLogRecordProcessor is a {@link SpanProcessor} adds the session.id attribute
22
+ */
23
+ class SessionLogRecordProcessor {
24
+ constructor(sessionIdProvider) {
25
+ this._sessionIdProvider = sessionIdProvider;
26
+ }
27
+ onEmit(logRecord, _context) {
28
+ var _a;
29
+ const sessionId = (_a = this._sessionIdProvider) === null || _a === void 0 ? void 0 : _a.getSessionId();
30
+ if (sessionId) {
31
+ logRecord.setAttribute(incubating_1.ATTR_SESSION_ID, sessionId);
32
+ }
33
+ }
34
+ /**
35
+ * Forces to export all finished spans
36
+ */
37
+ async forceFlush() { }
38
+ /**
39
+ * Shuts down the processor. Called when SDK is shut down. This is an
40
+ * opportunity for processor to do any cleanup required.
41
+ */
42
+ async shutdown() { }
43
+ }
44
+ exports.SessionLogRecordProcessor = SessionLogRecordProcessor;
45
+ //# sourceMappingURL=SessionLogRecordProcessor.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SessionLogRecordProcessor.js","sourceRoot":"","sources":["../../src/SessionLogRecordProcessor.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAIH,+EAAiF;AAGjF;;GAEG;AACH,MAAa,yBAAyB;IAGpC,YAAY,iBAAkC;QAC5C,IAAI,CAAC,kBAAkB,GAAG,iBAAiB,CAAC;IAC9C,CAAC;IAED,MAAM,CAAC,SAAoB,EAAE,QAA8B;;QACzD,MAAM,SAAS,GAAG,MAAA,IAAI,CAAC,kBAAkB,0CAAE,YAAY,EAAE,CAAC;QAC1D,IAAI,SAAS,EAAE;YACb,SAAS,CAAC,YAAY,CAAC,4BAAe,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 '@opentelemetry/semantic-conventions/incubating';\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"]}
@@ -0,0 +1,32 @@
1
+ import { Context } from '@opentelemetry/api';
2
+ import { SpanProcessor, Span, ReadableSpan } from '@opentelemetry/sdk-trace-base';
3
+ import { SessionProvider } from './types/SessionProvider';
4
+ /**
5
+ * SessionSpanProcessor is a {@link SpanProcessor} that adds the session.id attribute
6
+ */
7
+ export declare class SessionSpanProcessor implements SpanProcessor {
8
+ private _sessionIdProvider;
9
+ constructor(sessionIdProvider: SessionProvider);
10
+ /**
11
+ * Forces to export all finished spans
12
+ */
13
+ forceFlush(): Promise<void>;
14
+ /**
15
+ * Called when a {@link Span} is started, if the `span.isRecording()`
16
+ * returns true.
17
+ * @param span the Span that just started.
18
+ */
19
+ onStart(span: Span, _parentContext: Context): void;
20
+ /**
21
+ * Called when a {@link ReadableSpan} is ended, if the `span.isRecording()`
22
+ * returns true.
23
+ * @param span the Span that just ended.
24
+ */
25
+ onEnd(_: ReadableSpan): void;
26
+ /**
27
+ * Shuts down the processor. Called when SDK is shut down. This is an
28
+ * opportunity for processor to do any cleanup required.
29
+ */
30
+ shutdown(): Promise<void>;
31
+ }
32
+ //# sourceMappingURL=SessionSpanProcessor.d.ts.map
@@ -0,0 +1,58 @@
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.SessionSpanProcessor = void 0;
19
+ const incubating_1 = require("@opentelemetry/semantic-conventions/incubating");
20
+ /**
21
+ * SessionSpanProcessor is a {@link SpanProcessor} that adds the session.id attribute
22
+ */
23
+ class SessionSpanProcessor {
24
+ constructor(sessionIdProvider) {
25
+ this._sessionIdProvider = sessionIdProvider;
26
+ }
27
+ /**
28
+ * Forces to export all finished spans
29
+ */
30
+ async forceFlush() { }
31
+ /**
32
+ * Called when a {@link Span} is started, if the `span.isRecording()`
33
+ * returns true.
34
+ * @param span the Span that just started.
35
+ */
36
+ onStart(span, _parentContext) {
37
+ var _a;
38
+ const sessionId = (_a = this._sessionIdProvider) === null || _a === void 0 ? void 0 : _a.getSessionId();
39
+ if (sessionId) {
40
+ span.setAttribute(incubating_1.ATTR_SESSION_ID, sessionId);
41
+ }
42
+ }
43
+ /**
44
+ * Called when a {@link ReadableSpan} is ended, if the `span.isRecording()`
45
+ * returns true.
46
+ * @param span the Span that just ended.
47
+ */
48
+ onEnd(_) {
49
+ // no-op
50
+ }
51
+ /**
52
+ * Shuts down the processor. Called when SDK is shut down. This is an
53
+ * opportunity for processor to do any cleanup required.
54
+ */
55
+ async shutdown() { }
56
+ }
57
+ exports.SessionSpanProcessor = SessionSpanProcessor;
58
+ //# sourceMappingURL=SessionSpanProcessor.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SessionSpanProcessor.js","sourceRoot":"","sources":["../../src/SessionSpanProcessor.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAQH,+EAAiF;AAGjF;;GAEG;AACH,MAAa,oBAAoB;IAG/B,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,MAAA,IAAI,CAAC,kBAAkB,0CAAE,YAAY,EAAE,CAAC;QAC1D,IAAI,SAAS,EAAE;YACb,IAAI,CAAC,YAAY,CAAC,4BAAe,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 '@opentelemetry/semantic-conventions/incubating';\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,3 @@
1
+ export { SessionProvider } from './types/SessionProvider';
2
+ export { createSessionSpanProcessor, createSessionLogRecordProcessor, } from './utils';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,22 @@
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.createSessionLogRecordProcessor = exports.createSessionSpanProcessor = void 0;
19
+ var utils_1 = require("./utils");
20
+ Object.defineProperty(exports, "createSessionSpanProcessor", { enumerable: true, get: function () { return utils_1.createSessionSpanProcessor; } });
21
+ Object.defineProperty(exports, "createSessionLogRecordProcessor", { enumerable: true, get: function () { return utils_1.createSessionLogRecordProcessor; } });
22
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAGH,iCAGiB;AAFf,mHAAA,0BAA0B,OAAA;AAC1B,wHAAA,+BAA+B,OAAA","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 { SessionProvider } from './types/SessionProvider';\nexport {\n createSessionSpanProcessor,\n createSessionLogRecordProcessor,\n} from './utils';\n"]}
@@ -0,0 +1,4 @@
1
+ export interface SessionProvider {
2
+ getSessionId(): string | null;
3
+ }
4
+ //# sourceMappingURL=SessionProvider.d.ts.map
@@ -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=SessionProvider.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SessionProvider.js","sourceRoot":"","sources":["../../../src/types/SessionProvider.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 SessionProvider {\n getSessionId(): string | null;\n}\n"]}
@@ -0,0 +1,6 @@
1
+ import { SessionProvider } from './types/SessionProvider';
2
+ import { SpanProcessor } from '@opentelemetry/sdk-trace-base';
3
+ import { LogRecordProcessor } from '@opentelemetry/sdk-logs';
4
+ export declare function createSessionSpanProcessor(sessionProvider: SessionProvider): SpanProcessor;
5
+ export declare function createSessionLogRecordProcessor(sessionProvider: SessionProvider): LogRecordProcessor;
6
+ //# sourceMappingURL=utils.d.ts.map
@@ -0,0 +1,29 @@
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.createSessionLogRecordProcessor = exports.createSessionSpanProcessor = void 0;
19
+ const SessionSpanProcessor_1 = require("./SessionSpanProcessor");
20
+ const SessionLogRecordProcessor_1 = require("./SessionLogRecordProcessor");
21
+ function createSessionSpanProcessor(sessionProvider) {
22
+ return new SessionSpanProcessor_1.SessionSpanProcessor(sessionProvider);
23
+ }
24
+ exports.createSessionSpanProcessor = createSessionSpanProcessor;
25
+ function createSessionLogRecordProcessor(sessionProvider) {
26
+ return new SessionLogRecordProcessor_1.SessionLogRecordProcessor(sessionProvider);
27
+ }
28
+ exports.createSessionLogRecordProcessor = createSessionLogRecordProcessor;
29
+ //# sourceMappingURL=utils.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.js","sourceRoot":"","sources":["../../src/utils.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAIH,iEAA8D;AAE9D,2EAAwE;AAExE,SAAgB,0BAA0B,CACxC,eAAgC;IAEhC,OAAO,IAAI,2CAAoB,CAAC,eAAe,CAAC,CAAC;AACnD,CAAC;AAJD,gEAIC;AAED,SAAgB,+BAA+B,CAC7C,eAAgC;IAEhC,OAAO,IAAI,qDAAyB,CAAC,eAAe,CAAC,CAAC;AACxD,CAAC;AAJD,0EAIC","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 { SessionProvider } from './types/SessionProvider';\nimport { SpanProcessor } from '@opentelemetry/sdk-trace-base';\nimport { SessionSpanProcessor } from './SessionSpanProcessor';\nimport { LogRecordProcessor } from '@opentelemetry/sdk-logs';\nimport { SessionLogRecordProcessor } from './SessionLogRecordProcessor';\n\nexport function createSessionSpanProcessor(\n sessionProvider: SessionProvider\n): SpanProcessor {\n return new SessionSpanProcessor(sessionProvider);\n}\n\nexport function createSessionLogRecordProcessor(\n sessionProvider: SessionProvider\n): LogRecordProcessor {\n return new SessionLogRecordProcessor(sessionProvider);\n}\n"]}
@@ -0,0 +1,2 @@
1
+ export declare const VERSION = "0.54.0";
2
+ //# sourceMappingURL=version.d.ts.map
@@ -0,0 +1,21 @@
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.VERSION = void 0;
19
+ // this is autogenerated file, see scripts/version-update.js
20
+ exports.VERSION = '0.54.0';
21
+ //# sourceMappingURL=version.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"version.js","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAEH,4DAA4D;AAC/C,QAAA,OAAO,GAAG,QAAQ,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.54.0';\n"]}