Skip to content

Commit

Permalink
Add link to "Collecting OpenTelemetry-compliant Java logs from files"…
Browse files Browse the repository at this point in the history
… example (open-telemetry#5754)
  • Loading branch information
zeitlinger authored Feb 1, 2025
1 parent 2c5242b commit f27a499
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ This blog post shows how to set up this solution step by step.
{{% alert title="Note" color="info" %}}

Blog post instructions can easily get outdated. In case of issues, check this
[sample application deployed on Kubernetes](https://github.com/grafana/docker-otel-lgtm/tree/main/examples/java/json-logging-otlp),
[sample application deployed on Kubernetes](https://github.com/open-telemetry/opentelemetry-java-examples/blob/main/logging-k8s-stdout-otlp-json/README.md),
which is continuously updated and tested against the latest versions.

{{% /alert %}}
Expand Down Expand Up @@ -371,7 +371,7 @@ balance by providing highly contextualized logs that can be correlated with
traces and metrics.
If any of the steps are unclear or you encounter issues, check this
[sample application deployed on Kubernetes](https://github.com/grafana/docker-otel-lgtm/tree/main/examples/java/json-logging-otlp),
[sample application deployed on Kubernetes](https://github.com/open-telemetry/opentelemetry-java-examples/blob/main/logging-k8s-stdout-otlp-json/README.md),
which is continuously updated and tested against the latest versions.
Any feedback or questions? Reach out on
Expand Down
7 changes: 7 additions & 0 deletions content/en/docs/languages/java/instrumentation.md
Original file line number Diff line number Diff line change
Expand Up @@ -236,3 +236,10 @@ document.
Log correlation with traces is available by installing a [shim](#shims) to
bridge OpenTelemetry context into the log framework. See "Bridge OpenTelemetry
context into Log4j", "Bridge OpenTelemetry context into Logback" entries.

{{% alert title="Note" color="info" %}}

An end-to-end example of log instrumentation using stdout is available in the
[Java examples repository](https://github.com/open-telemetry/opentelemetry-java-examples/blob/main/logging-k8s-stdout-otlp-json/README.md).

{{% /alert %}}
4 changes: 4 additions & 0 deletions static/refcache.json
Original file line number Diff line number Diff line change
Expand Up @@ -8959,6 +8959,10 @@
"StatusCode": 200,
"LastSeen": "2024-10-23T20:19:13.793874-05:00"
},
"https://github.com/open-telemetry/opentelemetry-java-examples/blob/main/logging-k8s-stdout-otlp-json/README.md": {
"StatusCode": 206,
"LastSeen": "2025-02-01T02:33:56.495897618Z"
},
"https://github.com/open-telemetry/opentelemetry-java-examples/tree/main/declarative-configuration": {
"StatusCode": 206,
"LastSeen": "2025-01-16T11:37:46.452153-05:00"
Expand Down

0 comments on commit f27a499

Please sign in to comment.