-
Notifications
You must be signed in to change notification settings - Fork 804
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
Automatic tracing of express #666
Comments
What do you think would be gained beyond the |
You can get the route attribute. I have already done an express plugin internally for OpenTelemetry and I don't see a real advantage to have it in this repo (I'm not against to have it too)... I did it because some packages like I think the express plugin is more useful for customizing the span. |
dropping scope is a big deal so that sounds like a good win for us. can you work with @vmarchaud since you already made an internal version? |
@OlivierAlbertini I didn't had the issue with my OC plugin, that's weird. @dyladan That was a common request back when i worked at @keymetrics to allow customers to aggregate by the route (since it's common to have an id in urls). Also useful to pinpoint if you have a sync middleware (like auth with jwt) taking a lot of time.
I'm not sure to understand since it was dropping the scope it should fail to create child spans afterward, i don't see why it's a good win ^^ |
@vmarchaud let me rephrase. If the scope is being dropped, and creating a plugin can prevent it from being dropped, then that sounds like a good win. |
@dyladan Got it, indeed its important in that case. |
Currently we have Opencensus and OpenTelemetry in our environnement and we have the issue with OpenCensus "0.0.19" for sure and OpenTelemetry "0.1.1". It doesn't happens every time (it's really hard to reproduce) and I don't know how the body parser works but having a middleware after have fixed the issue. I flagged those spans differently in order to see if there is a pattern... @dyladan, yes I can work with @vmarchaud. I can make a draft PR and request a review (@vmarchaud ) but you can create a PR too since you made the issue and I can review it... As you want @vmarchaud, you decide ^^ |
…pen-telemetry#818) * fix hasOwnProperty check * Revert "fix hasOwnProperty check" This reverts commit 671021cb6e9732ef14ef50f69feabaa3d49d61a4. * fix(opentelemetry/instrumentation-redis) hasOwnProperty check fixes duplicate call check in my project this code was called a second time based on importing. However in the case it was called again the check would fail. By switching to hasOwnProperty it fixes this issue. * adding tests and changing stream check to not crash * fix(opentelemetry/instrumentation-redis) changing has stream check This reverts commit 5a04acc4b9ce47713c0fc5eec18cdd5ad52ab70d. * style: fix lint Co-authored-by: Jonathan Campos <jonathan@ridealto.com>
Is it applicable for Node or Browser or both
Node only
Do you expect this plugin to be commonly used
Weekly Downloads: 6M (https://www.npmjs.com/package/express)
What version of plugin are you interested in using
Versions: 4
Additional context
Opencensus-style instrumentation that i've implemented before: https://github.com/keymetrics/pm2-io-apm/blob/master/src/census/plugins/express.ts
Implementation of datadog: https://github.com/DataDog/dd-trace-js/tree/master/packages/datadog-plugin-express
The text was updated successfully, but these errors were encountered: