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

feat: add global tracing for express + graphql, include trace and spa… #5120

Merged
merged 5 commits into from
Mar 15, 2024

Conversation

mcstover
Copy link
Collaborator

…n ids in winston logs

Couples with: https://github.com/kiva/flux/pull/607

@mcstover mcstover requested review from hobbsh and emuvente January 10, 2024 18:35
server/util/tracer.js Outdated Show resolved Hide resolved
// attributes are helpful if we want to inspect and omit requests such as health checks or timesync
// eslint-disable-next-line no-unused-vars
function ignoreTheseSpans(spanName, spanKind, attributes) {
return spanKind !== opentelemetry.SpanKind.SERVER;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are we sure SERVER spans should be excluded?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is right from there example for express so maybe... Ultimately, I had problems getting the filter function to work on broader excludes so I trimmed it back down to what they had in their examples.

Copy link
Contributor

@hobbsh hobbsh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good, thanks!

@mcstover mcstover merged commit a302b54 into main Mar 15, 2024
5 checks passed
@mcstover mcstover deleted the ui-tracer-express-winston-graphql branch March 15, 2024 18:15
@kiva-robot
Copy link
Collaborator

🎉 This PR is included in version 2.734.0-rc.1 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

@kiva-robot
Copy link
Collaborator

🎉 This PR is included in version 2.734.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants