This repository has been archived by the owner on Oct 3, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 50
Add support for correlating traces and logs. #123
Labels
Comments
I added two experimental log correlation libraries to opencensus-java: Stackdriver (google-cloud-logging): https://github.com/census-instrumentation/opencensus-java/tree/master/contrib/log_correlation/stackdriver |
One issue that came up was deciding how to name the keys for the tracing data, when the logging framework supports adding arbitrary key-value pairs to log entries. We should probably standardize the key names. See the discussion at census-instrumentation/opencensus-java#1371 (comment). The Log4j log correlation library currently uses the keys |
sebright
added a commit
to sebright/opencensus-specs
that referenced
this issue
Sep 20, 2018
…mentation#123). The specification only covers aspects of log correlation that are likely to be shared by log correlation implementations for multiple languages and logging frameworks. It is based on the experimental log correlation libraries in opencensus-java: https://github.com/census-instrumentation/opencensus-java/tree/master/contrib/log_correlation/stackdriver https://github.com/census-instrumentation/opencensus-java/tree/master/contrib/log_correlation/log4j2
sebright
added a commit
to sebright/opencensus-specs
that referenced
this issue
Sep 20, 2018
…mentation#123). The specification only covers aspects of log correlation that are likely to be shared by log correlation implementations for multiple languages and logging frameworks. It is based on the experimental log correlation libraries in opencensus-java: https://github.com/census-instrumentation/opencensus-java/tree/master/contrib/log_correlation/stackdriver https://github.com/census-instrumentation/opencensus-java/tree/master/contrib/log_correlation/log4j2
sebright
added a commit
to sebright/opencensus-specs
that referenced
this issue
Sep 20, 2018
…mentation#123). The specification only covers aspects of log correlation that are likely to be shared by log correlation implementations for multiple languages and logging frameworks. It is based on the experimental log correlation libraries in opencensus-java: https://github.com/census-instrumentation/opencensus-java/tree/master/contrib/log_correlation/stackdriver https://github.com/census-instrumentation/opencensus-java/tree/master/contrib/log_correlation/log4j2
sebright
added a commit
to sebright/opencensus-specs
that referenced
this issue
Sep 20, 2018
…mentation#123). The specification only covers aspects of log correlation that are likely to be shared by log correlation implementations for multiple languages and logging frameworks. It is based on the experimental log correlation libraries in opencensus-java: https://github.com/census-instrumentation/opencensus-java/tree/master/contrib/log_correlation/stackdriver https://github.com/census-instrumentation/opencensus-java/tree/master/contrib/log_correlation/log4j2
sebright
added a commit
to sebright/opencensus-specs
that referenced
this issue
Sep 25, 2018
…mentation#123). The specification only covers aspects of log correlation that are likely to be shared by log correlation implementations for multiple languages and logging frameworks. It is based on the experimental log correlation libraries in opencensus-java: https://github.com/census-instrumentation/opencensus-java/tree/master/contrib/log_correlation/stackdriver https://github.com/census-instrumentation/opencensus-java/tree/master/contrib/log_correlation/log4j2
sebright
added a commit
to sebright/opencensus-specs
that referenced
this issue
Sep 28, 2018
…mentation#123). The specification only covers aspects of log correlation that are likely to be shared by log correlation implementations for multiple languages and logging frameworks. It is based on the experimental log correlation libraries in opencensus-java: https://github.com/census-instrumentation/opencensus-java/tree/master/contrib/log_correlation/stackdriver https://github.com/census-instrumentation/opencensus-java/tree/master/contrib/log_correlation/log4j2
sebright
added a commit
to sebright/opencensus-specs
that referenced
this issue
Oct 8, 2018
…mentation#123). The specification only covers aspects of log correlation that are likely to be shared by log correlation implementations for multiple languages and logging frameworks. It is based on the experimental log correlation libraries in opencensus-java: https://github.com/census-instrumentation/opencensus-java/tree/master/contrib/log_correlation/stackdriver https://github.com/census-instrumentation/opencensus-java/tree/master/contrib/log_correlation/log4j2
sebright
added a commit
that referenced
this issue
Oct 9, 2018
The specification only covers aspects of log correlation that are likely to be shared by log correlation implementations for multiple languages and logging frameworks. It is based on the experimental log correlation libraries in opencensus-java: https://github.com/census-instrumentation/opencensus-java/tree/master/contrib/log_correlation/stackdriver https://github.com/census-instrumentation/opencensus-java/tree/master/contrib/log_correlation/log4j2
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
One approach is to add trace IDs, span IDs, or other fields from the current span to log entries that are created with existing logging frameworks. I am currently experimenting with this feature in opencensus-java (census-instrumentation/opencensus-java#1212), but I think we should design a feature that can be supported across multiple languages and include it in opencensus-specs.
The text was updated successfully, but these errors were encountered: