@zerotal/telemetry 1.7.4 → 1.8.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.
- package/api-surface.md +0 -15
- package/package.json +2 -2
package/api-surface.md
CHANGED
|
@@ -15,19 +15,6 @@ class NoopExporter = {
|
|
|
15
15
|
export: (_span: SpanData) => Promise<void>
|
|
16
16
|
}
|
|
17
17
|
|
|
18
|
-
class NoopSpan = {
|
|
19
|
-
new (): NoopSpan
|
|
20
|
-
addEvent: (_name: string, _attributes?: Record<string, unknown>) => NoopSpan
|
|
21
|
-
durationMs: number
|
|
22
|
-
end: () => void
|
|
23
|
-
isEnded: boolean
|
|
24
|
-
readonly data: SpanData
|
|
25
|
-
recordException: (_error: Error) => NoopSpan
|
|
26
|
-
setAttribute: (_key: string, _value: string | number | boolean) => NoopSpan
|
|
27
|
-
setAttributes: (_attrs: Record<string, string | number | boolean>) => NoopSpan
|
|
28
|
-
setStatus: (_code: 'ok' | 'error', _message?: string) => NoopSpan
|
|
29
|
-
}
|
|
30
|
-
|
|
31
18
|
class OtlpExporter = {
|
|
32
19
|
new (options?: OtlpExporterOptions): OtlpExporter
|
|
33
20
|
export: (span: SpanData) => Promise<void>
|
|
@@ -85,8 +72,6 @@ class Tracer = {
|
|
|
85
72
|
|
|
86
73
|
const SpanContext = AsyncLocalStorage<ActiveContext>
|
|
87
74
|
|
|
88
|
-
function _randomHex = (bytes: number) => string
|
|
89
|
-
|
|
90
75
|
function currentSpan = () => Span | undefined
|
|
91
76
|
|
|
92
77
|
function installEventBridge = (tracer: Tracer) => () => void
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zerotal/telemetry",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.8.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"maturity": "stable",
|
|
6
6
|
"private": false,
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"typecheck": "tsc --noEmit"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@zerotal/core": "1.
|
|
33
|
+
"@zerotal/core": "1.8.0"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
36
|
"typescript": "^5.8.0"
|