@blaxel/telemetry 0.2.17-dev.128 → 0.2.17-dev.130

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 CHANGED
@@ -289,6 +289,8 @@ class TelemetryManager {
289
289
  core_1.logger.debug("Manual context extraction error:", error);
290
290
  }
291
291
  }
292
+ core_1.logger.debug("Span:", JSON.stringify(span));
293
+ core_1.logger.debug("Span context:", JSON.stringify(span.spanContext()));
292
294
  // Log the span context that was created from the incoming request
293
295
  const spanContext = span.spanContext();
294
296
  core_1.logger.debug("HTTP span context:", JSON.stringify({
@@ -48,9 +48,14 @@ class OtelTelemetryProvider {
48
48
  attributes: options?.attributes,
49
49
  root: options?.isRoot,
50
50
  };
51
+ core_1.logger.debug("Options:", JSON.stringify(options));
52
+ core_1.logger.debug("OTel span options:", JSON.stringify(otelOptions));
51
53
  // Handle parent context properly with debugging
52
54
  let ctx = api_1.context.active();
53
55
  const activeSpan = api_1.trace.getActiveSpan();
56
+ core_1.logger.debug("Active context:", JSON.stringify(ctx));
57
+ core_1.logger.debug("Active span:", JSON.stringify(activeSpan));
58
+ core_1.logger.debug("Active span context:", JSON.stringify(activeSpan?.spanContext()));
54
59
  // Debug logging for context issues
55
60
  core_1.logger.info(`Creating span "${name}":`, JSON.stringify({
56
61
  hasActiveSpan: !!activeSpan,
@@ -76,6 +81,8 @@ class OtelTelemetryProvider {
76
81
  // Start the span with proper context
77
82
  const span = tracer.startSpan(name, otelOptions, ctx);
78
83
  const otelSpan = new OtelSpan(span);
84
+ core_1.logger.debug("Span:", JSON.stringify(span));
85
+ core_1.logger.debug("Span context:", JSON.stringify(span.spanContext()));
79
86
  // Additional debugging
80
87
  const spanContext = span.spanContext();
81
88
  core_1.logger.info(`Created span "${name}":`, JSON.stringify({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blaxel/telemetry",
3
- "version": "0.2.17-dev.128",
3
+ "version": "0.2.17-dev.130",
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.128"
74
+ "@blaxel/core": "0.2.17-dev.130"
75
75
  },
76
76
  "devDependencies": {
77
77
  "@eslint/js": "^9.26.0",