@xylabs/telemetry 4.13.4 → 4.13.5
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/dist/neutral/index.d.ts +9 -14
- package/package.json +4 -4
package/dist/neutral/index.d.ts
CHANGED
|
@@ -1,14 +1,9 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
export declare function spanRoot<T>(name: string, fn: () => T, tracer?: Tracer): T;
|
|
11
|
-
|
|
12
|
-
export declare function spanRootAsync<T>(name: string, fn: () => Promise<T>, tracer?: Tracer): Promise<T>;
|
|
13
|
-
|
|
14
|
-
export { }
|
|
1
|
+
import { Context, Tracer } from '@opentelemetry/api';
|
|
2
|
+
|
|
3
|
+
declare function cloneContextWithoutSpan(activeCtx: Context, configKeys?: symbol[]): Context;
|
|
4
|
+
declare function span<T>(name: string, fn: () => T, tracer?: Tracer): T;
|
|
5
|
+
declare function spanRoot<T>(name: string, fn: () => T, tracer?: Tracer): T;
|
|
6
|
+
declare function spanAsync<T>(name: string, fn: () => Promise<T>, tracer?: Tracer): Promise<T>;
|
|
7
|
+
declare function spanRootAsync<T>(name: string, fn: () => Promise<T>, tracer?: Tracer): Promise<T>;
|
|
8
|
+
|
|
9
|
+
export { cloneContextWithoutSpan, span, spanAsync, spanRoot, spanRootAsync };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xylabs/telemetry",
|
|
3
|
-
"version": "4.13.
|
|
3
|
+
"version": "4.13.5",
|
|
4
4
|
"description": "Base functionality used throughout XY Labs TypeScript/JavaScript libraries",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"hex",
|
|
@@ -40,11 +40,11 @@
|
|
|
40
40
|
],
|
|
41
41
|
"dependencies": {
|
|
42
42
|
"@opentelemetry/api": "^1.9.0",
|
|
43
|
-
"@xylabs/typeof": "^4.13.
|
|
43
|
+
"@xylabs/typeof": "^4.13.5"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
|
-
"@xylabs/ts-scripts-yarn3": "^7.0.0-rc.
|
|
47
|
-
"@xylabs/tsconfig": "^7.0.0-rc.
|
|
46
|
+
"@xylabs/ts-scripts-yarn3": "^7.0.0-rc.8",
|
|
47
|
+
"@xylabs/tsconfig": "^7.0.0-rc.8",
|
|
48
48
|
"typescript": "^5.8.3"
|
|
49
49
|
},
|
|
50
50
|
"engines": {
|