Repository navigation
Conversation
This was referenced Feb 12, 2026
Ladas
force-pushed
the
feat/otel-minimal-agent-collector-667
branch
from
February 12, 2026 14:39
9752473 to
cbc9179
Compare
Add design document for Approach B: reducing agent observability code to ~50 lines (root span + input/output capture) and letting the OTEL Collector handle all MLflow/OpenInference/GenAI attribute enrichment. Closes rossoctl#667 (approach B) Signed-off-by: Ladas <[email protected]> Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]> Signed-off-by: Ladislav Smola <[email protected]>
…ariants Add VariantProfile dataclass and AGENT_OBSERVABILITY_VARIANT env var to support testing different agent instrumentation approaches with the same test suite. Each variant declares what root span attributes it produces, and tests assert/skip based on the variant's capabilities. Supported variants: - baseline: Full observability.py in agent (PR 114 approach) - minimal: Minimal agent boilerplate + OTEL Collector enrichment - authbridge: AuthBridge ext_proc root span, zero agent code - none: No instrumentation (negative test) Refs rossoctl#667 Signed-off-by: Ladas <[email protected]> Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]> Signed-off-by: Ladislav Smola <[email protected]>
Reduce agent observability code from ~551 lines to ~50 lines by moving MLflow/OpenInference/GenAI attribute enrichment to the OTEL Collector. Agent sets only what it uniquely knows (input.value, output.value, gen_ai.agent.name, gen_ai.operation.name, gen_ai.conversation.id). The new transform/agent_enrichment processor derives all mlflow.*, openinference.*, and llm.* attributes from those + resource attributes. Changes: - Add observability_minimal.py reference implementation for agents - Add otel-collector-agent-enrichment.yaml standalone transform config - Add transform/agent_enrichment processor to otel-collector.yaml - Include agent_enrichment in both Phoenix and MLflow pipelines - Update design doc with final implementation details Refs rossoctl#667 Signed-off-by: Ladas <[email protected]> Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]> Signed-off-by: Ladislav Smola <[email protected]>
Ladas
force-pushed
the
feat/otel-minimal-agent-collector-667
branch
from
February 13, 2026 17:06
cbc9179 to
e19cac8
Compare
Contributor
Author
|
for now going with #668 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Approach B for issue #667: Reduce agent observability code from ~551 lines to ~50 lines by letting the OTEL Collector handle all MLflow/OpenInference/GenAI attribute enrichment.
transform/agent_enrichmentadds all mlflow., openinference., gen_ai.* attributesIsRootSpan()OTTL function (Collector v0.104.0+) for reliable root span detectionSee design doc for full architecture.
Related
Test plan
transform/agent_enrichmentpytest -m observability)IsRootSpan()works with collector v0.122.1🤖 Generated with Claude Code