-
Notifications
You must be signed in to change notification settings - Fork 27
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 Logback integration #166
Comments
@n0tl3ss could you take a look? |
Hi @CraftyFella. Did you manage to make exporting metrics work? Right now there isn't support for opentelemetry logging yet, but you might try to do it yourself. About metrics, I need to test them, but because we are using the autoconfigure SDK I would expect that metrics work out of the box because Micrometer is supported. Here are libraries that Opentelemetry supports: |
Thanks for the confirmation... I nearly have something working now using the appender you pointed me to. It's coming back with a 404 from New Relic now.. so i'll try and work that out.. annoyingly it's using okhttp3 which doesn't respect the proxy java settings so its hard to see what it's actually sending. |
@n0tl3ss where in the tracing and metric exporters is it actually making the http requests.. as Id like to compare the logging exporter to the working tracing exporter so I can play spot the difference. |
Managed to get it all working.. traces, logs and metrics now being sent to New Relic.. thanks for your help.. I can close this issue now. I've also updated the repo above. |
@CraftyFella if there is something we can improve in the documentation let us know, otherwise PRs are also welcome |
After speaking with the team, we really would like to avoid having to write any code to make logging work, so I'm re-opening the issue so that it can be closed when the support is there for logging. |
@CraftyFella can you post the code you had to use to make it work |
@graemerocher Sure.. here is how we got it to work https://github.com/CraftyFella/micronaut-opentelemetry/blob/main/src/main/java/com/example/opentelemetry/WireUp.java That code has been made into a library by the company I work for currently.. It only works for logback though. |
I got this working with eventually with But I wasn't seeing otel stuff in logs because the span was invalid. This is happening on HttpClient calls that return a connect error (was trying to force an error to happen)
|
I opened a PR for doc updates open-telemetry/opentelemetry-java-instrumentation#8638 |
Logs missing from traces in open telemetry
Hi there,
I'm getting somewhere with open telemetry and micronaut, while I’m seeing the traces and spans propagate to our open telemetry endpoint, we are not seeing the logs propagate. Our endpoint, in this case, is New Relic.
I have an example app which reproduces the issue here:
https://github.com/CraftyFella/micronaut-opentelemetry
Questions I have on this issue:
Should logs be published with the open telemetry otlp option in micronaut?
Is there anything I'm doing wrong in the above repo?
What's the best way to debug the open telemetry code so I can help myself?
The text was updated successfully, but these errors were encountered: