-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
ref(tracing): Remove transaction name and user_id from DSC #5363
Conversation
temporary fix to no longer propagate potential PII
packages/integration-tests/suites/tracing/envelope-header-no-pii/test.ts
Outdated
Show resolved
Hide resolved
size-limit report 📦
|
packages/integration-tests/suites/tracing/envelope-header-no-pii/test.ts
Outdated
Show resolved
Hide resolved
@@ -79,8 +79,7 @@ test('Should populate and propagate sentry baggage if sentry-trace header does n | |||
test_data: { | |||
host: 'somewhere.not.sentry', | |||
baggage: expect.stringContaining( | |||
'sentry-environment=prod,sentry-release=1.0,sentry-transaction=GET%20%2Ftest%2Fexpress,' + | |||
'sentry-public_key=public,sentry-trace_id=', | |||
'sentry-environment=prod,sentry-release=1.0,sentry-public_key=public,sentry-trace_id=', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tiny tiny nit: If we're commenting stuff out in the other tests rather than modifying said stuff, I'd leave the old value here, commented out (in addition to the new value, of course).
(Same in the other spots where this applies.)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done in 5249b77
// Skipping this test because right now we're not including user_id at all | ||
test.skip('Includes user_id in baggage if sendDefaultPii is set to true', async () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since, as discussed in the meeting earlier, we're not going to be using sendDefaultPII
to control this (now or ever), we should pull it from any tests it's in.
We can leave this test, maybe, since something will eventually control that, but if so I'd probably do something like
// Skipping this test because right now we're not including user_id at all | |
test.skip('Includes user_id in baggage if sendDefaultPii is set to true', async () => { | |
// TODO: Skipping this test because right now we're rethinking the mechanism for including such data | |
test.skip('Includes user_id in baggage if <optionTBA> is set to true', async () => { |
and add a similar TODO to the companion file which sets up the test.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done c8aac6e
packages/tracing/src/transaction.ts
Outdated
transaction: this.name, | ||
...(hub.shouldSendDefaultPii() && { user_id }), | ||
// transaction: this.name, | ||
// ...(hub.shouldSendDefaultPii() && { user_id }), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See above re: sendDefaultPII
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done in 4415ab8
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good!
This patch temporarily removes the
user_id
andtransaction
(name) fields from the dynamic sampling context, meaning they will no longer propagated with outgoing requests via the baggage Http header or sent to sentry via thetrace
envelope header.We're taking this temporary measure to ensure that for the moment PII is not sent to third parties. Developer spec is update in getsentry/develop#631.