-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Conversation
52cc527
to
2c35d91
Compare
There was a problem hiding this 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' }, |
There was a problem hiding this comment.
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
const initSpan = navigationTxn.spans?.find(span => span.op === 'ui.angular.init'); | ||
|
||
expect(initSpan).toBeDefined(); |
There was a problem hiding this comment.
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() |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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
2c35d91
to
3dc88a6
Compare
3dc88a6
to
1cd1a52
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great work!
ref #10898
ref #10353