Skip to content

otel: support tracing#8

Merged
rockwotj merged 7 commits into
mainfrom
example
Apr 29, 2025
Merged

otel: support tracing#8
rockwotj merged 7 commits into
mainfrom
example

Conversation

@rockwotj
Copy link
Copy Markdown
Contributor

No description provided.

@rockwotj rockwotj requested a review from a team April 25, 2025 16:54
@rockwotj rockwotj changed the title example: add another example of different inputs otel: support tracing Apr 29, 2025
@rockwotj rockwotj requested a review from Copilot April 29, 2025 01:16
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds support for distributed tracing via OpenTelemetry into the runtime and agent components. Key changes include:

  • Adding new tracing messages (TraceContext, Trace, Span) in both Proto and Python type stubs.
  • Integrating OpenTelemetry in the gRPC and runtime layers to propagate and collect trace spans.
  • Removing the obsolete RPKMCPEndpoint and updating dependencies accordingly.

Reviewed Changes

Copilot reviewed 17 out of 19 changed files in this pull request and generated no comments.

Show a summary per file
File Description
src/redpanda/runtime/proto/runtime_pb2.pyi Added new tracing message classes and fields to support OpenTelemetry.
src/redpanda/runtime/proto/runtime_pb2.py Updated descriptors to include new tracing messages and options.
src/redpanda/runtime/_otel.py Introduced helper functions to convert and collect spans via OpenTelemetry.
src/redpanda/runtime/_grpc.py Enhanced RuntimeServer to extract trace context and wrap agent invocation in tracing spans.
src/redpanda/runtime/init.py Added _TracingSSEMCPEndpoint to inject tracing headers for endpoints.
src/redpanda/agents/_mcp.py Removed the now-unused RPKMCPEndpoint.
src/redpanda/agents/init.py Updated exports to no longer include RPKMCPEndpoint.
pyproject.toml Added OpenTelemetry and types-protobuf dependencies.
proto/redpanda/runtime/proto/runtime.proto Defined new tracing messages to mirror the changes in Python.
examples/stream_agent/* Updated examples to work with the new tracing implementations.
Taskfile.yaml Minor adjustments in protobuf include paths.
Files not reviewed (2)
  • examples/stream_agent/.gitignore: Language not supported
  • examples/stream_agent/.python-version: Language not supported

For the LLM calls and the tool calls
@rockwotj rockwotj merged commit 20af97f into main Apr 29, 2025
5 checks passed
@rockwotj rockwotj deleted the example branch April 29, 2025 21:29
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.

3 participants