@blaxel/telemetry 0.2.17-dev.112 → 0.2.17-dev.114
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/telemetry.js +7 -0
- package/dist/telemetry_provider.js +2 -0
- package/package.json +2 -2
package/dist/telemetry.js
CHANGED
|
@@ -208,6 +208,13 @@ class TelemetryManager {
|
|
|
208
208
|
"x-blaxel-workspace": headers["x-blaxel-workspace"],
|
|
209
209
|
};
|
|
210
210
|
core_1.logger.debug("Trace context headers:", JSON.stringify(traceHeaders));
|
|
211
|
+
// Log the span context that was created from the incoming request
|
|
212
|
+
const spanContext = span.spanContext();
|
|
213
|
+
core_1.logger.debug("HTTP span context:", JSON.stringify({
|
|
214
|
+
traceId: spanContext.traceId,
|
|
215
|
+
spanId: spanContext.spanId,
|
|
216
|
+
traceFlags: spanContext.traceFlags,
|
|
217
|
+
}));
|
|
211
218
|
}
|
|
212
219
|
},
|
|
213
220
|
});
|
|
@@ -53,6 +53,8 @@ class OtelTelemetryProvider {
|
|
|
53
53
|
parentContext: JSON.stringify(options?.parentContext),
|
|
54
54
|
activeContext: JSON.stringify(ctx),
|
|
55
55
|
otelOptions: JSON.stringify(otelOptions),
|
|
56
|
+
activeTraceId: activeSpan?.spanContext().traceId,
|
|
57
|
+
contextKeys: Object.keys(ctx),
|
|
56
58
|
}));
|
|
57
59
|
if (options?.parentContext) {
|
|
58
60
|
// If explicit parent context is provided, use it
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@blaxel/telemetry",
|
|
3
|
-
"version": "0.2.17-dev.
|
|
3
|
+
"version": "0.2.17-dev.114",
|
|
4
4
|
"description": "Blaxel SDK for TypeScript",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Blaxel, INC (https://blaxel.ai)",
|
|
@@ -71,7 +71,7 @@
|
|
|
71
71
|
"@opentelemetry/sdk-trace-base": "^2.0.0",
|
|
72
72
|
"@opentelemetry/sdk-trace-node": "^2.0.0",
|
|
73
73
|
"ai": "^4.3.13",
|
|
74
|
-
"@blaxel/core": "0.2.17-dev.
|
|
74
|
+
"@blaxel/core": "0.2.17-dev.114"
|
|
75
75
|
},
|
|
76
76
|
"devDependencies": {
|
|
77
77
|
"@eslint/js": "^9.26.0",
|