Crates.io | fastrace-tower |
lib.rs | fastrace-tower |
version | 0.1.0 |
created_at | 2025-05-15 06:07:44.645393+00 |
updated_at | 2025-05-15 06:07:44.645393+00 |
description | A tower layer for propagating trace context for fastrace |
homepage | |
repository | https://github.com/fast/fastrace-tower |
max_upload_size | |
id | 1674525 |
size | 22,655 |
fastrace-tower
is a middleware library that connects fastrace, a distributed tracing library, with tower, modular and reusable components for building robust networking clients and servers. This integration enables seamless trace context propagation across microservice boundaries in applications based on tower.
Context propagation is a fundamental concept in distributed tracing that enables the correlation of operations spanning multiple services. When a request moves from one service to another, trace context information needs to be passed along, ensuring that all operations are recorded as part of the same trace.
fastrace-tower
implements the W3C Trace Context standard for propagating trace information between services. This ensures compatibility with other tracing systems that follow the same standard.
fastrace
library for complete distributed tracing.FastraceClientLayer
detects if there's an active trace and adds a traceparent
HTTP header with the trace context.FastraceServerLayer
extracts the trace context from the traceparent
header and creates a new span as a child of the received context.This process ensures that all operations across services are properly connected in the resulting trace, providing visibility into the entire request lifecycle.
This project is licensed under the Apache-2.0 license.