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

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