-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
feat(node): Export tracing from @sentry/node
#7503
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
Conversation
}); | ||
|
||
const connection = mysql.createConnection({ | ||
user: 'root', |
Check failure
Code scanning / CodeQL
Hard-coded credentials
|
||
const connection = mysql.createConnection({ | ||
user: 'root', | ||
password: 'docker', |
Check failure
Code scanning / CodeQL
Hard-coded credentials
This comment was marked as outdated.
This comment was marked as outdated.
@timfish maybe we just call |
Yep, true. I think it's < 10KB. |
…-javascript into feat/node/tracing
…-javascript into feat/node/tracing
packages/node-integration-tests/suites/express/tracing/server.ts
Outdated
Show resolved
Hide resolved
There's an intermittent test failure locally for: I think this could be related to the fact that we now always call |
Maybe we just need to call |
I think the issue is that we try and replicate node.js default behaviour of exiting when no listeners are attached apart from Sentry's own listeners. The tracing error handler would have always broken this behaviour (so this is an existing bug) but now we add the tracing listener by default this test has started failing. The tests are passing in CI so fix the listener exit bug in another PR? |
Ahhh gotcha, yeah we need to fix then.
Sounds fine to me. |
The vast majority of the additions in this PR are where
packages/node-integration-tests/suites/tracing/*
has been copied topackages/node-integration-tests/suites/tracing-new/*
. This is a complete copy of the tests but using the new API. At v8 we can drop the old tests that use@sentry/tracing
.This PR:
@sentry-internal/tracing
as a dependency of@sentry/node
@sentry/node
, exports all node tracing integrations under the existingIntegrations
exportaddTracingExtensions
from the node clientautoDiscoverNodePerformanceMonitoringIntegrations
which copies the logic from_autoloadDatabaseIntegrations
but returns the integrations. It also includes some extra integrations that were not included in auto detection previously. Part of the code (lazyLoadedNodePerformanceMonitoringIntegrations
) has to stay in@sentry-internal/tracing
so the integrations can be lazily required.