Skip to content

feat(node): Add connect instrumentation #11651

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

Merged
merged 2 commits into from
Apr 17, 2024
Merged

Conversation

onurtemizkan
Copy link
Collaborator

Resolves: #11405

Adds OTEL-powered auto instrumentation for connect middleware.

This instrumentation should be used together with the http instrumentation

As it's a middleware library, the scope of this instrumentation is limited. In summary:

  • Parameterised routes are not in the scope of this instrumentation, as they are not defined / modified by connect. They should be handled by the http instrumentation.
  • Inbound/outbound trace propagation is also out of scope as they are handled by the underlying http server.

@onurtemizkan onurtemizkan force-pushed the onur/node-connect-otel branch from 647ef2d to 212269b Compare April 17, 2024 11:19
Copy link
Contributor

github-actions bot commented Apr 17, 2024

size-limit report 📦

Path Size
@sentry/browser 21.67 KB (0%)
@sentry/browser (incl. Tracing) 31.46 KB (0%)
@sentry/browser (incl. Tracing, Replay) 66.79 KB (0%)
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags 60.19 KB (0%)
@sentry/browser (incl. Tracing, Replay with Canvas) 70.62 KB (0%)
@sentry/browser (incl. Tracing, Replay, Feedback) 80.5 KB (0%)
@sentry/browser (incl. Feedback) 35.25 KB (0%)
@sentry/browser (incl. Feedback, Feedback Modal) 35.25 KB (0%)
@sentry/browser (incl. Feedback, Feedback Modal, Feedback Screenshot) 37.28 KB (0%)
@sentry/browser (incl. sendFeedback) 26.46 KB (0%)
@sentry/react 24.35 KB (0%)
@sentry/react (incl. Tracing) 34.37 KB (0%)
@sentry/vue 25.2 KB (0%)
@sentry/vue (incl. Tracing) 33.18 KB (0%)
@sentry/svelte 21.79 KB (0%)
CDN Bundle 24.03 KB (0%)
CDN Bundle (incl. Tracing) 32.76 KB (0%)
CDN Bundle (incl. Tracing, Replay) 66.4 KB (0%)
CDN Bundle (incl. Tracing, Replay, Feedback) 82.6 KB (0%)
CDN Bundle - uncompressed 70.86 KB (0%)
CDN Bundle (incl. Tracing) - uncompressed 97.59 KB (0%)
CDN Bundle (incl. Tracing, Replay) - uncompressed 207.25 KB (0%)
@sentry/nextjs (client) 33.7 KB (0%)
@sentry/sveltekit (client) 31.96 KB (0%)
@sentry/node 155.86 KB (+1.56% 🔺)

@onurtemizkan onurtemizkan requested a review from lforst April 17, 2024 11:46
@onurtemizkan onurtemizkan marked this pull request as ready for review April 17, 2024 11:46
Copy link
Contributor

@lforst lforst left a comment

Choose a reason for hiding this comment

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

Thank you Onur! Looks great.

@@ -0,0 +1,10 @@
{
"compilerOptions": {
Copy link
Contributor

Choose a reason for hiding this comment

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

Since we are only typescript to run the app with ts-node and to check types we can probably configure this to not emit any files and then we can also get rid of the gitignore.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Updated 👍

@lforst lforst merged commit c71922b into develop Apr 17, 2024
@lforst lforst deleted the onur/node-connect-otel branch April 17, 2024 13:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[v8] Add connect instrumentation
2 participants