Skip to content

Commit 666a628

Browse files
committed
docs: update logback MDC dependency name to opentelemetry-logback-mdc-1.0
1 parent 63b7ca1 commit 666a628

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

OBSERVABILITY.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ GAX and Google Cloud Java libraries use SLF4J for logging. Include an SLF4J impl
9696

9797
To correlate logs with Cloud Trace, ensure that active trace and span IDs are propagated to your logging framework's Mapped Diagnostic Context (MDC):
9898
1. Use the [OpenTelemetry Javaagent](https://opentelemetry.io/docs/zero-code/java/agent/), which automatically instruments logging frameworks.
99-
2. Or add the `opentelemetry-logback-mdc-provider` dependency to your project to configure MDC propagation.
99+
2. Or add the `opentelemetry-logback-mdc-1.0` dependency to your project to configure MDC propagation.
100100

101101
Once the MDC is populated with `trace_id` and `span_id`, the Google Cloud Logging Logback appender automatically maps these to the trace and span fields in Cloud Logging, allowing you to view correlated logs and traces in the Google Cloud Console.
102102

0 commit comments

Comments
 (0)