-
Notifications
You must be signed in to change notification settings - Fork 104
feat(eap): Normalize deprecated attributes #5257
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
Changes from all commits
70756e8
95de740
aeea4a3
9d485d4
61e6a13
43b10d4
273078b
8d5bf19
953cf3b
2c907f0
7514845
82f8041
982bef1
7ae5f0b
1303910
0ad2495
6b00628
c4459f2
5dfeff0
508887b
9552f46
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 |
|---|---|---|
|
|
@@ -109,10 +109,11 @@ fn scrub_log(log: &mut Annotated<OurLog>, ctx: Context<'_>) -> Result<()> { | |
|
|
||
| fn normalize_log(log: &mut Annotated<OurLog>, meta: &RequestMeta) -> Result<()> { | ||
| if let Some(log) = log.value_mut() { | ||
| eap::normalize_attribute_types(&mut log.attributes); | ||
| eap::normalize_attribute_names(&mut log.attributes); | ||
|
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. Bug: Deprecation Normalization Timing IssueThe call to |
||
| eap::normalize_received(&mut log.attributes, meta.received_at()); | ||
| eap::normalize_client_address(&mut log.attributes, meta.client_addr()); | ||
| eap::normalize_user_agent(&mut log.attributes, meta.user_agent(), meta.client_hints()); | ||
| eap::normalize_attribute_types(&mut log.attributes); | ||
| } | ||
|
|
||
| process_value( | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -88,10 +88,11 @@ fn normalize_span( | |
| // TODO: `validate_span()` (start/end timestamps) | ||
|
|
||
| if let Some(span) = span.value_mut() { | ||
| eap::normalize_attribute_types(&mut span.attributes); | ||
| eap::normalize_attribute_names(&mut span.attributes); | ||
|
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. Bug: Deprecation Normalization Timing IssueThe call to |
||
| eap::normalize_received(&mut span.attributes, meta.received_at()); | ||
| eap::normalize_client_address(&mut span.attributes, meta.client_addr()); | ||
| eap::normalize_user_agent(&mut span.attributes, meta.user_agent(), meta.client_hints()); | ||
| eap::normalize_attribute_types(&mut span.attributes); | ||
| eap::normalize_user_geo(&mut span.attributes, || { | ||
| meta.client_addr().and_then(|ip| geo_lookup.lookup(ip)) | ||
| }); | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.