-
Notifications
You must be signed in to change notification settings - Fork 786
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
Add OTLP LogExporter example #2481
Add OTLP LogExporter example #2481
Conversation
* launch the OpenTelemetry Collector with an OTLP receiver, by running: | ||
* | ||
* - On Unix based systems use: | ||
* docker run --rm -it -p 4317:4317 -v $(pwd):/cfg otel/opentelemetry-collector:0.33.0 --config=/cfg/otlp-collector-example/config.yaml |
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.
nit: Latest version is 0.36.0
Another thought is if we don't want to keep updating this we could use :latest
... but usually explicit tag versions are ideal.
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.
Want to do that when we pick new proto files, as I wasn't sure if they are all compatible with each other. (I hope they are, just did not have time to validate it, so another PR for that)
Codecov Report
@@ Coverage Diff @@
## main #2481 +/- ##
==========================================
- Coverage 79.84% 79.80% -0.04%
==========================================
Files 254 254
Lines 8393 8393
==========================================
- Hits 6701 6698 -3
- Misses 1692 1695 +3
|
Hi I am looking at this example and it seems to use a local collector but I do not see where the URI is being configured? Is the default just localhost:4317 as per the docker instructions? So for my logging configuration I am using. I don't think I need to explicitly specify GRPC (but that is the only protocol Elastics supports for now) neither the simple exporter? Sadly I do not see anything show up in Elastic streams and by the looks of #2482 there should be some basic data coming through Using OpenTelemetry.Exporter.OpenTelemetryProtocol.Logs 1.0.0-rc9.2 (lowest to match) Unless I need to bump up to Otel 1.3.0 and logs-rc9.3?
|
@ppumkin Please open a new issue for this. Thanks. |
Thanks Cijo I followed the links to create a discussion. Just in case anybody wants to follow... |
just a basic example to get up and running with OTLP Logs.