@atrim/instrument-node 0.5.1-1451fcf-20260105212505 → 0.5.1-21bb978-20260105202350

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.
@@ -91,6 +91,11 @@ var InstrumentationConfigSchema = z.object({
91
91
  // - "standalone": Use Effect's own OTLP exporter (bypasses Node SDK filtering)
92
92
  exporter: z.enum(["unified", "standalone"]).default("unified"),
93
93
  auto_extract_metadata: z.boolean(),
94
+ // Auto-bridge OpenTelemetry context to Effect spans
95
+ // When true, Effect spans automatically become children of the active OTel span
96
+ // (e.g., HTTP request span from auto-instrumentation)
97
+ // This is essential for proper trace hierarchy when using Effect with HTTP frameworks
98
+ auto_bridge_context: z.boolean().default(true),
94
99
  auto_isolation: AutoIsolationConfigSchema.optional()
95
100
  }).optional(),
96
101
  http: HttpFilteringConfigSchema.optional()
@@ -115,7 +120,8 @@ var defaultConfig = {
115
120
  effect: {
116
121
  enabled: true,
117
122
  exporter: "unified",
118
- auto_extract_metadata: true
123
+ auto_extract_metadata: true,
124
+ auto_bridge_context: true
119
125
  }
120
126
  };
121
127
  function parseAndValidateConfig(content) {