API & Integration · Service Integration
How should distributed tracing and correlation IDs be designed for production?
For production, propagate standard trace context across HTTP and messaging, include trace identifiers in structured logs, sample deliberately, avoid sensitive data in spans, and preserve context across asynchronous boundaries. Add automated tests and observability around the critical behavior, document ownership and failure handling, and review the design when traffic, dependencies, or security requirements change.