grpc-java/census/src
DNVindhya 844de39c26
gcp-observability, census: add trace information to logs (#9963)
This commit adds trace information (TraceId, SpanId and TraceSampled)
fields to LogEntry, when both logging and tracing are enabled in
gcp-observability. 

For server-side logs, span information was readily available using
Span.getContext() propagated via `io.grpc.Context`. Similar approach is
not feasible for client-side architecture.

Client SpanContext which has all the information required to be added
to logs is propagated to the logging interceptor via `io.grpc.CallOptions`.
2023-03-20 14:18:16 -07:00
..
main/java/io/grpc/census gcp-observability, census: add trace information to logs (#9963) 2023-03-20 14:18:16 -07:00
test/java/io/grpc/census gcp-observability, census: add trace information to logs (#9963) 2023-03-20 14:18:16 -07:00