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

run examples/httpPlusdb, but did not grab sql statement #521

Closed
gophernancy opened this issue Nov 21, 2023 · 3 comments
Closed

run examples/httpPlusdb, but did not grab sql statement #521

gophernancy opened this issue Nov 21, 2023 · 3 comments
Labels
bug Something isn't working

Comments

@gophernancy
Copy link

gophernancy commented Nov 21, 2023

Describe the bug

A clear and concise description of what the bug is.

Environment

To Reproduce

Steps to reproduce the behavior:

  1. run jaeger v1.35.0
  2. run opentelemetry-collector v0.42
  3. run opentelemetry-go-instrumentation-main main
  4. run examples/httpPlusdb

Expected behavior

From examples/httpPlusdb/http_Db_traces.jpg, it will grab sql statement. But I did not get sql statement. Can you help me?

Additional context

image
@gophernancy gophernancy added the bug Something isn't working label Nov 21, 2023
@RonFed
Copy link
Contributor

RonFed commented Nov 22, 2023

Can you please double check that you have OTEL_GO_AUTO_INCLUDE_DB_STATEMENT=true in the docker compose file?
If it is set correctly and you still can't see the query, please send the logs of the go-auto-instrumentation image.

@eugeneRover
Copy link

@RonFed thanks for the clue. I had to dive into code so as to find it. This collector seems to be scarcely documented

@MrAlias
Copy link
Contributor

MrAlias commented Nov 21, 2024

It looks like #521 (comment) resolves this. Closing.

@MrAlias MrAlias closed this as not planned Won't fix, can't repro, duplicate, stale Nov 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants