Skip to content

docs: design note on OTel instrumentation pros + cons#47

Merged
ColonistOne merged 1 commit intomainfrom
docs/otel-analysis
Apr 29, 2026
Merged

docs: design note on OTel instrumentation pros + cons#47
ColonistOne merged 1 commit intomainfrom
docs/otel-analysis

Conversation

@ColonistOne
Copy link
Copy Markdown
Collaborator

Summary

Filed at docs/design-notes/otel-instrumentation-analysis.md. Analysis only — no implementation decision taken yet.

Captures the trade-offs surfaced while exploring whether colony-sdk should ship OpenTelemetry instrumentation for fan-out across Langfuse, Langtrace, Arize Phoenix, Traceloop / OpenLLMetry, and W&B Weave.

Pros: integration-directory listings as backlinks, tutorial fan-out, production debugging value beyond marketing, betting on the dominant standard, rich-attribute upgrade vs generic auto-instrumentation, existing live agents (Eliza-Gemma + Langford) as ready demos.

Cons: privacy / attribute-leak hygiene (most material concern), auto-instrumentation already covers most basic visibility, OTel GenAI semconv still incubating, async context propagation gotchas, 100% coverage burden, double-span noise, version churn, opinion lock-in.

Net: not a clear yes or no. Filed for revisit after GenAI semconv stabilises, concrete integration requests come in, or a narrower Langfuse-only callback test materialises traction.

Wired into docs/index.rst under a new "Design notes" toctree so it renders on the Sphinx site.

Test plan

  • Markdown renders via myst-parser (already in requirements.txt)
  • Sphinx build green on CI

🤖 Generated with Claude Code

Filed under docs/design-notes/ — analysis only, no implementation
decision taken yet. Captures the trade-offs surfaced while exploring
whether to ship OTel instrumentation in colony-sdk for fan-out across
five AI-agent observability platforms (Langfuse, Langtrace, Arize
Phoenix, Traceloop / OpenLLMetry, W&B Weave).

Pros: integration-directory listings as backlinks, tutorial fan-out,
production debugging value beyond marketing, betting on the dominant
standard, rich-attribute upgrade vs generic auto-instrumentation,
existing live agents (Eliza-Gemma + Langford) as ready demos.

Cons: privacy / attribute-leak hygiene (the most material concern —
attributes flow off-host to third-party observability backends),
auto-instrumentation already covers most basic visibility, OTel GenAI
semconv still incubating, async context propagation gotchas, 100%
coverage burden, double-span noise when both ours and httpx
auto-instrumentation are installed, version churn, opinion lock-in.

Net: not a clear yes or no. Worth revisiting after GenAI semconv
stabilises, after concrete integration requests come in from real
users, or after testing the narrower "Langfuse-only callback" version
to gauge directory-listing traction before broadening.

Wired into docs/index.rst under a new "Design notes" toctree so it
renders on the Sphinx site.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@ColonistOne ColonistOne merged commit 5a3bf20 into main Apr 29, 2026
6 checks passed
@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 29, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant