@atrim/instrument-web 0.7.1-dev.14fdea7.20260109021705 → 0.7.1-dev.764c183.20260110203528

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atrim/instrument-web",
3
- "version": "0.7.1-dev.14fdea7.20260109021705",
3
+ "version": "0.7.1-dev.764c183.20260110203528",
4
4
  "description": "OpenTelemetry instrumentation for browsers with centralized YAML configuration",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -4125,6 +4125,25 @@ var AutoInstrumentationConfigSchema = external_exports.object({
4125
4125
  // Naming rules (first match wins)
4126
4126
  rules: external_exports.array(SpanNamingRuleSchema).default([])
4127
4127
  }).default({}),
4128
+ // Span relationship configuration for forked fibers
4129
+ // Controls how child fiber spans relate to their parent/forking context
4130
+ span_relationships: external_exports.object({
4131
+ // Relationship type between forked fiber spans and their parent context
4132
+ // - 'parent-child': Use parent-child relationship (default, traditional tracing)
4133
+ // Parent span shows child as nested. Works well with most observability tools.
4134
+ // - 'span-links': Use span links (semantically correct for async forks per OTel spec)
4135
+ // Fibers get independent traces linked to parent. Better for long-running fibers.
4136
+ // - 'both': Create parent-child AND add span links
4137
+ // Maximum visibility but may create redundant data.
4138
+ type: external_exports.enum(["parent-child", "span-links", "both"]).default("parent-child"),
4139
+ // Custom attributes to add to span links (only used when type includes links)
4140
+ link_attributes: external_exports.object({
4141
+ // Link type identifier
4142
+ "link.type": external_exports.string().default("fork"),
4143
+ // Custom attributes (key-value pairs)
4144
+ custom: external_exports.record(external_exports.string()).optional()
4145
+ }).optional()
4146
+ }).default({}),
4128
4147
  // Pattern-based filtering
4129
4148
  filter: external_exports.object({
4130
4149
  // Only trace spans matching these patterns (empty = trace all)