-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add distributed open telemetry tracing (#6)
We would like to add distributed open-telemetry tracing to the fmaas-router. This requires 3 changes on the fmaas-router: 1. Enabling open-telemetry tracing in the fmaas-router (this is done by the `init_logging` function in the newly created `tracing.rs` file. 2. Propagating trace context information in the GRPC metadata to the TGIS router. This is done with helper functions `inject_context_span` etc. defined in the same file and used in the `server.rs` file for the `/generate`, `/generateStream` and `/tokenize` endpoints. Span tags have been added following the [Semantic Convention for RPC calls](https://opentelemetry.io/docs/specs/semconv/rpc/rpc-spans/) 3. Receives trace context information from wx-inference-proxy. This is done with helper function `extract_context_spa Co-authored-by: Kavya <[email protected]>
- Loading branch information
1 parent
8efd754
commit abf31c0
Showing
6 changed files
with
388 additions
and
29 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.