-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
New Blog Post: Collecting OpenTelemetry-compliant Java logs from files #5600
base: main
Are you sure you want to change the base?
New Blog Post: Collecting OpenTelemetry-compliant Java logs from files #5600
Conversation
content/en/blog/2024/collecting-file-based-java-logs-with-opentelemetry.md
Outdated
Show resolved
Hide resolved
content/en/blog/2024/collecting-file-based-java-logs-with-opentelemetry/index.md
Outdated
Show resolved
Hide resolved
@cyrille-leclerc https://github.com/open-telemetry/opentelemetry-java-instrumentation/releases/tag/v2.10.0 was just released - I'll update the executable example in grafana/docker-otel-lgtm#145 now |
content/en/blog/2024/collecting-file-based-java-logs-with-opentelemetry/index.md
Outdated
Show resolved
Hide resolved
@cyrille-leclerc can you raise an issue for this PR following our guidelines? Thanks |
Thanks @svrnm. Please find the blog post issue: |
content/en/blog/2024/collecting-file-based-java-logs-with-opentelemetry/index.md
Outdated
Show resolved
Hide resolved
content/en/blog/2024/collecting-file-based-java-logs-with-opentelemetry/index.md
Outdated
Show resolved
Hide resolved
content/en/blog/2024/collecting-file-based-java-logs-with-opentelemetry/index.md
Outdated
Show resolved
Hide resolved
content/en/blog/2024/collecting-file-based-java-logs-with-opentelemetry/index.md
Outdated
Show resolved
Hide resolved
content/en/blog/2024/collecting-file-based-java-logs-with-opentelemetry/index.md
Outdated
Show resolved
Hide resolved
|
||
![OTLP/JSON Architecture](otlpjson-architecture.png) | ||
|
||
## Configure Java Application to Output OTLP/JSON Logs |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the sample application you are using, is this available somewhere? If so, can you point to it? It's always good if people can reproduce your tutorial 1:1 without the need for them to find an application first
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@zeitlinger do we have a simplified demo or we use https://github.com/cyrille-leclerc/my-shopping-cart/? Note that I reverted my-shopping-cart to the otlp
exporter so I would have to spend a few cycles to setup a demo.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, the demo app is at https://github.com/grafana/docker-otel-lgtm/tree/main/examples/java/json-logging-otlp - which is already mentioned twice
![OpenTelemetry Collector OTLP/JSON pipeline](otel-collector-otlpjson-pipeline.png) | ||
|
||
Source: [https://www.otelbin.io/s/69739d790cf279c203fc8efc86ad1a876a2fc01a](https://www.otelbin.io/s/69739d790cf279c203fc8efc86ad1a876a2fc01a) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like that you provide the link to the otelbin source of that image, but let's figure out a way to visualize this better.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
![OpenTelemetry Collector OTLP/JSON pipeline](otel-collector-otlpjson-pipeline.png) | |
Source: [https://www.otelbin.io/s/69739d790cf279c203fc8efc86ad1a876a2fc01a](https://www.otelbin.io/s/69739d790cf279c203fc8efc86ad1a876a2fc01a) | |
{{< figure class="figure" src="otel-collector-otlpjson-pipeline.png" attr="View OTel Collector pipeline with OTelBin" attrlink="https://www.otelbin.io/s/69739d790cf279c203fc8efc86ad1a876a2fc01a" >}} |
What I meant is to have something that makes it clearer that the Source:
(or View ...
) belongs to the image, since the spacing is not right, similar to what bootstrap provides for figures. We have a shortcode for that via docsy, it's not exactly what I want, but we can take a look into that separately, cc @chalin
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Has this been addressed to your satisfaction @svrnm? See, https://deploy-preview-5600--opentelemetry.netlify.app/blog/2024/collecting-file-based-java-logs-with-opentelemetry/#configure-the-opentelemetry-collector-to-ingest-the-otlpjson-logs.
content/en/blog/2024/collecting-file-based-java-logs-with-opentelemetry/index.md
Outdated
Show resolved
Hide resolved
content/en/blog/2024/collecting-file-based-java-logs-with-opentelemetry/index.md
Outdated
Show resolved
Hide resolved
content/en/blog/2024/collecting-file-based-java-logs-with-opentelemetry/index.md
Outdated
Show resolved
Hide resolved
content/en/blog/2024/collecting-file-based-java-logs-with-opentelemetry/index.md
Outdated
Show resolved
Hide resolved
content/en/blog/2024/collecting-file-based-java-logs-with-opentelemetry/index.md
Outdated
Show resolved
Hide resolved
content/en/blog/2024/collecting-file-based-java-logs-with-opentelemetry/index.md
Outdated
Show resolved
Hide resolved
content/en/blog/2024/collecting-file-based-java-logs-with-opentelemetry/index.md
Outdated
Show resolved
Hide resolved
content/en/blog/2024/collecting-file-based-java-logs-with-opentelemetry/index.md
Outdated
Show resolved
Hide resolved
|
||
![OTLP/JSON Architecture](otlpjson-architecture.png) | ||
|
||
## Configure Java Application to Output OTLP/JSON Logs |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@zeitlinger do we have a simplified demo or we use https://github.com/cyrille-leclerc/my-shopping-cart/? Note that I reverted my-shopping-cart to the otlp
exporter so I would have to spend a few cycles to setup a demo.
content/en/blog/2024/collecting-file-based-java-logs-with-opentelemetry/index.md
Outdated
Show resolved
Hide resolved
content/en/blog/2024/collecting-file-based-java-logs-with-opentelemetry/index.md
Outdated
Show resolved
Hide resolved
content/en/blog/2024/collecting-file-based-java-logs-with-opentelemetry/index.md
Outdated
Show resolved
Hide resolved
content/en/blog/2024/collecting-file-based-java-logs-with-opentelemetry/index.md
Outdated
Show resolved
Hide resolved
content/en/blog/2024/collecting-file-based-java-logs-with-opentelemetry/index.md
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a few copyedit suggestions. Thanks!
content/en/blog/2024/collecting-file-based-java-logs-with-opentelemetry/index.md
Outdated
Show resolved
Hide resolved
content/en/blog/2024/collecting-file-based-java-logs-with-opentelemetry/index.md
Outdated
Show resolved
Hide resolved
content/en/blog/2024/collecting-file-based-java-logs-with-opentelemetry/index.md
Outdated
Show resolved
Hide resolved
content/en/blog/2024/collecting-file-based-java-logs-with-opentelemetry/index.md
Outdated
Show resolved
Hide resolved
content/en/blog/2024/collecting-file-based-java-logs-with-opentelemetry/index.md
Outdated
Show resolved
Hide resolved
content/en/blog/2024/collecting-file-based-java-logs-with-opentelemetry/index.md
Outdated
Show resolved
Hide resolved
content/en/blog/2024/collecting-file-based-java-logs-with-opentelemetry/index.md
Outdated
Show resolved
Hide resolved
content/en/blog/2024/collecting-file-based-java-logs-with-opentelemetry/index.md
Outdated
Show resolved
Hide resolved
content/en/blog/2024/collecting-file-based-java-logs-with-opentelemetry/index.md
Outdated
Show resolved
Hide resolved
72614b9
to
e764e3b
Compare
content/en/blog/2024/collecting-file-based-java-logs-with-opentelemetry/index.md
Outdated
Show resolved
Hide resolved
content/en/blog/2024/collecting-file-based-java-logs-with-opentelemetry/index.md
Outdated
Show resolved
Hide resolved
content/en/blog/2024/collecting-file-based-java-logs-with-opentelemetry/index.md
Outdated
Show resolved
Hide resolved
content/en/blog/2024/collecting-file-based-java-logs-with-opentelemetry/index.md
Outdated
Show resolved
Hide resolved
content/en/blog/2024/collecting-file-based-java-logs-with-opentelemetry/index.md
Outdated
Show resolved
Hide resolved
traces and metrics. | ||
Any feedback or questions? Reach out on | ||
[GitHub](https://github.com/open-telemetry/opentelemetry-specification/pull/4183). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is this linking to a spec PR?
Is this PR really the best place for folks to comment?
If so, that's ok, but then the link text should explain more clearly what the link target is.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We have updated referring to the PR of the OTEP and to the Slack channel
/fix:refcache |
You triggered fix:refcache action run at https://github.com/open-telemetry/opentelemetry.io/actions/runs/11931927870 |
IMPORTANT: (RE-)RUN
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, subject to @chalin's comments.
content/en/blog/2024/collecting-file-based-java-logs-with-opentelemetry/index.md
Outdated
Show resolved
Hide resolved
content/en/blog/2024/collecting-file-based-java-logs-with-opentelemetry/index.md
Outdated
Show resolved
Hide resolved
bd35fc6
to
0f04576
Compare
Co-authored-by: Patrice Chalin <chalin@users.noreply.github.com>
Co-authored-by: Tiffany Hrabusa <30397949+tiffany76@users.noreply.github.com>
Co-authored-by: Patrice Chalin <chalin@users.noreply.github.com>
…telemetry/index.md Co-authored-by: Gregor Zeitlinger <gregor.zeitlinger@grafana.com>
df28a62
to
fb9e309
Compare
Co-authored-by: Patrice Chalin <chalin@users.noreply.github.com>
content/en/blog/2024/collecting-otel-compliant-java-logs-from-files/index.md
Outdated
Show resolved
Hide resolved
content/en/blog/2024/collecting-otel-compliant-java-logs-from-files/index.md
Outdated
Show resolved
Hide resolved
content/en/blog/2024/collecting-otel-compliant-java-logs-from-files/index.md
Outdated
Show resolved
Hide resolved
content/en/blog/2024/collecting-otel-compliant-java-logs-from-files/index.md
Outdated
Show resolved
Hide resolved
…files/index.md Co-authored-by: Cyrille Le Clerc <cyrille.leclerc@grafana.com>
…files/index.md Co-authored-by: Cyrille Le Clerc <cyrille.leclerc@grafana.com>
…files/index.md Co-authored-by: Cyrille Le Clerc <cyrille.leclerc@grafana.com>
…files/index.md Co-authored-by: Cyrille Le Clerc <cyrille.leclerc@grafana.com>
@svrnm FYI @zeitlinger and I think we are good to go. We reviewed and integrated all the feedback. Thanks again for your thorough review |
This post presents how to use the new
experimental-otlp/stdout
export format introduced by OpenTelemetry Java Instrumentation (open-telemetry/opentelemetry-java#6675) to export application logs to files with full OpenTelemetry contextualization and ingest them with the OTel Collector File Log receiver and OTLP/JSON connector.In this post, we explain how to configure the OTel Java instrumentation agent and the OTel Collector, including when deploying on K8s, to implement the end to end file based logs ingestion pipeline.
Blog Post Issue: #5606
SIG: java and specifications
Sponsor:
Preview: https://deploy-preview-5600--opentelemetry.netlify.app/blog/2024/collecting-otel-compliant-java-logs-from-files/