-
Notifications
You must be signed in to change notification settings - Fork 117
fix(span): Make _performance_issues_spans a top-level field #5870
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
base: master
Are you sure you want to change the base?
Changes from 5 commits
1504eda
2c662d0
0903f1d
03ee6f7
9e40ff6
c256f63
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -50,6 +50,19 @@ pub struct SpanV2 { | |||||||||||||||||||||
| #[metastructure(pii = "true", trim = true)] | ||||||||||||||||||||||
| pub attributes: Annotated<Attributes>, | ||||||||||||||||||||||
|
|
||||||||||||||||||||||
| /// Temporary flag that controls where performance issues are detected. | ||||||||||||||||||||||
| /// | ||||||||||||||||||||||
| /// When the flag is set to true, performance issues will be detected on this span provided it | ||||||||||||||||||||||
| /// is a root (segment) instead of the transaction event. | ||||||||||||||||||||||
| /// | ||||||||||||||||||||||
| /// Only set on root spans extracted from transactions. | ||||||||||||||||||||||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Found the original phrasing ambiguous, but maybe I just lack context |
||||||||||||||||||||||
| #[metastructure( | ||||||||||||||||||||||
| field = "_performance_issues_spans", | ||||||||||||||||||||||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Should a top level field be underscored? |
||||||||||||||||||||||
| skip_serialization = "empty", | ||||||||||||||||||||||
| trim = false | ||||||||||||||||||||||
| )] | ||||||||||||||||||||||
| pub performance_issues_spans: Annotated<bool>, | ||||||||||||||||||||||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why does this need to be top level and not an attribute (what it already is)? Can we instead change the consumer code? I feel like this may set a bad precedent where we start adding things top level.
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It can be. Then we need to define it in conventions and adjust the consuming code accordingly.
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It's using an That being said, |
||||||||||||||||||||||
|
|
||||||||||||||||||||||
| /// Additional arbitrary fields for forwards compatibility. | ||||||||||||||||||||||
| #[metastructure(additional_properties, pii = "maybe")] | ||||||||||||||||||||||
| pub other: Object<Value>, | ||||||||||||||||||||||
|
|
||||||||||||||||||||||
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.