@netlify/opentelemetry-utils 1.0.0 → 1.0.2
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/lib/index.d.ts +3 -7
- package/package.json +6 -6
package/lib/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Context } from '@opentelemetry/api';
|
|
1
|
+
import { Context, Attributes } from '@opentelemetry/api';
|
|
2
2
|
/**
|
|
3
3
|
* Sets attributes to be propagated across child spans under the current active context
|
|
4
4
|
*/
|
|
@@ -8,15 +8,11 @@ export declare const setMultiSpanAttributes: (attributes: {
|
|
|
8
8
|
/**
|
|
9
9
|
* Add error information to the current active span (if any). Optionally sets the provided attributes on the span too.
|
|
10
10
|
*/
|
|
11
|
-
export declare const addErrorToActiveSpan: (error: Error, attributes?:
|
|
12
|
-
[key: string]: string;
|
|
13
|
-
} | undefined) => void;
|
|
11
|
+
export declare const addErrorToActiveSpan: (error: Error, attributes?: Attributes) => void;
|
|
14
12
|
/**
|
|
15
13
|
* Creates a specific event to the current active span (if any)
|
|
16
14
|
*/
|
|
17
|
-
export declare const addEventToActiveSpan: (eventName: string, attributes?:
|
|
18
|
-
[key: string]: string;
|
|
19
|
-
} | undefined) => void;
|
|
15
|
+
export declare const addEventToActiveSpan: (eventName: string, attributes?: Attributes) => void;
|
|
20
16
|
/**
|
|
21
17
|
* Sets global context to be used when initialising our root span
|
|
22
18
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@netlify/opentelemetry-utils",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2",
|
|
4
4
|
"description": "Opentelemetry utility methods",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": "./lib/index.js",
|
|
@@ -28,20 +28,20 @@
|
|
|
28
28
|
},
|
|
29
29
|
"author": "Netlify Inc.",
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@opentelemetry/api": "~1.
|
|
31
|
+
"@opentelemetry/api": "~1.7.0"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
34
|
"@opentelemetry/sdk-trace-base": "^1.18.1",
|
|
35
35
|
"@opentelemetry/sdk-trace-node": "^1.18.1",
|
|
36
36
|
"@types/node": "^14.18.53",
|
|
37
|
-
"@vitest/coverage-c8": "^0.
|
|
38
|
-
"@vitest/ui": "^0.
|
|
37
|
+
"@vitest/coverage-c8": "^0.33.0",
|
|
38
|
+
"@vitest/ui": "^0.34.0",
|
|
39
39
|
"typescript": "^5.0.0",
|
|
40
40
|
"vite": "^4.0.4",
|
|
41
|
-
"vitest": "^0.
|
|
41
|
+
"vitest": "^0.34.0"
|
|
42
42
|
},
|
|
43
43
|
"engines": {
|
|
44
44
|
"node": ">=18.0.0"
|
|
45
45
|
},
|
|
46
|
-
"gitHead": "
|
|
46
|
+
"gitHead": "a8bdf29ae5ff7adbf74cf5600b40660da000a602"
|
|
47
47
|
}
|