@zerotal/telemetry 1.7.3 → 1.7.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/api-surface.md +2 -17
- 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
|
|
@@ -154,6 +139,6 @@ interface TracerOptions = {
|
|
|
154
139
|
rethrowExportErrors?: boolean
|
|
155
140
|
}
|
|
156
141
|
|
|
157
|
-
type SpanKind = '
|
|
142
|
+
type SpanKind = 'internal' | 'server' | 'client' | 'producer' | 'consumer'
|
|
158
143
|
|
|
159
|
-
type SpanStatusCode = '
|
|
144
|
+
type SpanStatusCode = 'unset' | 'ok' | 'error'
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zerotal/telemetry",
|
|
3
|
-
"version": "1.7.
|
|
3
|
+
"version": "1.7.5",
|
|
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.7.
|
|
33
|
+
"@zerotal/core": "1.7.5"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
36
|
"typescript": "^5.8.0"
|