Skip to content

ref(tracing): Add transaction source to default router - #5386

Merged
AbhiPrasad merged 5 commits into
masterfrom
abhi-default-router-source
Jul 7, 2022
Merged

ref(tracing): Add transaction source to default router#5386
AbhiPrasad merged 5 commits into
masterfrom
abhi-default-router-source

Conversation

@AbhiPrasad

Copy link
Copy Markdown
Contributor

ref: #5345

@AbhiPrasad
AbhiPrasad requested review from a team, Lms24 and lforst and removed request for a teamJuly 7, 2022 16:28
@AbhiPrasadAbhiPrasad mentioned this pull request Jul 7, 2022
15 tasks
@AbhiPrasadAbhiPrasad self-assigned this Jul 7, 2022
@github-actions

github-actionsBot commented Jul 7, 2022

Copy link
Copy Markdown
Contributor

size-limit report 📦

PathSize
@sentry/browser - ES5 CDN Bundle (gzipped + minified)19.34 KB (+0.01% 🔺)
@sentry/browser - ES5 CDN Bundle (minified)59.86 KB (0%)
@sentry/browser - ES6 CDN Bundle (gzipped + minified)17.94 KB (+0.01% 🔺)
@sentry/browser - ES6 CDN Bundle (minified)52.78 KB (0%)
@sentry/browser - Webpack (gzipped + minified)19.71 KB (0%)
@sentry/browser - Webpack (minified)64.15 KB (0%)
@sentry/react - Webpack (gzipped + minified)19.73 KB (0%)
@sentry/nextjs Client - Webpack (gzipped + minified)43.93 KB (+0.05% 🔺)
@sentry/browser + @sentry/tracing - ES5 CDN Bundle (gzipped + minified)25.7 KB (+0.1% 🔺)
@sentry/browser + @sentry/tracing - ES6 CDN Bundle (gzipped + minified)23.98 KB (+0.12% 🔺)

@Lms24

Lms24 commented Jul 7, 2022

Copy link
Copy Markdown
Member

Do we have integration tests for the default router? If yes, we could try to add a test that the source really ends up in the event payload. (Optional, can also be done in a separate PR)

@AbhiPrasad

Copy link
Copy Markdown
ContributorAuthor

Yes! We can take a look with integration tests. Will add.

@AbhiPrasad
AbhiPrasadforce-pushed the abhi-default-router-source branch from f445976 to d265a85CompareJuly 7, 2022 17:33
Comment on lines +211 to +216
...(parentContextFromHeader && {
metadata: {
...context.metadata,
...parentContextFromHeader.metadata,
},
}),

Copy link
Copy Markdown
ContributorAuthor

Choose a reason for hiding this comment

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

Had to add this to make the integration tests pass. TODO on coming back to it

@AbhiPrasad
AbhiPrasad enabled auto-merge (squash) July 7, 2022 18:41
@AbhiPrasad
AbhiPrasad merged commit 537527e into masterJul 7, 2022
@AbhiPrasad
AbhiPrasad deleted the abhi-default-router-source branch July 7, 2022 18:42
Sign up for freeto 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.

3 participants

@AbhiPrasad@Lms24@lforst