Commit Graph

8 Commits

Author SHA1 Message Date
Cijo Thomas edb0d5857f
docs: Modify examples to show best practices - reuse tracer (#2709) 2025-02-26 12:08:01 -08:00
Dimitris Apostolou 81fea0747c
Avoid duplicate crates (#2703)
Co-authored-by: Cijo Thomas <cijo.thomas@gmail.com>
2025-02-25 08:07:55 -08:00
Cijo Thomas dfeeac7a7d
Rename TracerProvider to SdkTracerProvider (#2614)
Co-authored-by: Lalit Kumar Bhasin <lalit_fin@yahoo.com>
2025-02-05 11:01:29 -08:00
Aumetra Weisman 621a5a9737
Upgrade to hyper/http v1.0 (#1674)
Co-authored-by: Lalit Kumar Bhasin <labhas@microsoft.com>
2024-07-12 07:27:25 -07:00
Utkarsh Umesan Pillai da368d4085
Simplify tracing-grpc example (#1886) 2024-06-17 15:55:13 -07:00
Cijo Thomas 0b2c70398e
Add warning about Log API that is it not for app users (#1502) 2024-01-30 16:15:05 -05:00
Rodolfo P A f31c4dd1b1
Workspace dependencies (#1457)
Adds shared dependencies to the workspace.
It improves the experience while managing the dependencies.

## Changes

Picked the shared dependencies of the member projects and used added
then to the workspace dependencies, https://crates.io/crates/work_dep
can help with that.

## Merge requirement checklist

* [ ]
[CONTRIBUTING](https://github.com/open-telemetry/opentelemetry-rust/blob/main/CONTRIBUTING.md)
guidelines followed
* [ ] Unit tests added/updated (if applicable)
* [ ] Appropriate `CHANGELOG.md` files updated for non-trivial,
user-facing changes
* [ ] Changes in public API reviewed (if applicable)
2023-12-30 15:46:34 -08:00
Lalit Kumar Bhasin 897e70a093
Add tracing-http example (#1404)
Modified version of the
[tracingresponse](https://github.com/open-telemetry/opentelemetry-rust-contrib/tree/main/examples/traceresponse)
example (in `contrib` repo) to demonstrate context propagation from
client to server. The example
- Removes the code to propagate trace-context as part of response
headers from server to client, as the W3C specs is still in draft
(https://w3c.github.io/trace-context/#trace-context-http-response-headers-format),
and also the propagator is part of contrib repo.
- Modify the HTTP server and client code to look more complete and also
demonstrate the context propagation across async delegates.
**_Server_** - Enhance the server's request handling, by adding support
for `/echo` and `/health` endpoints. Upon receiving the request, the
server now creates a child span, linked to the originating remote span,
and the request is forwarded to its respective delegate async task.
Furthermore, within each async task, a subsequent child span is spawned,
parented by the initial child span. This nested span creation
exemplifies the effective propagation of tracing context through the
multiple layers of async execution.
**_Client_** - The client sends requests for `/echo` and `/health`
within the context of the client root span.
2023-11-28 09:32:55 +01:00