Skip to content

ref(serverless): Add transaction source - #5394

Merged
AbhiPrasad merged 2 commits into
masterfrom
abhi-serverless-transaction-source
Jul 8, 2022
Merged

ref(serverless): Add transaction source#5394
AbhiPrasad merged 2 commits into
masterfrom
abhi-serverless-transaction-source

Conversation

@AbhiPrasad

@AbhiPrasadAbhiPrasad commented Jul 8, 2022

Copy link
Copy Markdown
Contributor

ref: #5345

Decided to go with component for the serverless functions as they are function names as transaction name.

@AbhiPrasadAbhiPrasad added this to the Dynamic Sampling Context milestone Jul 8, 2022
@AbhiPrasadAbhiPrasad self-assigned this Jul 8, 2022
@AbhiPrasadAbhiPrasad mentioned this pull request Jul 8, 2022
15 tasks
@github-actions

Copy link
Copy Markdown
Contributor

size-limit report 📦

PathSize
@sentry/browser - ES5 CDN Bundle (gzipped + minified)19.34 KB (0%)
@sentry/browser - ES5 CDN Bundle (minified)59.86 KB (0%)
@sentry/browser - ES6 CDN Bundle (gzipped + minified)17.94 KB (0%)
@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.95 KB (+0.06% 🔺)
@sentry/browser + @sentry/tracing - ES5 CDN Bundle (gzipped + minified)25.72 KB (+0.09% 🔺)
@sentry/browser + @sentry/tracing - ES6 CDN Bundle (gzipped + minified)24 KB (+0.08% 🔺)

op: 'gcp.function.http',
...traceparentData,
metadata: { baggage },
metadata: { baggage, source: 'url' },

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Perhaps dumb question, but is parameterization even a thing in this context?

I'm not super familiar with GCP, but it seems from this and this and this like data can only be passed either in the query string or in the request body.

If that's true, then I think we can switch this to 'route', because it then isn't high cardinality. (That might not be strictly true, because the region part of the URL might vary, but we can just substitute a parameter there if we want.)

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.

I mostly just defaulted to url here to stay on the safe side - but I agree with your reasoning, will change to route.

@AbhiPrasad
AbhiPrasadforce-pushed the abhi-serverless-transaction-source branch from cda2aae to 3590cc2CompareJuly 8, 2022 15:34

@lobsterkatielobsterkatie left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM!

@AbhiPrasad
AbhiPrasad merged commit aeac69d into masterJul 8, 2022
@AbhiPrasad
AbhiPrasad deleted the abhi-serverless-transaction-source branch July 8, 2022 18:39
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.

2 participants

@AbhiPrasad@lobsterkatie