Skip to content

ref(v8/angular): Remove instrumentAngularRouting and fix tests #11021

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

Merged
merged 2 commits into from
Mar 12, 2024

Conversation

s1gr1d
Copy link
Member

@s1gr1d s1gr1d commented Mar 11, 2024

ref #10898
ref #10353

@s1gr1d s1gr1d requested review from Lms24 and mydea March 11, 2024 13:50
@s1gr1d s1gr1d self-assigned this Mar 11, 2024
@s1gr1d s1gr1d force-pushed the sig-refactor-browsertracing-angular branch from 52cc527 to 2c35d91 Compare March 11, 2024 14:48
Copy link
Member

@Lms24 Lms24 left a comment

Choose a reason for hiding this comment

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

Nice, just had two small suggestions but looks great!

expect.objectContaining({
name: '<ComponentTrackingComponent>',
op: 'ui.angular.ngOnInit',
attributes: { [SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]: 'auto.ui.angular.trace_class_decorator' },
Copy link
Member

Choose a reason for hiding this comment

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

should this be trace_method_decorator

Comment on lines 230 to 237
const initSpan = navigationTxn.spans?.find(span => span.op === 'ui.angular.init');

expect(initSpan).toBeDefined();
Copy link
Member

Choose a reason for hiding this comment

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

can we also check for the origin attribute here?

imports: [TraceModule, SampleComponent],
template: `<app-sample-component [trace]="'sample-component'"></app-sample-component>`,
})
@TraceClassDecorator()
Copy link
Member

Choose a reason for hiding this comment

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

random thought (no action required):

We should probably omit the "Decorator" part in both decorator names.@TraceClass and @TraceMethod makes more sense IMO.

Copy link
Member Author

Choose a reason for hiding this comment

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

True, the usage already implies that it is a decorator

@s1gr1d s1gr1d force-pushed the sig-refactor-browsertracing-angular branch from 2c35d91 to 3dc88a6 Compare March 11, 2024 17:08
@s1gr1d s1gr1d force-pushed the sig-refactor-browsertracing-angular branch from 3dc88a6 to 1cd1a52 Compare March 12, 2024 10:10
@s1gr1d s1gr1d marked this pull request as ready for review March 12, 2024 10:11
Copy link
Member

@Lms24 Lms24 left a comment

Choose a reason for hiding this comment

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

Great work!

@s1gr1d s1gr1d merged commit 2274b27 into develop Mar 12, 2024
@s1gr1d s1gr1d deleted the sig-refactor-browsertracing-angular branch March 12, 2024 10:25
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.

2 participants