@opentelemetry/sdk-trace-web 2.11.0-development.0 → 3.0.0-development.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 (117) hide show
  1. package/dist/StackContextManager.cjs +89 -0
  2. package/dist/StackContextManager.cjs.map +1 -0
  3. package/dist/StackContextManager.d.cts +53 -0
  4. package/dist/StackContextManager.d.cts.map +1 -0
  5. package/dist/StackContextManager.d.mts +53 -0
  6. package/dist/StackContextManager.d.mts.map +1 -0
  7. package/dist/StackContextManager.mjs +89 -0
  8. package/dist/StackContextManager.mjs.map +1 -0
  9. package/dist/WebTracerProvider.cjs +52 -0
  10. package/dist/WebTracerProvider.cjs.map +1 -0
  11. package/dist/WebTracerProvider.d.cts +27 -0
  12. package/dist/WebTracerProvider.d.cts.map +1 -0
  13. package/dist/WebTracerProvider.d.mts +27 -0
  14. package/dist/WebTracerProvider.d.mts.map +1 -0
  15. package/dist/WebTracerProvider.mjs +52 -0
  16. package/dist/WebTracerProvider.mjs.map +1 -0
  17. package/dist/enums/PerformanceTimingNames.cjs +31 -0
  18. package/dist/enums/PerformanceTimingNames.cjs.map +1 -0
  19. package/dist/enums/PerformanceTimingNames.d.cts +29 -0
  20. package/dist/enums/PerformanceTimingNames.d.cts.map +1 -0
  21. package/dist/enums/PerformanceTimingNames.d.mts +29 -0
  22. package/dist/enums/PerformanceTimingNames.d.mts.map +1 -0
  23. package/dist/enums/PerformanceTimingNames.mjs +31 -0
  24. package/dist/enums/PerformanceTimingNames.mjs.map +1 -0
  25. package/dist/index.cjs +90 -0
  26. package/dist/index.d.cts +7 -0
  27. package/dist/index.d.mts +7 -0
  28. package/dist/index.mjs +6 -0
  29. package/dist/semconv.cjs +26 -0
  30. package/dist/semconv.cjs.map +1 -0
  31. package/dist/semconv.mjs +25 -0
  32. package/dist/semconv.mjs.map +1 -0
  33. package/dist/types.d.cts +49 -0
  34. package/dist/types.d.cts.map +1 -0
  35. package/dist/types.d.mts +49 -0
  36. package/dist/types.d.mts.map +1 -0
  37. package/dist/utils.cjs +237 -0
  38. package/dist/utils.cjs.map +1 -0
  39. package/dist/utils.d.cts +83 -0
  40. package/dist/utils.d.cts.map +1 -0
  41. package/dist/utils.d.mts +83 -0
  42. package/dist/utils.d.mts.map +1 -0
  43. package/dist/utils.mjs +229 -0
  44. package/dist/utils.mjs.map +1 -0
  45. package/package.json +31 -29
  46. package/build/esm/StackContextManager.d.ts +0 -50
  47. package/build/esm/StackContextManager.js +0 -98
  48. package/build/esm/StackContextManager.js.map +0 -1
  49. package/build/esm/WebTracerProvider.d.ts +0 -25
  50. package/build/esm/WebTracerProvider.js +0 -65
  51. package/build/esm/WebTracerProvider.js.map +0 -1
  52. package/build/esm/enums/PerformanceTimingNames.d.ts +0 -26
  53. package/build/esm/enums/PerformanceTimingNames.js +0 -31
  54. package/build/esm/enums/PerformanceTimingNames.js.map +0 -1
  55. package/build/esm/index.d.ts +0 -10
  56. package/build/esm/index.js +0 -10
  57. package/build/esm/index.js.map +0 -1
  58. package/build/esm/semconv.d.ts +0 -21
  59. package/build/esm/semconv.js +0 -30
  60. package/build/esm/semconv.js.map +0 -1
  61. package/build/esm/types.d.ts +0 -47
  62. package/build/esm/types.js +0 -2
  63. package/build/esm/types.js.map +0 -1
  64. package/build/esm/utils.d.ts +0 -80
  65. package/build/esm/utils.js +0 -316
  66. package/build/esm/utils.js.map +0 -1
  67. package/build/esm/version.d.ts +0 -2
  68. package/build/esm/version.js +0 -7
  69. package/build/esm/version.js.map +0 -1
  70. package/build/esnext/StackContextManager.d.ts +0 -50
  71. package/build/esnext/StackContextManager.js +0 -98
  72. package/build/esnext/StackContextManager.js.map +0 -1
  73. package/build/esnext/WebTracerProvider.d.ts +0 -25
  74. package/build/esnext/WebTracerProvider.js +0 -65
  75. package/build/esnext/WebTracerProvider.js.map +0 -1
  76. package/build/esnext/enums/PerformanceTimingNames.d.ts +0 -26
  77. package/build/esnext/enums/PerformanceTimingNames.js +0 -31
  78. package/build/esnext/enums/PerformanceTimingNames.js.map +0 -1
  79. package/build/esnext/index.d.ts +0 -10
  80. package/build/esnext/index.js +0 -10
  81. package/build/esnext/index.js.map +0 -1
  82. package/build/esnext/semconv.d.ts +0 -21
  83. package/build/esnext/semconv.js +0 -30
  84. package/build/esnext/semconv.js.map +0 -1
  85. package/build/esnext/types.d.ts +0 -47
  86. package/build/esnext/types.js +0 -2
  87. package/build/esnext/types.js.map +0 -1
  88. package/build/esnext/utils.d.ts +0 -80
  89. package/build/esnext/utils.js +0 -316
  90. package/build/esnext/utils.js.map +0 -1
  91. package/build/esnext/version.d.ts +0 -2
  92. package/build/esnext/version.js +0 -7
  93. package/build/esnext/version.js.map +0 -1
  94. package/build/src/StackContextManager.d.ts +0 -50
  95. package/build/src/StackContextManager.js +0 -102
  96. package/build/src/StackContextManager.js.map +0 -1
  97. package/build/src/WebTracerProvider.d.ts +0 -25
  98. package/build/src/WebTracerProvider.js +0 -69
  99. package/build/src/WebTracerProvider.js.map +0 -1
  100. package/build/src/enums/PerformanceTimingNames.d.ts +0 -26
  101. package/build/src/enums/PerformanceTimingNames.js +0 -34
  102. package/build/src/enums/PerformanceTimingNames.js.map +0 -1
  103. package/build/src/index.d.ts +0 -10
  104. package/build/src/index.js +0 -37
  105. package/build/src/index.js.map +0 -1
  106. package/build/src/semconv.d.ts +0 -21
  107. package/build/src/semconv.js +0 -33
  108. package/build/src/semconv.js.map +0 -1
  109. package/build/src/types.d.ts +0 -47
  110. package/build/src/types.js +0 -3
  111. package/build/src/types.js.map +0 -1
  112. package/build/src/utils.d.ts +0 -80
  113. package/build/src/utils.js +0 -328
  114. package/build/src/utils.js.map +0 -1
  115. package/build/src/version.d.ts +0 -2
  116. package/build/src/version.js +0 -10
  117. package/build/src/version.js.map +0 -1
@@ -0,0 +1,89 @@
1
+ let _opentelemetry_api = require("@opentelemetry/api");
2
+ //#region src/StackContextManager.ts
3
+ /**
4
+ * Stack Context Manager for managing the state in web
5
+ * it doesn't fully support the async calls though
6
+ */
7
+ var StackContextManager = class {
8
+ /**
9
+ * whether the context manager is enabled or not
10
+ */
11
+ _enabled = false;
12
+ /**
13
+ * Keeps the reference to current context
14
+ */
15
+ _currentContext = _opentelemetry_api.ROOT_CONTEXT;
16
+ /**
17
+ *
18
+ * @param context
19
+ * @param target Function to be executed within the context
20
+ */
21
+ _bindFunction(context = _opentelemetry_api.ROOT_CONTEXT, target) {
22
+ const manager = this;
23
+ const contextWrapper = function(...args) {
24
+ return manager.with(context, () => target.apply(this, args));
25
+ };
26
+ Object.defineProperty(contextWrapper, "length", {
27
+ enumerable: false,
28
+ configurable: true,
29
+ writable: false,
30
+ value: target.length
31
+ });
32
+ return contextWrapper;
33
+ }
34
+ /**
35
+ * Returns the active context
36
+ */
37
+ active() {
38
+ return this._currentContext;
39
+ }
40
+ /**
41
+ * Binds a the certain context or the active one to the target function and then returns the target
42
+ * @param context A context (span) to be bind to target
43
+ * @param target a function or event emitter. When target or one of its callbacks is called,
44
+ * the provided context will be used as the active context for the duration of the call.
45
+ */
46
+ bind(context, target) {
47
+ if (context === void 0) context = this.active();
48
+ if (typeof target === "function") return this._bindFunction(context, target);
49
+ return target;
50
+ }
51
+ /**
52
+ * Disable the context manager (clears the current context)
53
+ */
54
+ disable() {
55
+ this._currentContext = _opentelemetry_api.ROOT_CONTEXT;
56
+ this._enabled = false;
57
+ return this;
58
+ }
59
+ /**
60
+ * Enables the context manager and creates a default(root) context
61
+ */
62
+ enable() {
63
+ if (this._enabled) return this;
64
+ this._enabled = true;
65
+ this._currentContext = _opentelemetry_api.ROOT_CONTEXT;
66
+ return this;
67
+ }
68
+ /**
69
+ * Calls the callback function [fn] with the provided [context]. If [context] is undefined then it will use the window.
70
+ * The context will be set as active
71
+ * @param context
72
+ * @param fn Callback function
73
+ * @param thisArg optional receiver to be used for calling fn
74
+ * @param args optional arguments forwarded to fn
75
+ */
76
+ with(context, fn, thisArg, ...args) {
77
+ const previousContext = this._currentContext;
78
+ this._currentContext = context || _opentelemetry_api.ROOT_CONTEXT;
79
+ try {
80
+ return fn.call(thisArg, ...args);
81
+ } finally {
82
+ this._currentContext = previousContext;
83
+ }
84
+ }
85
+ };
86
+ //#endregion
87
+ exports.StackContextManager = StackContextManager;
88
+
89
+ //# sourceMappingURL=StackContextManager.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"StackContextManager.cjs","names":["ROOT_CONTEXT"],"sources":["../src/StackContextManager.ts"],"sourcesContent":["/*\n * Copyright The OpenTelemetry Authors\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport type { Context, ContextManager } from '@opentelemetry/api';\nimport { ROOT_CONTEXT } from '@opentelemetry/api';\n\n/**\n * Stack Context Manager for managing the state in web\n * it doesn't fully support the async calls though\n */\nexport class StackContextManager implements ContextManager {\n /**\n * whether the context manager is enabled or not\n */\n private _enabled = false;\n\n /**\n * Keeps the reference to current context\n */\n public _currentContext = ROOT_CONTEXT;\n\n /**\n *\n * @param context\n * @param target Function to be executed within the context\n */\n // eslint-disable-next-line @typescript-eslint/no-unsafe-function-type\n private _bindFunction<T extends Function>(\n context = ROOT_CONTEXT,\n target: T\n ): T {\n const manager = this;\n const contextWrapper = function (this: unknown, ...args: unknown[]) {\n return manager.with(context, () => target.apply(this, args));\n };\n Object.defineProperty(contextWrapper, 'length', {\n enumerable: false,\n configurable: true,\n writable: false,\n value: target.length,\n });\n return contextWrapper as unknown as T;\n }\n\n /**\n * Returns the active context\n */\n active(): Context {\n return this._currentContext;\n }\n\n /**\n * Binds a the certain context or the active one to the target function and then returns the target\n * @param context A context (span) to be bind to target\n * @param target a function or event emitter. When target or one of its callbacks is called,\n * the provided context will be used as the active context for the duration of the call.\n */\n bind<T>(context: Context, target: T): T {\n // if no specific context to propagate is given, we use the current one\n if (context === undefined) {\n context = this.active();\n }\n if (typeof target === 'function') {\n return this._bindFunction(context, target);\n }\n return target;\n }\n\n /**\n * Disable the context manager (clears the current context)\n */\n disable(): this {\n this._currentContext = ROOT_CONTEXT;\n this._enabled = false;\n return this;\n }\n\n /**\n * Enables the context manager and creates a default(root) context\n */\n enable(): this {\n if (this._enabled) {\n return this;\n }\n this._enabled = true;\n this._currentContext = ROOT_CONTEXT;\n return this;\n }\n\n /**\n * Calls the callback function [fn] with the provided [context]. If [context] is undefined then it will use the window.\n * The context will be set as active\n * @param context\n * @param fn Callback function\n * @param thisArg optional receiver to be used for calling fn\n * @param args optional arguments forwarded to fn\n */\n with<A extends unknown[], F extends (...args: A) => ReturnType<F>>(\n context: Context | null,\n fn: F,\n thisArg?: ThisParameterType<F>,\n ...args: A\n ): ReturnType<F> {\n const previousContext = this._currentContext;\n this._currentContext = context || ROOT_CONTEXT;\n\n try {\n return fn.call(thisArg, ...args);\n } finally {\n this._currentContext = previousContext;\n }\n }\n}\n"],"mappings":";;;;;;AAYA,IAAa,sBAAb,MAA2D;;;;CAIzD,WAAmB;;;;CAKnB,kBAAyBA,mBAAAA;;;;;;CAQzB,cACE,UAAUA,mBAAAA,cACV,QACG;EACH,MAAM,UAAU;EAChB,MAAM,iBAAiB,SAAyB,GAAG,MAAiB;GAClE,OAAO,QAAQ,KAAK,eAAe,OAAO,MAAM,MAAM,IAAI,CAAC;EAC7D;EACA,OAAO,eAAe,gBAAgB,UAAU;GAC9C,YAAY;GACZ,cAAc;GACd,UAAU;GACV,OAAO,OAAO;EAChB,CAAC;EACD,OAAO;CACT;;;;CAKA,SAAkB;EAChB,OAAO,KAAK;CACd;;;;;;;CAQA,KAAQ,SAAkB,QAAc;EAEtC,IAAI,YAAY,KAAA,GACd,UAAU,KAAK,OAAO;EAExB,IAAI,OAAO,WAAW,YACpB,OAAO,KAAK,cAAc,SAAS,MAAM;EAE3C,OAAO;CACT;;;;CAKA,UAAgB;EACd,KAAK,kBAAkBA,mBAAAA;EACvB,KAAK,WAAW;EAChB,OAAO;CACT;;;;CAKA,SAAe;EACb,IAAI,KAAK,UACP,OAAO;EAET,KAAK,WAAW;EAChB,KAAK,kBAAkBA,mBAAAA;EACvB,OAAO;CACT;;;;;;;;;CAUA,KACE,SACA,IACA,SACA,GAAG,MACY;EACf,MAAM,kBAAkB,KAAK;EAC7B,KAAK,kBAAkB,WAAWA,mBAAAA;EAElC,IAAI;GACF,OAAO,GAAG,KAAK,SAAS,GAAG,IAAI;EACjC,UAAU;GACR,KAAK,kBAAkB;EACzB;CACF;AACF"}
@@ -0,0 +1,53 @@
1
+ import { Context, ContextManager } from "@opentelemetry/api";
2
+ //#region src/StackContextManager.d.ts
3
+ /**
4
+ * Stack Context Manager for managing the state in web
5
+ * it doesn't fully support the async calls though
6
+ */
7
+ declare class StackContextManager implements ContextManager {
8
+ /**
9
+ * whether the context manager is enabled or not
10
+ */
11
+ private _enabled;
12
+ /**
13
+ * Keeps the reference to current context
14
+ */
15
+ _currentContext: Context;
16
+ /**
17
+ *
18
+ * @param context
19
+ * @param target Function to be executed within the context
20
+ */
21
+ private _bindFunction;
22
+ /**
23
+ * Returns the active context
24
+ */
25
+ active(): Context;
26
+ /**
27
+ * Binds a the certain context or the active one to the target function and then returns the target
28
+ * @param context A context (span) to be bind to target
29
+ * @param target a function or event emitter. When target or one of its callbacks is called,
30
+ * the provided context will be used as the active context for the duration of the call.
31
+ */
32
+ bind<T>(context: Context, target: T): T;
33
+ /**
34
+ * Disable the context manager (clears the current context)
35
+ */
36
+ disable(): this;
37
+ /**
38
+ * Enables the context manager and creates a default(root) context
39
+ */
40
+ enable(): this;
41
+ /**
42
+ * Calls the callback function [fn] with the provided [context]. If [context] is undefined then it will use the window.
43
+ * The context will be set as active
44
+ * @param context
45
+ * @param fn Callback function
46
+ * @param thisArg optional receiver to be used for calling fn
47
+ * @param args optional arguments forwarded to fn
48
+ */
49
+ with<A extends unknown[], F extends (...args: A) => ReturnType<F>>(context: Context | null, fn: F, thisArg?: ThisParameterType<F>, ...args: A): ReturnType<F>;
50
+ }
51
+ //#endregion
52
+ export { StackContextManager };
53
+ //# sourceMappingURL=StackContextManager.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"StackContextManager.d.cts","names":[],"sources":["../src/StackContextManager.d.ts"],"mappings":";;;;;;cAKqB,+BAA+B;;;;UAIxC;;;;EAIR,iBAAiB;;;;;;UAMT;;;;EAIR,UAAU;;;;;;;EAOV,KAAK,GAAG,SAAS,SAAS,QAAQ,IAAI;;;;EAItC;;;;EAIA;;;;;;;;;EASA,KAAK,qBAAqB,cAAc,MAAM,MAAM,WAAW,IAAI,SAAS,gBAAgB,IAAI,GAAG,UAAU,kBAAkB,OAAO,MAAM,IAAI,WAAW"}
@@ -0,0 +1,53 @@
1
+ import { Context, ContextManager } from "@opentelemetry/api";
2
+ //#region src/StackContextManager.d.ts
3
+ /**
4
+ * Stack Context Manager for managing the state in web
5
+ * it doesn't fully support the async calls though
6
+ */
7
+ declare class StackContextManager implements ContextManager {
8
+ /**
9
+ * whether the context manager is enabled or not
10
+ */
11
+ private _enabled;
12
+ /**
13
+ * Keeps the reference to current context
14
+ */
15
+ _currentContext: Context;
16
+ /**
17
+ *
18
+ * @param context
19
+ * @param target Function to be executed within the context
20
+ */
21
+ private _bindFunction;
22
+ /**
23
+ * Returns the active context
24
+ */
25
+ active(): Context;
26
+ /**
27
+ * Binds a the certain context or the active one to the target function and then returns the target
28
+ * @param context A context (span) to be bind to target
29
+ * @param target a function or event emitter. When target or one of its callbacks is called,
30
+ * the provided context will be used as the active context for the duration of the call.
31
+ */
32
+ bind<T>(context: Context, target: T): T;
33
+ /**
34
+ * Disable the context manager (clears the current context)
35
+ */
36
+ disable(): this;
37
+ /**
38
+ * Enables the context manager and creates a default(root) context
39
+ */
40
+ enable(): this;
41
+ /**
42
+ * Calls the callback function [fn] with the provided [context]. If [context] is undefined then it will use the window.
43
+ * The context will be set as active
44
+ * @param context
45
+ * @param fn Callback function
46
+ * @param thisArg optional receiver to be used for calling fn
47
+ * @param args optional arguments forwarded to fn
48
+ */
49
+ with<A extends unknown[], F extends (...args: A) => ReturnType<F>>(context: Context | null, fn: F, thisArg?: ThisParameterType<F>, ...args: A): ReturnType<F>;
50
+ }
51
+ //#endregion
52
+ export { StackContextManager };
53
+ //# sourceMappingURL=StackContextManager.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"StackContextManager.d.mts","names":[],"sources":["../src/StackContextManager.d.ts"],"mappings":";;;;;;cAKqB,+BAA+B;;;;UAIxC;;;;EAIR,iBAAiB;;;;;;UAMT;;;;EAIR,UAAU;;;;;;;EAOV,KAAK,GAAG,SAAS,SAAS,QAAQ,IAAI;;;;EAItC;;;;EAIA;;;;;;;;;EASA,KAAK,qBAAqB,cAAc,MAAM,MAAM,WAAW,IAAI,SAAS,gBAAgB,IAAI,GAAG,UAAU,kBAAkB,OAAO,MAAM,IAAI,WAAW"}
@@ -0,0 +1,89 @@
1
+ import { ROOT_CONTEXT } from "@opentelemetry/api";
2
+ //#region src/StackContextManager.ts
3
+ /**
4
+ * Stack Context Manager for managing the state in web
5
+ * it doesn't fully support the async calls though
6
+ */
7
+ var StackContextManager = class {
8
+ /**
9
+ * whether the context manager is enabled or not
10
+ */
11
+ _enabled = false;
12
+ /**
13
+ * Keeps the reference to current context
14
+ */
15
+ _currentContext = ROOT_CONTEXT;
16
+ /**
17
+ *
18
+ * @param context
19
+ * @param target Function to be executed within the context
20
+ */
21
+ _bindFunction(context = ROOT_CONTEXT, target) {
22
+ const manager = this;
23
+ const contextWrapper = function(...args) {
24
+ return manager.with(context, () => target.apply(this, args));
25
+ };
26
+ Object.defineProperty(contextWrapper, "length", {
27
+ enumerable: false,
28
+ configurable: true,
29
+ writable: false,
30
+ value: target.length
31
+ });
32
+ return contextWrapper;
33
+ }
34
+ /**
35
+ * Returns the active context
36
+ */
37
+ active() {
38
+ return this._currentContext;
39
+ }
40
+ /**
41
+ * Binds a the certain context or the active one to the target function and then returns the target
42
+ * @param context A context (span) to be bind to target
43
+ * @param target a function or event emitter. When target or one of its callbacks is called,
44
+ * the provided context will be used as the active context for the duration of the call.
45
+ */
46
+ bind(context, target) {
47
+ if (context === void 0) context = this.active();
48
+ if (typeof target === "function") return this._bindFunction(context, target);
49
+ return target;
50
+ }
51
+ /**
52
+ * Disable the context manager (clears the current context)
53
+ */
54
+ disable() {
55
+ this._currentContext = ROOT_CONTEXT;
56
+ this._enabled = false;
57
+ return this;
58
+ }
59
+ /**
60
+ * Enables the context manager and creates a default(root) context
61
+ */
62
+ enable() {
63
+ if (this._enabled) return this;
64
+ this._enabled = true;
65
+ this._currentContext = ROOT_CONTEXT;
66
+ return this;
67
+ }
68
+ /**
69
+ * Calls the callback function [fn] with the provided [context]. If [context] is undefined then it will use the window.
70
+ * The context will be set as active
71
+ * @param context
72
+ * @param fn Callback function
73
+ * @param thisArg optional receiver to be used for calling fn
74
+ * @param args optional arguments forwarded to fn
75
+ */
76
+ with(context, fn, thisArg, ...args) {
77
+ const previousContext = this._currentContext;
78
+ this._currentContext = context || ROOT_CONTEXT;
79
+ try {
80
+ return fn.call(thisArg, ...args);
81
+ } finally {
82
+ this._currentContext = previousContext;
83
+ }
84
+ }
85
+ };
86
+ //#endregion
87
+ export { StackContextManager };
88
+
89
+ //# sourceMappingURL=StackContextManager.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"StackContextManager.mjs","names":[],"sources":["../src/StackContextManager.ts"],"sourcesContent":["/*\n * Copyright The OpenTelemetry Authors\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport type { Context, ContextManager } from '@opentelemetry/api';\nimport { ROOT_CONTEXT } from '@opentelemetry/api';\n\n/**\n * Stack Context Manager for managing the state in web\n * it doesn't fully support the async calls though\n */\nexport class StackContextManager implements ContextManager {\n /**\n * whether the context manager is enabled or not\n */\n private _enabled = false;\n\n /**\n * Keeps the reference to current context\n */\n public _currentContext = ROOT_CONTEXT;\n\n /**\n *\n * @param context\n * @param target Function to be executed within the context\n */\n // eslint-disable-next-line @typescript-eslint/no-unsafe-function-type\n private _bindFunction<T extends Function>(\n context = ROOT_CONTEXT,\n target: T\n ): T {\n const manager = this;\n const contextWrapper = function (this: unknown, ...args: unknown[]) {\n return manager.with(context, () => target.apply(this, args));\n };\n Object.defineProperty(contextWrapper, 'length', {\n enumerable: false,\n configurable: true,\n writable: false,\n value: target.length,\n });\n return contextWrapper as unknown as T;\n }\n\n /**\n * Returns the active context\n */\n active(): Context {\n return this._currentContext;\n }\n\n /**\n * Binds a the certain context or the active one to the target function and then returns the target\n * @param context A context (span) to be bind to target\n * @param target a function or event emitter. When target or one of its callbacks is called,\n * the provided context will be used as the active context for the duration of the call.\n */\n bind<T>(context: Context, target: T): T {\n // if no specific context to propagate is given, we use the current one\n if (context === undefined) {\n context = this.active();\n }\n if (typeof target === 'function') {\n return this._bindFunction(context, target);\n }\n return target;\n }\n\n /**\n * Disable the context manager (clears the current context)\n */\n disable(): this {\n this._currentContext = ROOT_CONTEXT;\n this._enabled = false;\n return this;\n }\n\n /**\n * Enables the context manager and creates a default(root) context\n */\n enable(): this {\n if (this._enabled) {\n return this;\n }\n this._enabled = true;\n this._currentContext = ROOT_CONTEXT;\n return this;\n }\n\n /**\n * Calls the callback function [fn] with the provided [context]. If [context] is undefined then it will use the window.\n * The context will be set as active\n * @param context\n * @param fn Callback function\n * @param thisArg optional receiver to be used for calling fn\n * @param args optional arguments forwarded to fn\n */\n with<A extends unknown[], F extends (...args: A) => ReturnType<F>>(\n context: Context | null,\n fn: F,\n thisArg?: ThisParameterType<F>,\n ...args: A\n ): ReturnType<F> {\n const previousContext = this._currentContext;\n this._currentContext = context || ROOT_CONTEXT;\n\n try {\n return fn.call(thisArg, ...args);\n } finally {\n this._currentContext = previousContext;\n }\n }\n}\n"],"mappings":";;;;;;AAYA,IAAa,sBAAb,MAA2D;;;;CAIzD,WAAmB;;;;CAKnB,kBAAyB;;;;;;CAQzB,cACE,UAAU,cACV,QACG;EACH,MAAM,UAAU;EAChB,MAAM,iBAAiB,SAAyB,GAAG,MAAiB;GAClE,OAAO,QAAQ,KAAK,eAAe,OAAO,MAAM,MAAM,IAAI,CAAC;EAC7D;EACA,OAAO,eAAe,gBAAgB,UAAU;GAC9C,YAAY;GACZ,cAAc;GACd,UAAU;GACV,OAAO,OAAO;EAChB,CAAC;EACD,OAAO;CACT;;;;CAKA,SAAkB;EAChB,OAAO,KAAK;CACd;;;;;;;CAQA,KAAQ,SAAkB,QAAc;EAEtC,IAAI,YAAY,KAAA,GACd,UAAU,KAAK,OAAO;EAExB,IAAI,OAAO,WAAW,YACpB,OAAO,KAAK,cAAc,SAAS,MAAM;EAE3C,OAAO;CACT;;;;CAKA,UAAgB;EACd,KAAK,kBAAkB;EACvB,KAAK,WAAW;EAChB,OAAO;CACT;;;;CAKA,SAAe;EACb,IAAI,KAAK,UACP,OAAO;EAET,KAAK,WAAW;EAChB,KAAK,kBAAkB;EACvB,OAAO;CACT;;;;;;;;;CAUA,KACE,SACA,IACA,SACA,GAAG,MACY;EACf,MAAM,kBAAkB,KAAK;EAC7B,KAAK,kBAAkB,WAAW;EAElC,IAAI;GACF,OAAO,GAAG,KAAK,SAAS,GAAG,IAAI;EACjC,UAAU;GACR,KAAK,kBAAkB;EACzB;CACF;AACF"}
@@ -0,0 +1,52 @@
1
+ const require_StackContextManager = require("./StackContextManager.cjs");
2
+ let _opentelemetry_sdk_trace_base = require("@opentelemetry/sdk-trace-base");
3
+ let _opentelemetry_api = require("@opentelemetry/api");
4
+ let _opentelemetry_core = require("@opentelemetry/core");
5
+ //#region src/WebTracerProvider.ts
6
+ function setupContextManager(contextManager) {
7
+ if (contextManager === null) return;
8
+ if (contextManager === void 0) {
9
+ const defaultContextManager = new require_StackContextManager.StackContextManager();
10
+ defaultContextManager.enable();
11
+ _opentelemetry_api.context.setGlobalContextManager(defaultContextManager);
12
+ return;
13
+ }
14
+ contextManager.enable();
15
+ _opentelemetry_api.context.setGlobalContextManager(contextManager);
16
+ }
17
+ function setupPropagator(propagator) {
18
+ if (propagator === null) return;
19
+ if (propagator === void 0) {
20
+ _opentelemetry_api.propagation.setGlobalPropagator(new _opentelemetry_core.CompositePropagator({ propagators: [new _opentelemetry_core.W3CTraceContextPropagator(), new _opentelemetry_core.W3CBaggagePropagator()] }));
21
+ return;
22
+ }
23
+ _opentelemetry_api.propagation.setGlobalPropagator(propagator);
24
+ }
25
+ /**
26
+ * This class represents a web tracer with {@link StackContextManager}
27
+ */
28
+ var WebTracerProvider = class extends _opentelemetry_sdk_trace_base.BasicTracerProvider {
29
+ /**
30
+ * Constructs a new Tracer instance.
31
+ * @param config Web Tracer config
32
+ */
33
+ constructor(config = {}) {
34
+ super(config);
35
+ }
36
+ /**
37
+ * Register this TracerProvider for use with the OpenTelemetry API.
38
+ * Undefined values may be replaced with defaults, and
39
+ * null values will be skipped.
40
+ *
41
+ * @param config Configuration object for SDK registration
42
+ */
43
+ register(config = {}) {
44
+ _opentelemetry_api.trace.setGlobalTracerProvider(this);
45
+ setupPropagator(config.propagator);
46
+ setupContextManager(config.contextManager);
47
+ }
48
+ };
49
+ //#endregion
50
+ exports.WebTracerProvider = WebTracerProvider;
51
+
52
+ //# sourceMappingURL=WebTracerProvider.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WebTracerProvider.cjs","names":["StackContextManager","CompositePropagator","W3CTraceContextPropagator","W3CBaggagePropagator","BasicTracerProvider"],"sources":["../src/WebTracerProvider.ts"],"sourcesContent":["/*\n * Copyright The OpenTelemetry Authors\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport type {\n SDKRegistrationConfig,\n TracerConfig,\n} from '@opentelemetry/sdk-trace-base';\nimport { BasicTracerProvider } from '@opentelemetry/sdk-trace-base';\nimport { StackContextManager } from './StackContextManager';\nimport type { ContextManager, TextMapPropagator } from '@opentelemetry/api';\nimport { trace, context, propagation } from '@opentelemetry/api';\nimport {\n CompositePropagator,\n W3CBaggagePropagator,\n W3CTraceContextPropagator,\n} from '@opentelemetry/core';\n\nfunction setupContextManager(\n contextManager: ContextManager | null | undefined\n) {\n // null means 'do not register'\n if (contextManager === null) {\n return;\n }\n\n // undefined means 'register default'\n if (contextManager === undefined) {\n const defaultContextManager = new StackContextManager();\n defaultContextManager.enable();\n context.setGlobalContextManager(defaultContextManager);\n return;\n }\n\n contextManager.enable();\n context.setGlobalContextManager(contextManager);\n}\n\nfunction setupPropagator(propagator: TextMapPropagator | null | undefined) {\n // null means 'do not register'\n if (propagator === null) {\n return;\n }\n\n // undefined means 'register default'\n if (propagator === undefined) {\n propagation.setGlobalPropagator(\n new CompositePropagator({\n propagators: [\n new W3CTraceContextPropagator(),\n new W3CBaggagePropagator(),\n ],\n })\n );\n return;\n }\n\n propagation.setGlobalPropagator(propagator);\n}\n\n/**\n * WebTracerConfig provides an interface for configuring a Web Tracer.\n */\nexport type WebTracerConfig = TracerConfig;\n\n/**\n * This class represents a web tracer with {@link StackContextManager}\n */\nexport class WebTracerProvider extends BasicTracerProvider {\n /**\n * Constructs a new Tracer instance.\n * @param config Web Tracer config\n */\n constructor(config: WebTracerConfig = {}) {\n super(config);\n }\n\n /**\n * Register this TracerProvider for use with the OpenTelemetry API.\n * Undefined values may be replaced with defaults, and\n * null values will be skipped.\n *\n * @param config Configuration object for SDK registration\n */\n register(config: SDKRegistrationConfig = {}): void {\n trace.setGlobalTracerProvider(this);\n setupPropagator(config.propagator);\n setupContextManager(config.contextManager);\n }\n}\n"],"mappings":";;;;;AAmBA,SAAS,oBACP,gBACA;CAEA,IAAI,mBAAmB,MACrB;CAIF,IAAI,mBAAmB,KAAA,GAAW;EAChC,MAAM,wBAAwB,IAAIA,4BAAAA,oBAAoB;EACtD,sBAAsB,OAAO;EAC7B,mBAAA,QAAQ,wBAAwB,qBAAqB;EACrD;CACF;CAEA,eAAe,OAAO;CACtB,mBAAA,QAAQ,wBAAwB,cAAc;AAChD;AAEA,SAAS,gBAAgB,YAAkD;CAEzE,IAAI,eAAe,MACjB;CAIF,IAAI,eAAe,KAAA,GAAW;EAC5B,mBAAA,YAAY,oBACV,IAAIC,oBAAAA,oBAAoB,EACtB,aAAa,CACX,IAAIC,oBAAAA,0BAA0B,GAC9B,IAAIC,oBAAAA,qBAAqB,CAC3B,EACF,CAAC,CACH;EACA;CACF;CAEA,mBAAA,YAAY,oBAAoB,UAAU;AAC5C;;;;AAUA,IAAa,oBAAb,cAAuCC,8BAAAA,oBAAoB;;;;;CAKzD,YAAY,SAA0B,CAAC,GAAG;EACxC,MAAM,MAAM;CACd;;;;;;;;CASA,SAAS,SAAgC,CAAC,GAAS;EACjD,mBAAA,MAAM,wBAAwB,IAAI;EAClC,gBAAgB,OAAO,UAAU;EACjC,oBAAoB,OAAO,cAAc;CAC3C;AACF"}
@@ -0,0 +1,27 @@
1
+ import { BasicTracerProvider, SDKRegistrationConfig, TracerConfig } from "@opentelemetry/sdk-trace-base";
2
+ //#region src/WebTracerProvider.d.ts
3
+ /**
4
+ * WebTracerConfig provides an interface for configuring a Web Tracer.
5
+ */
6
+ type WebTracerConfig = TracerConfig;
7
+ /**
8
+ * This class represents a web tracer with {@link StackContextManager}
9
+ */
10
+ declare class WebTracerProvider extends BasicTracerProvider {
11
+ /**
12
+ * Constructs a new Tracer instance.
13
+ * @param config Web Tracer config
14
+ */
15
+ constructor(config?: WebTracerConfig);
16
+ /**
17
+ * Register this TracerProvider for use with the OpenTelemetry API.
18
+ * Undefined values may be replaced with defaults, and
19
+ * null values will be skipped.
20
+ *
21
+ * @param config Configuration object for SDK registration
22
+ */
23
+ register(config?: SDKRegistrationConfig): void;
24
+ }
25
+ //#endregion
26
+ export { WebTracerConfig, WebTracerProvider };
27
+ //# sourceMappingURL=WebTracerProvider.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WebTracerProvider.d.cts","names":[],"sources":["../src/WebTracerProvider.d.ts"],"mappings":";;;;;KAKY,kBAAkB;;;;cAIT,0BAA0B;;;;;EAK3C,YAAY,SAAS;;;;;;;;EAQrB,SAAS,SAAS"}
@@ -0,0 +1,27 @@
1
+ import { BasicTracerProvider, SDKRegistrationConfig, TracerConfig } from "@opentelemetry/sdk-trace-base";
2
+ //#region src/WebTracerProvider.d.ts
3
+ /**
4
+ * WebTracerConfig provides an interface for configuring a Web Tracer.
5
+ */
6
+ type WebTracerConfig = TracerConfig;
7
+ /**
8
+ * This class represents a web tracer with {@link StackContextManager}
9
+ */
10
+ declare class WebTracerProvider extends BasicTracerProvider {
11
+ /**
12
+ * Constructs a new Tracer instance.
13
+ * @param config Web Tracer config
14
+ */
15
+ constructor(config?: WebTracerConfig);
16
+ /**
17
+ * Register this TracerProvider for use with the OpenTelemetry API.
18
+ * Undefined values may be replaced with defaults, and
19
+ * null values will be skipped.
20
+ *
21
+ * @param config Configuration object for SDK registration
22
+ */
23
+ register(config?: SDKRegistrationConfig): void;
24
+ }
25
+ //#endregion
26
+ export { WebTracerConfig, WebTracerProvider };
27
+ //# sourceMappingURL=WebTracerProvider.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WebTracerProvider.d.mts","names":[],"sources":["../src/WebTracerProvider.d.ts"],"mappings":";;;;;KAKY,kBAAkB;;;;cAIT,0BAA0B;;;;;EAK3C,YAAY,SAAS;;;;;;;;EAQrB,SAAS,SAAS"}
@@ -0,0 +1,52 @@
1
+ import { StackContextManager } from "./StackContextManager.mjs";
2
+ import { BasicTracerProvider } from "@opentelemetry/sdk-trace-base";
3
+ import { context, propagation, trace } from "@opentelemetry/api";
4
+ import { CompositePropagator, W3CBaggagePropagator, W3CTraceContextPropagator } from "@opentelemetry/core";
5
+ //#region src/WebTracerProvider.ts
6
+ function setupContextManager(contextManager) {
7
+ if (contextManager === null) return;
8
+ if (contextManager === void 0) {
9
+ const defaultContextManager = new StackContextManager();
10
+ defaultContextManager.enable();
11
+ context.setGlobalContextManager(defaultContextManager);
12
+ return;
13
+ }
14
+ contextManager.enable();
15
+ context.setGlobalContextManager(contextManager);
16
+ }
17
+ function setupPropagator(propagator) {
18
+ if (propagator === null) return;
19
+ if (propagator === void 0) {
20
+ propagation.setGlobalPropagator(new CompositePropagator({ propagators: [new W3CTraceContextPropagator(), new W3CBaggagePropagator()] }));
21
+ return;
22
+ }
23
+ propagation.setGlobalPropagator(propagator);
24
+ }
25
+ /**
26
+ * This class represents a web tracer with {@link StackContextManager}
27
+ */
28
+ var WebTracerProvider = class extends BasicTracerProvider {
29
+ /**
30
+ * Constructs a new Tracer instance.
31
+ * @param config Web Tracer config
32
+ */
33
+ constructor(config = {}) {
34
+ super(config);
35
+ }
36
+ /**
37
+ * Register this TracerProvider for use with the OpenTelemetry API.
38
+ * Undefined values may be replaced with defaults, and
39
+ * null values will be skipped.
40
+ *
41
+ * @param config Configuration object for SDK registration
42
+ */
43
+ register(config = {}) {
44
+ trace.setGlobalTracerProvider(this);
45
+ setupPropagator(config.propagator);
46
+ setupContextManager(config.contextManager);
47
+ }
48
+ };
49
+ //#endregion
50
+ export { WebTracerProvider };
51
+
52
+ //# sourceMappingURL=WebTracerProvider.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WebTracerProvider.mjs","names":[],"sources":["../src/WebTracerProvider.ts"],"sourcesContent":["/*\n * Copyright The OpenTelemetry Authors\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport type {\n SDKRegistrationConfig,\n TracerConfig,\n} from '@opentelemetry/sdk-trace-base';\nimport { BasicTracerProvider } from '@opentelemetry/sdk-trace-base';\nimport { StackContextManager } from './StackContextManager';\nimport type { ContextManager, TextMapPropagator } from '@opentelemetry/api';\nimport { trace, context, propagation } from '@opentelemetry/api';\nimport {\n CompositePropagator,\n W3CBaggagePropagator,\n W3CTraceContextPropagator,\n} from '@opentelemetry/core';\n\nfunction setupContextManager(\n contextManager: ContextManager | null | undefined\n) {\n // null means 'do not register'\n if (contextManager === null) {\n return;\n }\n\n // undefined means 'register default'\n if (contextManager === undefined) {\n const defaultContextManager = new StackContextManager();\n defaultContextManager.enable();\n context.setGlobalContextManager(defaultContextManager);\n return;\n }\n\n contextManager.enable();\n context.setGlobalContextManager(contextManager);\n}\n\nfunction setupPropagator(propagator: TextMapPropagator | null | undefined) {\n // null means 'do not register'\n if (propagator === null) {\n return;\n }\n\n // undefined means 'register default'\n if (propagator === undefined) {\n propagation.setGlobalPropagator(\n new CompositePropagator({\n propagators: [\n new W3CTraceContextPropagator(),\n new W3CBaggagePropagator(),\n ],\n })\n );\n return;\n }\n\n propagation.setGlobalPropagator(propagator);\n}\n\n/**\n * WebTracerConfig provides an interface for configuring a Web Tracer.\n */\nexport type WebTracerConfig = TracerConfig;\n\n/**\n * This class represents a web tracer with {@link StackContextManager}\n */\nexport class WebTracerProvider extends BasicTracerProvider {\n /**\n * Constructs a new Tracer instance.\n * @param config Web Tracer config\n */\n constructor(config: WebTracerConfig = {}) {\n super(config);\n }\n\n /**\n * Register this TracerProvider for use with the OpenTelemetry API.\n * Undefined values may be replaced with defaults, and\n * null values will be skipped.\n *\n * @param config Configuration object for SDK registration\n */\n register(config: SDKRegistrationConfig = {}): void {\n trace.setGlobalTracerProvider(this);\n setupPropagator(config.propagator);\n setupContextManager(config.contextManager);\n }\n}\n"],"mappings":";;;;;AAmBA,SAAS,oBACP,gBACA;CAEA,IAAI,mBAAmB,MACrB;CAIF,IAAI,mBAAmB,KAAA,GAAW;EAChC,MAAM,wBAAwB,IAAI,oBAAoB;EACtD,sBAAsB,OAAO;EAC7B,QAAQ,wBAAwB,qBAAqB;EACrD;CACF;CAEA,eAAe,OAAO;CACtB,QAAQ,wBAAwB,cAAc;AAChD;AAEA,SAAS,gBAAgB,YAAkD;CAEzE,IAAI,eAAe,MACjB;CAIF,IAAI,eAAe,KAAA,GAAW;EAC5B,YAAY,oBACV,IAAI,oBAAoB,EACtB,aAAa,CACX,IAAI,0BAA0B,GAC9B,IAAI,qBAAqB,CAC3B,EACF,CAAC,CACH;EACA;CACF;CAEA,YAAY,oBAAoB,UAAU;AAC5C;;;;AAUA,IAAa,oBAAb,cAAuC,oBAAoB;;;;;CAKzD,YAAY,SAA0B,CAAC,GAAG;EACxC,MAAM,MAAM;CACd;;;;;;;;CASA,SAAS,SAAgC,CAAC,GAAS;EACjD,MAAM,wBAAwB,IAAI;EAClC,gBAAgB,OAAO,UAAU;EACjC,oBAAoB,OAAO,cAAc;CAC3C;AACF"}
@@ -0,0 +1,31 @@
1
+ //#region src/enums/PerformanceTimingNames.ts
2
+ let PerformanceTimingNames = /* @__PURE__ */ function(PerformanceTimingNames) {
3
+ PerformanceTimingNames["CONNECT_END"] = "connectEnd";
4
+ PerformanceTimingNames["CONNECT_START"] = "connectStart";
5
+ PerformanceTimingNames["DECODED_BODY_SIZE"] = "decodedBodySize";
6
+ PerformanceTimingNames["DOM_COMPLETE"] = "domComplete";
7
+ PerformanceTimingNames["DOM_CONTENT_LOADED_EVENT_END"] = "domContentLoadedEventEnd";
8
+ PerformanceTimingNames["DOM_CONTENT_LOADED_EVENT_START"] = "domContentLoadedEventStart";
9
+ PerformanceTimingNames["DOM_INTERACTIVE"] = "domInteractive";
10
+ PerformanceTimingNames["DOMAIN_LOOKUP_END"] = "domainLookupEnd";
11
+ PerformanceTimingNames["DOMAIN_LOOKUP_START"] = "domainLookupStart";
12
+ PerformanceTimingNames["ENCODED_BODY_SIZE"] = "encodedBodySize";
13
+ PerformanceTimingNames["FETCH_START"] = "fetchStart";
14
+ PerformanceTimingNames["LOAD_EVENT_END"] = "loadEventEnd";
15
+ PerformanceTimingNames["LOAD_EVENT_START"] = "loadEventStart";
16
+ PerformanceTimingNames["NAVIGATION_START"] = "navigationStart";
17
+ PerformanceTimingNames["REDIRECT_END"] = "redirectEnd";
18
+ PerformanceTimingNames["REDIRECT_START"] = "redirectStart";
19
+ PerformanceTimingNames["REQUEST_START"] = "requestStart";
20
+ PerformanceTimingNames["RESPONSE_END"] = "responseEnd";
21
+ PerformanceTimingNames["RESPONSE_START"] = "responseStart";
22
+ PerformanceTimingNames["SECURE_CONNECTION_START"] = "secureConnectionStart";
23
+ PerformanceTimingNames["START_TIME"] = "startTime";
24
+ PerformanceTimingNames["UNLOAD_EVENT_END"] = "unloadEventEnd";
25
+ PerformanceTimingNames["UNLOAD_EVENT_START"] = "unloadEventStart";
26
+ return PerformanceTimingNames;
27
+ }({});
28
+ //#endregion
29
+ exports.PerformanceTimingNames = PerformanceTimingNames;
30
+
31
+ //# sourceMappingURL=PerformanceTimingNames.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PerformanceTimingNames.cjs","names":[],"sources":["../../src/enums/PerformanceTimingNames.ts"],"sourcesContent":["/*\n * Copyright The OpenTelemetry Authors\n * SPDX-License-Identifier: Apache-2.0\n */\n\nexport enum PerformanceTimingNames {\n CONNECT_END = 'connectEnd',\n CONNECT_START = 'connectStart',\n DECODED_BODY_SIZE = 'decodedBodySize',\n DOM_COMPLETE = 'domComplete',\n DOM_CONTENT_LOADED_EVENT_END = 'domContentLoadedEventEnd',\n DOM_CONTENT_LOADED_EVENT_START = 'domContentLoadedEventStart',\n DOM_INTERACTIVE = 'domInteractive',\n DOMAIN_LOOKUP_END = 'domainLookupEnd',\n DOMAIN_LOOKUP_START = 'domainLookupStart',\n ENCODED_BODY_SIZE = 'encodedBodySize',\n FETCH_START = 'fetchStart',\n LOAD_EVENT_END = 'loadEventEnd',\n LOAD_EVENT_START = 'loadEventStart',\n NAVIGATION_START = 'navigationStart',\n REDIRECT_END = 'redirectEnd',\n REDIRECT_START = 'redirectStart',\n REQUEST_START = 'requestStart',\n RESPONSE_END = 'responseEnd',\n RESPONSE_START = 'responseStart',\n SECURE_CONNECTION_START = 'secureConnectionStart',\n START_TIME = 'startTime',\n UNLOAD_EVENT_END = 'unloadEventEnd',\n UNLOAD_EVENT_START = 'unloadEventStart',\n}\n"],"mappings":";AAKA,IAAY,yBAAL,yBAAA,wBAAA;CACL,uBAAA,iBAAA;CACA,uBAAA,mBAAA;CACA,uBAAA,uBAAA;CACA,uBAAA,kBAAA;CACA,uBAAA,kCAAA;CACA,uBAAA,oCAAA;CACA,uBAAA,qBAAA;CACA,uBAAA,uBAAA;CACA,uBAAA,yBAAA;CACA,uBAAA,uBAAA;CACA,uBAAA,iBAAA;CACA,uBAAA,oBAAA;CACA,uBAAA,sBAAA;CACA,uBAAA,sBAAA;CACA,uBAAA,kBAAA;CACA,uBAAA,oBAAA;CACA,uBAAA,mBAAA;CACA,uBAAA,kBAAA;CACA,uBAAA,oBAAA;CACA,uBAAA,6BAAA;CACA,uBAAA,gBAAA;CACA,uBAAA,sBAAA;CACA,uBAAA,wBAAA;;AACF,EAAA,CAAA,CAAA"}
@@ -0,0 +1,29 @@
1
+ //#region src/enums/PerformanceTimingNames.d.ts
2
+ declare enum PerformanceTimingNames {
3
+ CONNECT_END = "connectEnd",
4
+ CONNECT_START = "connectStart",
5
+ DECODED_BODY_SIZE = "decodedBodySize",
6
+ DOM_COMPLETE = "domComplete",
7
+ DOM_CONTENT_LOADED_EVENT_END = "domContentLoadedEventEnd",
8
+ DOM_CONTENT_LOADED_EVENT_START = "domContentLoadedEventStart",
9
+ DOM_INTERACTIVE = "domInteractive",
10
+ DOMAIN_LOOKUP_END = "domainLookupEnd",
11
+ DOMAIN_LOOKUP_START = "domainLookupStart",
12
+ ENCODED_BODY_SIZE = "encodedBodySize",
13
+ FETCH_START = "fetchStart",
14
+ LOAD_EVENT_END = "loadEventEnd",
15
+ LOAD_EVENT_START = "loadEventStart",
16
+ NAVIGATION_START = "navigationStart",
17
+ REDIRECT_END = "redirectEnd",
18
+ REDIRECT_START = "redirectStart",
19
+ REQUEST_START = "requestStart",
20
+ RESPONSE_END = "responseEnd",
21
+ RESPONSE_START = "responseStart",
22
+ SECURE_CONNECTION_START = "secureConnectionStart",
23
+ START_TIME = "startTime",
24
+ UNLOAD_EVENT_END = "unloadEventEnd",
25
+ UNLOAD_EVENT_START = "unloadEventStart"
26
+ }
27
+ //#endregion
28
+ export { PerformanceTimingNames };
29
+ //# sourceMappingURL=PerformanceTimingNames.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PerformanceTimingNames.d.cts","names":[],"sources":["../../src/enums/PerformanceTimingNames.d.ts"],"mappings":";aAAoB;EAChB;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA"}
@@ -0,0 +1,29 @@
1
+ //#region src/enums/PerformanceTimingNames.d.ts
2
+ declare enum PerformanceTimingNames {
3
+ CONNECT_END = "connectEnd",
4
+ CONNECT_START = "connectStart",
5
+ DECODED_BODY_SIZE = "decodedBodySize",
6
+ DOM_COMPLETE = "domComplete",
7
+ DOM_CONTENT_LOADED_EVENT_END = "domContentLoadedEventEnd",
8
+ DOM_CONTENT_LOADED_EVENT_START = "domContentLoadedEventStart",
9
+ DOM_INTERACTIVE = "domInteractive",
10
+ DOMAIN_LOOKUP_END = "domainLookupEnd",
11
+ DOMAIN_LOOKUP_START = "domainLookupStart",
12
+ ENCODED_BODY_SIZE = "encodedBodySize",
13
+ FETCH_START = "fetchStart",
14
+ LOAD_EVENT_END = "loadEventEnd",
15
+ LOAD_EVENT_START = "loadEventStart",
16
+ NAVIGATION_START = "navigationStart",
17
+ REDIRECT_END = "redirectEnd",
18
+ REDIRECT_START = "redirectStart",
19
+ REQUEST_START = "requestStart",
20
+ RESPONSE_END = "responseEnd",
21
+ RESPONSE_START = "responseStart",
22
+ SECURE_CONNECTION_START = "secureConnectionStart",
23
+ START_TIME = "startTime",
24
+ UNLOAD_EVENT_END = "unloadEventEnd",
25
+ UNLOAD_EVENT_START = "unloadEventStart"
26
+ }
27
+ //#endregion
28
+ export { PerformanceTimingNames };
29
+ //# sourceMappingURL=PerformanceTimingNames.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PerformanceTimingNames.d.mts","names":[],"sources":["../../src/enums/PerformanceTimingNames.d.ts"],"mappings":";aAAoB;EAChB;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA"}
@@ -0,0 +1,31 @@
1
+ //#region src/enums/PerformanceTimingNames.ts
2
+ let PerformanceTimingNames = /* @__PURE__ */ function(PerformanceTimingNames) {
3
+ PerformanceTimingNames["CONNECT_END"] = "connectEnd";
4
+ PerformanceTimingNames["CONNECT_START"] = "connectStart";
5
+ PerformanceTimingNames["DECODED_BODY_SIZE"] = "decodedBodySize";
6
+ PerformanceTimingNames["DOM_COMPLETE"] = "domComplete";
7
+ PerformanceTimingNames["DOM_CONTENT_LOADED_EVENT_END"] = "domContentLoadedEventEnd";
8
+ PerformanceTimingNames["DOM_CONTENT_LOADED_EVENT_START"] = "domContentLoadedEventStart";
9
+ PerformanceTimingNames["DOM_INTERACTIVE"] = "domInteractive";
10
+ PerformanceTimingNames["DOMAIN_LOOKUP_END"] = "domainLookupEnd";
11
+ PerformanceTimingNames["DOMAIN_LOOKUP_START"] = "domainLookupStart";
12
+ PerformanceTimingNames["ENCODED_BODY_SIZE"] = "encodedBodySize";
13
+ PerformanceTimingNames["FETCH_START"] = "fetchStart";
14
+ PerformanceTimingNames["LOAD_EVENT_END"] = "loadEventEnd";
15
+ PerformanceTimingNames["LOAD_EVENT_START"] = "loadEventStart";
16
+ PerformanceTimingNames["NAVIGATION_START"] = "navigationStart";
17
+ PerformanceTimingNames["REDIRECT_END"] = "redirectEnd";
18
+ PerformanceTimingNames["REDIRECT_START"] = "redirectStart";
19
+ PerformanceTimingNames["REQUEST_START"] = "requestStart";
20
+ PerformanceTimingNames["RESPONSE_END"] = "responseEnd";
21
+ PerformanceTimingNames["RESPONSE_START"] = "responseStart";
22
+ PerformanceTimingNames["SECURE_CONNECTION_START"] = "secureConnectionStart";
23
+ PerformanceTimingNames["START_TIME"] = "startTime";
24
+ PerformanceTimingNames["UNLOAD_EVENT_END"] = "unloadEventEnd";
25
+ PerformanceTimingNames["UNLOAD_EVENT_START"] = "unloadEventStart";
26
+ return PerformanceTimingNames;
27
+ }({});
28
+ //#endregion
29
+ export { PerformanceTimingNames };
30
+
31
+ //# sourceMappingURL=PerformanceTimingNames.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PerformanceTimingNames.mjs","names":[],"sources":["../../src/enums/PerformanceTimingNames.ts"],"sourcesContent":["/*\n * Copyright The OpenTelemetry Authors\n * SPDX-License-Identifier: Apache-2.0\n */\n\nexport enum PerformanceTimingNames {\n CONNECT_END = 'connectEnd',\n CONNECT_START = 'connectStart',\n DECODED_BODY_SIZE = 'decodedBodySize',\n DOM_COMPLETE = 'domComplete',\n DOM_CONTENT_LOADED_EVENT_END = 'domContentLoadedEventEnd',\n DOM_CONTENT_LOADED_EVENT_START = 'domContentLoadedEventStart',\n DOM_INTERACTIVE = 'domInteractive',\n DOMAIN_LOOKUP_END = 'domainLookupEnd',\n DOMAIN_LOOKUP_START = 'domainLookupStart',\n ENCODED_BODY_SIZE = 'encodedBodySize',\n FETCH_START = 'fetchStart',\n LOAD_EVENT_END = 'loadEventEnd',\n LOAD_EVENT_START = 'loadEventStart',\n NAVIGATION_START = 'navigationStart',\n REDIRECT_END = 'redirectEnd',\n REDIRECT_START = 'redirectStart',\n REQUEST_START = 'requestStart',\n RESPONSE_END = 'responseEnd',\n RESPONSE_START = 'responseStart',\n SECURE_CONNECTION_START = 'secureConnectionStart',\n START_TIME = 'startTime',\n UNLOAD_EVENT_END = 'unloadEventEnd',\n UNLOAD_EVENT_START = 'unloadEventStart',\n}\n"],"mappings":";AAKA,IAAY,yBAAL,yBAAA,wBAAA;CACL,uBAAA,iBAAA;CACA,uBAAA,mBAAA;CACA,uBAAA,uBAAA;CACA,uBAAA,kBAAA;CACA,uBAAA,kCAAA;CACA,uBAAA,oCAAA;CACA,uBAAA,qBAAA;CACA,uBAAA,uBAAA;CACA,uBAAA,yBAAA;CACA,uBAAA,uBAAA;CACA,uBAAA,iBAAA;CACA,uBAAA,oBAAA;CACA,uBAAA,sBAAA;CACA,uBAAA,sBAAA;CACA,uBAAA,kBAAA;CACA,uBAAA,oBAAA;CACA,uBAAA,mBAAA;CACA,uBAAA,kBAAA;CACA,uBAAA,oBAAA;CACA,uBAAA,6BAAA;CACA,uBAAA,gBAAA;CACA,uBAAA,sBAAA;CACA,uBAAA,wBAAA;;AACF,EAAA,CAAA,CAAA"}