@robota-sdk/agent-telemetry-otel 0.0.0-stage → 3.0.0-beta.101

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/CHANGELOG.md ADDED
@@ -0,0 +1,94 @@
1
+ # @robota-sdk/agent-telemetry-otel
2
+
3
+ ## 3.0.0-beta.101
4
+ ### Patch Changes
5
+
6
+ - Updated dependencies [62663ae]
7
+ - @robota-sdk/agent-core@3.0.0-beta.101
8
+ - @robota-sdk/agent-interface-analytics@3.0.0-beta.101
9
+
10
+ ## 3.0.0-beta.100
11
+ ### Patch Changes
12
+
13
+ - @robota-sdk/agent-core@3.0.0-beta.100
14
+ - @robota-sdk/agent-interface-analytics@3.0.0-beta.100
15
+
16
+ ## 3.0.0-beta.99
17
+ ### Patch Changes
18
+
19
+ - @robota-sdk/agent-core@3.0.0-beta.99
20
+ - @robota-sdk/agent-interface-analytics@3.0.0-beta.99
21
+
22
+ ## 3.0.0-beta.98
23
+ ### Patch Changes
24
+
25
+ - @robota-sdk/agent-core@3.0.0-beta.98
26
+ - @robota-sdk/agent-interface-analytics@3.0.0-beta.98
27
+
28
+ ## 3.0.0-beta.97
29
+ ### Patch Changes
30
+
31
+ - Updated dependencies [c207a31]
32
+ - Updated dependencies [9b4f63b]
33
+ - Updated dependencies [23a30cd]
34
+ - @robota-sdk/agent-core@3.0.0-beta.97
35
+ - @robota-sdk/agent-interface-analytics@3.0.0-beta.97
36
+
37
+ ## 3.0.0-beta.96
38
+ ### Patch Changes
39
+
40
+ - @robota-sdk/agent-core@3.0.0-beta.96
41
+ - @robota-sdk/agent-interface-analytics@3.0.0-beta.96
42
+
43
+ ## 3.0.0-beta.95
44
+ ### Patch Changes
45
+
46
+ - Updated dependencies [04a6de4]
47
+ - Updated dependencies [0ba247b]
48
+ - Updated dependencies [02053ec]
49
+ - @robota-sdk/agent-core@3.0.0-beta.95
50
+ - @robota-sdk/agent-interface-analytics@3.0.0-beta.95
51
+
52
+ ## 3.0.0-beta.94
53
+ ### Minor Changes
54
+
55
+ - ccf4194: `createOtelTracing({ tracer, mode, idGenerator })` records an agent run's provider calls and tool bodies
56
+ as OpenTelemetry spans on the host's tracer, under the host's span, named as `projectLivePromptTrace`
57
+ names them. Register its `plugin` once on the agent, and pass each run the `traceContext` and
58
+ `onExecutionEvent` from `startRun(parentSpanContext, { allowedOrigins, subprocessClasses })`.
59
+ `createStructuralIdGenerator()` is an `IdGenerator` for the host's `TracerProvider` so each span is
60
+ recorded under the span ID Robota sent in `traceparent`. `@opentelemetry/api` is a peer dependency.
61
+ - fef3a50: New package `@robota-sdk/agent-telemetry-otel`. `projectLivePromptTrace(batch, { mode, agentName })`
62
+ maps one live prompt trace batch onto content-free OpenTelemetry span shapes without depending on an
63
+ OpenTelemetry SDK. `mode: 'agent'` keeps Robota's `agent.*` span and attribute names; `mode: 'gen_ai'`
64
+ uses the OpenTelemetry GenAI semantic conventions (`invoke_agent`, `chat`, `execute_tool`, `gen_ai.*`
65
+ attributes, `GEN_AI_SCHEMA_URL`) and keeps Robota-only facts such as timing and outcome as `agent.*`;
66
+ `mode: 'gen_ai/dup'` emits both attribute sets under GenAI span names for a gradual migration.
67
+
68
+ `IToolBodyTraceEntry` gains an optional live-only `toolName`, which the GenAI projection uses for the
69
+ `execute_tool` span name and `gen_ai.tool.name`.
70
+ - ccff111: Live telemetry can name its metrics with the OpenTelemetry GenAI semantic conventions. With
71
+ `PRODUCT_TELEMETRY_SEMCONV` set to `gen_ai`, the metrics export the `gen_ai.client.inference.*`
72
+ duration, token-usage and per-call token histograms, `gen_ai.execute_tool.duration` and
73
+ `gen_ai.invoke_agent.*` duration and call counts, and drop only `agent.provider.input_tokens` and
74
+ `agent.provider.output_tokens`, which the GenAI usage counters replace exactly. `gen_ai/dup` exports
75
+ every `agent.*` metric and the GenAI ones. The default, `agent`, exports exactly the metrics it did
76
+ before. Provider- and tool-derived GenAI metrics are exported only when no such child was omitted, and
77
+ usage that was not received is recorded as 0 under the `unknown` modality, as the conventions specify.
78
+ The GenAI metrics carry the requested model as those conventions require, and their inference points
79
+ also take the `agent.provider.id` and `agent.model.id` labels under the same
80
+ `PRODUCT_TELEMETRY_METRIC_ATTRIBUTES` opt-ins as the `agent.*` metrics (the model only in `gen_ai/dup`),
81
+ so a provider split of token totals survives the dropped counters. `PRODUCT_TELEMETRY_SEMCONV` now applies to
82
+ traces and metrics, and is refused only when neither is exported over otlp or console. Console metrics
83
+ print the same projection.
84
+
85
+ `@robota-sdk/agent-telemetry-otel` adds `projectLivePromptMetricSamples`, which maps a live prompt trace
86
+ batch onto those GenAI metrics as plain, SDK-free samples with the recommended bucket boundaries, so
87
+ every host names and measures the same facts the same way. Its inference samples keep the label-safe
88
+ `agent.provider.id`, and `agent.model.id` in `gen_ai/dup`, as the provider span does.
89
+
90
+ ### Patch Changes
91
+
92
+ - Updated dependencies [fef3a50]
93
+ - @robota-sdk/agent-interface-analytics@3.0.0-beta.94
94
+ - @robota-sdk/agent-core@3.0.0-beta.94