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

missing parent context #12

Open
Boklazhenko opened this issue Nov 24, 2022 · 2 comments
Open

missing parent context #12

Boklazhenko opened this issue Nov 24, 2022 · 2 comments
Labels
question Further information is requested

Comments

@Boklazhenko
Copy link

Hi, I see 2 spans
first (connect) looks good. he is in his place in the tree
but second attached to the trace but is on the same level with the root
could you suggest what could be the issue? thank you

Снимок экрана 2022-11-24 в 21 52 14

@costela costela added the question Further information is requested label Nov 24, 2022
@obitech
Copy link
Member

obitech commented Nov 29, 2022

I have difficulties reproducing this 🤔
Which otel version are you using? At which point do you call the prepare SELECT statement with regards to the other spans?

@Boklazhenko
Copy link
Author

go.opentelemetry.io/otel v1.11.1
go.opentelemetry.io/otel/trace v1.11.1
github.com/exaring/otelpgx v0.3.1

In code it is only one row
_, _ = pool.Query(spanCtx, "SELECT now()")

how I understand it produces two spans ( screenshot )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants