Skip to content
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

Open Telemetry extension Traces and Logs are not linked with the span #43626

Closed
lordofthejars opened this issue Oct 1, 2024 · 9 comments
Closed
Labels
area/smallrye area/tracing kind/bug Something isn't working triage/out-of-date This issue/PR is no longer valid or relevant

Comments

@lordofthejars
Copy link
Contributor

Describe the bug

I found one issue that may be because I didn't use it correctly or because there is a bug it doesn't work from my understanding; I created the example in the documentation, and using the lgtm dev service, I started everything.

Then, Prometheus metrics, traces, and logs are there, so data is stored, but when I go to the trace, select a trace (by span ID), click the logs icon, and execute the query to Loki with the service name and span ID, it finds no logs.

So if I query logs by only the service name, all logs are there but it seems like the relationship with the span is not stored.

As I said I might have done something wrong, or I might be missing something.

@loicmathieu

Expected behavior

When I click log button from a specific span, it shows the logthe

Actual behavior

Not showing the log

How to Reproduce?

No response

Output of uname -a or ver

No response

Output of java -version

No response

Quarkus version or git rev

999-SNAPSHOT (9927819)

Build tool (ie. output of mvnw --version or gradlew --version)

No response

Additional information

It comes from this PR #38239

@lordofthejars lordofthejars added the kind/bug Something isn't working label Oct 1, 2024
@quarkus-bot
Copy link

quarkus-bot bot commented Oct 1, 2024

/cc @brunobat (opentelemetry,tracing), @radcortez (opentelemetry,tracing)

@geoand
Copy link
Contributor

geoand commented Oct 2, 2024

@lordofthejars can you please share your sample application?

@lordofthejars
Copy link
Contributor Author

Sure: https://github.com/lordofthejars/quarkus-loki

It is the same of the documentation

@geoand
Copy link
Contributor

geoand commented Oct 2, 2024

🙏🏽

@geoand
Copy link
Contributor

geoand commented Oct 2, 2024

I tried this and it worked for me (after making sure that all the services were up and running)

@brunobat
Copy link
Contributor

brunobat commented Oct 2, 2024

This might have been a bug from the previous Grafana image. @lordofthejars can you please retest with current Quarkus main?

@lordofthejars
Copy link
Contributor Author

Going to update the repo and try again

@lordofthejars
Copy link
Contributor Author

Yes it works. Thanks

@geoand
Copy link
Contributor

geoand commented Oct 2, 2024

Thanks for checking

@geoand geoand added the triage/out-of-date This issue/PR is no longer valid or relevant label Oct 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/smallrye area/tracing kind/bug Something isn't working triage/out-of-date This issue/PR is no longer valid or relevant
Projects
Status: Done
Development

No branches or pull requests

3 participants