Skip to content
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(serverless): Add transaction source #5394

Merged
merged 2 commits into from
Jul 8, 2022

Conversation

AbhiPrasad
Copy link
Member

@AbhiPrasad AbhiPrasad commented Jul 8, 2022

ref: #5345

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

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

github-actions bot commented Jul 8, 2022

size-limit report 📦

Path Size
@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% 🔺)

@@ -87,7 +87,7 @@ function _wrapHttpFunction(fn: HttpFunction, wrapOptions: Partial<HttpFunctionWr
name: `${reqMethod} ${reqUrl}`,
op: 'gcp.function.http',
...traceparentData,
metadata: { baggage },
metadata: { baggage, source: 'url' },
Copy link
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
Member Author

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 AbhiPrasad force-pushed the abhi-serverless-transaction-source branch from cda2aae to 3590cc2 Compare July 8, 2022 15:34
Copy link
Member

@lobsterkatie lobsterkatie left a comment

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 master Jul 8, 2022
@AbhiPrasad AbhiPrasad deleted the abhi-serverless-transaction-source branch July 8, 2022 18:39
Sign up for free to 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.

None yet

2 participants