-
Notifications
You must be signed in to change notification settings - Fork 172
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
Postgres instrumentation creates a new span every time even when part of a request #227
Comments
Do you use CLS to keep the trace across spans into the same request? |
Yes, I do use CLS in all the instrumentations. |
I missed mentioning an important part of the setup, which is |
Thanks for inform this. Would you change something in the documentation to
avoid future confusions?
|
@iAmMrinal0: Are you only using |
I had to manually trace each component I wanted. |
I am using the zipkin express middleware with zipkin postgres and when I look in the zipkin dashboard, the middleware service shows up as a separate span and postgres as a separate span even though they are part of the same request. And this breaks any further traces for other services I have, like redis, axios. As seen in the image, all spans above
express_middleware
should have been a part of it and not separate on their own. If you could guide me as to what to change in the postgres instrumentation, that would be helpful too.How it shows up:
How I am expecting it(this is for a different request which doesn't hit postgres):
Edit: Adding a few changes I have made to postgres instrumentation as I use an older version of
pg
Changed the following few lines:
zipkin-js/packages/zipkin-instrumentation-postgres/src/zipkinClient.js
Line 73 in 00a288c
to:
The text was updated successfully, but these errors were encountered: