Skip to content

Conversation

@sufeng-buaa
Copy link
Contributor

Motivation

Create OpenTelemetry spans to trace requests execution and enable aggregation with the engine's traces, enhancing observability.

Modifications

  1. Add an OpenTelemetry layer to the tracing crate, enabling tracing data from tracing::span!() and tracing::event!() macros to be exported to the OTel Collector.
  2. Add a filter to prevent existing tracing::info!(), tracing::debug!(), and tracing::error!() logs in the project from being exported to the OTel Collector.
  3. Implement trace context propagation for the HTTP router.

TODO

  1. Trace context propagation for the gRPC router.
  2. The gRPC entrypoint in the engine has not yet been adapted for request tracing either.

Checklist

@gemini-code-assist
Copy link
Contributor

Warning

You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again!

@github-actions github-actions bot added dependencies Pull requests that update a dependency file model-gateway labels Nov 25, 2025
@stmatengss
Copy link
Collaborator

/tag-and-rerun-ci

@slin1237
Copy link
Collaborator

can you rebase to latest

@sufeng-buaa sufeng-buaa force-pushed the sufeng-buaa/router-tracing branch from a555148 to e8cd6be Compare November 27, 2025 01:55
@sufeng-buaa
Copy link
Contributor Author

can you rebase to latest

done👌

@sufeng-buaa sufeng-buaa force-pushed the sufeng-buaa/router-tracing branch from e8cd6be to 6ee6eb6 Compare November 27, 2025 09:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file documentation Improvements or additions to documentation model-gateway run-ci

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants