Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Java-Logging: OpenTelemetry spans are ignored as parents for LogRecords #1595

Closed
cindy-peng opened this issue Apr 30, 2024 · 0 comments · Fixed by #1596
Closed

Java-Logging: OpenTelemetry spans are ignored as parents for LogRecords #1595

cindy-peng opened this issue Apr 30, 2024 · 0 comments · Fixed by #1596
Assignees
Labels
api: logging Issues related to the googleapis/java-logging API. priority: p3 Desirable enhancement or fix. May not be included in next release.

Comments

@cindy-peng
Copy link
Contributor

Tracking the same issue as googleapis/google-cloud-go#9302 to propagate correct TraceId and SpanId for logging and tracing correlation.

Client
java-logging

Context
In java-logging libraries, the current implementation will always use a remote trace ID and span ID parsed from HTTP headers that originate from outside the application.

Expected behavior
If the user is using opentelemetry instrumentation, we want to use the traceID and spanID of the span that OpenTelemetry created. This way, when a user looks for logs associated with that span, the logs produced by this logging library will appear.

Design Docs:
OpenTelemetry Trace/Span ID Support in Cloud Logging Library
OpenTelemetry Trace/Span ID Support in Java Cloud Logging Library

@product-auto-label product-auto-label bot added the api: logging Issues related to the googleapis/java-logging API. label Apr 30, 2024
@cindy-peng cindy-peng added the priority: p3 Desirable enhancement or fix. May not be included in next release. label Apr 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: logging Issues related to the googleapis/java-logging API. priority: p3 Desirable enhancement or fix. May not be included in next release.
Projects
None yet
1 participant