opencode-otel-plugin 0.1.0 → 0.3.0

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/README.md CHANGED
@@ -55,9 +55,8 @@ Open [http://localhost:16686](http://localhost:16686), select **opencode** from
55
55
  ```
56
56
  invoke_agent opencode ← root span (session)
57
57
  ├── chat claude-sonnet-4-20250514 ← LLM request
58
- ├── execute_tool file_edit ← tool call
58
+ ├── execute_tool edit ← tool call (includes code.language)
59
59
  ├── execute_tool bash ← tool call
60
- ├── file_edit src/index.ts ← file change
61
60
  └── session_compaction ← context compaction
62
61
  ```
63
62
 
@@ -92,6 +91,19 @@ export OTEL_EXPORTER_OTLP_HEADERS="x-honeycomb-team=<your-api-key>"
92
91
 
93
92
  </details>
94
93
 
94
+ <details>
95
+ <summary><strong>Dynatrace</strong></summary>
96
+
97
+ ```bash
98
+ export OTEL_EXPORTER_OTLP_ENDPOINT="https://{your-environment-id}.live.dynatrace.com/api/v2/otlp"
99
+ export OTEL_EXPORTER_OTLP_HEADERS="Authorization=Api-Token {your-api-token}"
100
+ export OTEL_EXPORTER_OTLP_PROTOCOL="http/protobuf"
101
+ ```
102
+
103
+ Create an API token in Dynatrace with `openTelemetryTrace.ingest` and `metrics.ingest` scopes.
104
+
105
+ </details>
106
+
95
107
  <details>
96
108
  <summary><strong>Datadog</strong></summary>
97
109
 
@@ -123,8 +135,7 @@ Each OpenCode session produces a trace tree with parent-child relationships:
123
135
  |---|---|---|
124
136
  | `invoke_agent opencode` | Session start | `gen_ai.agent.name`, `gen_ai.conversation.id` |
125
137
  | `chat {model}` | LLM request | `gen_ai.request.model`, `gen_ai.provider.name`, `gen_ai.usage.input_tokens`, `gen_ai.usage.output_tokens` |
126
- | `execute_tool {name}` | Tool call | `gen_ai.tool.name`, `gen_ai.tool.call.id` |
127
- | `file_edit {path}` | File change | `code.filepath`, `code.language`, `opencode.file.lines_added`, `opencode.file.lines_removed` |
138
+ | `execute_tool {name}` | Tool call | `gen_ai.tool.name`, `gen_ai.tool.call.id`, `code.language` (edit/write tools) |
128
139
  | `session_compaction` | Context compaction | `gen_ai.conversation.id` |
129
140
 
130
141
  ### Metrics
@@ -198,7 +209,7 @@ This plugin follows [OpenTelemetry GenAI Semantic Conventions](https://opentelem
198
209
  git clone https://github.com/felixti/opencode-otel-plugin.git
199
210
  cd opencode-otel-plugin
200
211
  bun install
201
- bun test # 37 tests, 77 assertions
212
+ bun test # 48 tests, 84 assertions
202
213
  bun run typecheck # tsc --noEmit
203
214
  bun run build # dist/index.js + dist/index.d.ts
204
215
  ```