You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ref(tracing): Include transaction in DSC if transaction source is not an unparameterized URL (#5392)
This patch re-introduces the `transaction` field in the Dynamic Sampling Context (DSC). However, its presence is now determined by the [transaction source](https://develop.sentry.dev/sdk/event-payloads/transaction/#transaction-annotations) which was introduced in #5367.
As of this we we add the `transaction` field back, if the source indicates that the transaction name is not an unparameterized URL (meaning, the source is set and it is not `url`).
Additionally, the PR (once again) adjusts our unit and integration tests to reflect this change. Repurposed some DSC<=>`sendDefaultPii` tests that we previously skipped to now cover the transaction<=>transaction source dependence. Did some cleanup of commented out old code and explanations that no longer apply.
Remove he `'unknown'` field from the `TransactionSource` type because it is only used by Relay and SDKs shouldn't set it.
Copy file name to clipboardExpand all lines: packages/node-integration-tests/suites/express/sentry-trace/baggage-other-vendors-with-sentry-entries/test.ts
-3
Original file line number
Diff line number
Diff line change
@@ -30,9 +30,6 @@ test('should ignore sentry-values in `baggage` header of a third party vendor an
30
30
test_data: {
31
31
host: 'somewhere.not.sentry',
32
32
baggage: expect.stringContaining(
33
-
// Commented out as long as transaction and user_id are not part of DSC
0 commit comments