apache / apache/burr

[Proposal] Evolving Apache Burr Observability: Standardized Enterprise-Grade OpenTelemetry Support

Open
#825 4 comments 0 reactions 0 assignees View on GitHub
status/needs-triage
Dominant language
Python
Stars
2.5k
Forks
195
Avg merge
6d 10h
Merged PRs (30d)
17

Description

Apache Burr is uniquely positioned to handle complex stateful agent workflows. To transition from beta observability to enterprise-grade readiness, I propose a formal initiative to evolve our current OpenTelemetry integration.

**Current Limitations:**

Async/Reactive Gaps: Existing integrations face stability challenges in fully asynchronous event loops (e.g., issue #413).

Semantic Consistency: Lack of standardized semantic conventions for agent steps (e.g., token usage, state transitions, and actor latency) leads to fragmented trace data.

Context Propagation: Inability to maintain parent-child trace context across state machine transitions in distributed agentic workflows.

**Proposed Scope of Work:**

Semantic Convention Standardization: Define and implement standard OTel attributes for Burr (e.g., ai.agent.state, ai.agent.transition_id, llm.token_usage).

Native Async Instrumentation: Refactor the bridge to utilize modern opentelemetry-instrumentation patterns that ensure non-blocking trace propagation.

PII/Sensitive Data Masking: Implement a built-in scrubbing mechanism for agent state payloads before exporting them to OTel collectors—critical for healthcare and regulated industry adoption.

Correlation IDs: Automatic injection of trace_id into all persisted state snapshots, allowing users to jump from a database record directly to the corresponding trace.

**Why this aligns with Apache Way:**
This move would position Burr as the primary choice for regulated AI agent development, where visibility and auditability are non-negotiable. I am prepared to contribute the initial reference implementation, drawing on my experience with production-grade OTel modules for Spring AI.

**Next Steps:**
I request the PPMC/Maintainer feedback on this roadmap. If agreed, I will open a series of PRs beginning with the core Semantic Conventions.

Contributor guide

Open the contributing guide

Research direction

Start by reviewing the current OpenTelemetry integration and issue #413, then map how state-machine transitions, async execution, persisted snapshots, and exported state are handled. Seek maintainer agreement on the semantic conventions and scope before proposing a first PR; done should be defined as an approved, testable slice of the broader roadmap.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
ai, distributed-systems, observability-sre
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
28/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.