-
Notifications
You must be signed in to change notification settings - Fork 108
feat(eap): Trim spans with new trimming processor #5616
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 all commits
a2dfde0
218c21b
13df0cf
e744635
a7771b9
23046db
223cc10
db0dce6
7ce149d
a972a12
8dd2dc5
eec350c
9ef1097
19679e1
8548aab
7488388
7f4aa50
36b2ba3
7f51600
b7f3288
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 |
|---|---|---|
|
|
@@ -359,6 +359,12 @@ impl Processor for TrimmingProcessor { | |
| return Ok(()); | ||
| } | ||
|
|
||
| // This counts the lengths of all attribute keys regardless of whether | ||
|
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. Object trimming drops last remarked key via split_offMedium Severity The Additional Locations (1) |
||
| // the attribute itself is valid or invalid. Strictly speaking, this is | ||
| // inconsistent with the trimming logic, which only counts keys of valid | ||
| // attributes. However, this value is only used to set the `original_value` | ||
| // on the attributes collection for documentation purposes, we accept this | ||
| // discrepancy for now. In any case this is fine to change. | ||
| let original_length = size::attributes_size(attributes); | ||
|
|
||
| // Sort attributes by key + value size so small attributes are more likely to be preserved. | ||
|
|
||


Uh oh!
There was an error while loading. Please reload this page.