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(angular): Add transaction source for Angular Router #5382

Merged
merged 2 commits into from
Jul 8, 2022

Conversation

Lms24
Copy link
Member

@Lms24 Lms24 commented Jul 7, 2022

This PR adds the transaction name source annotation to the Angular SDK. Since the SDK currently does not parameterize URLs, we only assign 'url' as the transaction name source. We're revisiting parameterization in Angular in a follow up PR.

Additionally, the PR adds a two tests to test this change (might be more relevant once we add parameterization). Admittedly, there are better ways to test Angular Services (with the Angular TestBed) but I got a lot of error messages while trying to get this to work. For the sake of time, the tests for now essentially just treat TraceService as a normal class, which is enough to test the transaction source.

ref: #5345

@Lms24 Lms24 mentioned this pull request Jul 7, 2022
15 tasks
@Lms24 Lms24 marked this pull request as ready for review July 7, 2022 17:04
@Lms24 Lms24 requested review from AbhiPrasad and lforst July 7, 2022 17:04
@Lms24 Lms24 self-assigned this Jul 7, 2022
@Lms24 Lms24 added this to the Dynamic Sampling Context milestone Jul 7, 2022
Copy link
Member

@AbhiPrasad AbhiPrasad left a comment

Choose a reason for hiding this comment

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

🚢 🇮🇹

@Lms24 Lms24 changed the title ref(angular): Add transaction source to TracesService and instrumenAngularRouting ref(angular): Add transaction source to for Angular Router Jul 8, 2022
@Lms24 Lms24 changed the title ref(angular): Add transaction source to for Angular Router ref(angular): Add transaction source for Angular Router Jul 8, 2022
@Lms24 Lms24 merged commit 4984870 into master Jul 8, 2022
@Lms24 Lms24 deleted the lms-transaction-source-angular branch July 8, 2022 08:18
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