You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 29c94a0
Browse filesBrowse the repository at this point in the historyBrowse files
feat(langy): trace opencode worker activity into the user's project (tagged "langy")
opencode has no native OpenTelemetry export (anomalyco/opencode#12142,
#14246, #14697), so the per-session worker now loads the pinned
@devtheops/opencode-plugin-otel plugin, which emits session/llm/tool
spans over OTLP http/protobuf to LangWatch's existing
/api/otel/v1/traces, authenticated with the project's dedicated Langy
key (resolves its own project — no X-Project-Id).
The plugin tags via OTLP *resource* attributes, but ingestion only
mapped the reserved tag.tags->labels / langwatch.thread.id->thread_id
keys from *span* attributes. So otel.traces.ts now hoists reserved
metadata keys found in resource attributes too (coercing tag.tags to a
string[] for labels), additively and guarded so a malformed resource
attribute can never break ingestion. This is what makes Langy's traces
land labeled "langy" and grouped by conversation.
No new REST endpoints (reuses /api/otel/v1/traces). Spec +
resource-attribute integration tests added.
Closes #4536. Part of epic #4528.
Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
0 commit comments