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(tracing): Record transaction name changes #5723

Merged
merged 4 commits into from
Sep 12, 2022

Conversation

AbhiPrasad
Copy link
Member

Part of #5679

Dependent on #5714 merging

This PR makes transaction record name changes internally on the transaction class. This allows for this metadata to be added to outgoing transaction events.

@AbhiPrasad AbhiPrasad added this to the Dynamic Sampling milestone Sep 12, 2022
@AbhiPrasad AbhiPrasad mentioned this pull request Sep 12, 2022
10 tasks
Comment on lines +70 to 73
/** Setter for `name` property, which also sets `source` as custom */
public set name(newName: string) {
this._name = newName;
this.metadata.source = 'custom';
this.setName(newName);
}
Copy link
Member

Choose a reason for hiding this comment

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

Q: Is there a reason we're maintaining this setter and setName? Always seemed a bit redundant to me.

Copy link
Member Author

Choose a reason for hiding this comment

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

to be backwards compatible - we should maybe fix this for v8, will add a todo

@github-actions
Copy link
Contributor

github-actions bot commented Sep 12, 2022

size-limit report 📦

Path Size
@sentry/browser - ES5 CDN Bundle (gzipped + minified) 19.46 KB (+0.01% 🔺)
@sentry/browser - ES5 CDN Bundle (minified) 60.11 KB (0%)
@sentry/browser - ES6 CDN Bundle (gzipped + minified) 18.04 KB (+0.01% 🔺)
@sentry/browser - ES6 CDN Bundle (minified) 53.03 KB (0%)
@sentry/browser - Webpack (gzipped + minified) 19.83 KB (0%)
@sentry/browser - Webpack (minified) 64.42 KB (0%)
@sentry/react - Webpack (gzipped + minified) 19.85 KB (0%)
@sentry/nextjs Client - Webpack (gzipped + minified) 44.88 KB (+0.04% 🔺)
@sentry/browser + @sentry/tracing - ES5 CDN Bundle (gzipped + minified) 26.01 KB (+0.07% 🔺)
@sentry/browser + @sentry/tracing - ES6 CDN Bundle (gzipped + minified) 24.4 KB (+0.09% 🔺)

Base automatically changed from abhi-transaction-name-change-interface to master September 12, 2022 13:10
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