-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
feat(eap): Add server.address and segment.name span attribute definitions #111707
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
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 |
|---|---|---|
|
|
@@ -456,6 +456,8 @@ | |
| simple_sentry_field("os.name"), | ||
| simple_sentry_field("app_start_type"), | ||
| simple_sentry_field("ttid"), | ||
| simple_sentry_field("server.address"), | ||
|
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. Bug: The Suggested FixReplace Prompt for AI AgentDid we get this right? 👍 / 👎 to inform future reviews. |
||
| simple_sentry_field("segment.name"), | ||
| simple_measurements_field("app_start_cold", "millisecond"), | ||
| simple_measurements_field("app_start_warm", "millisecond"), | ||
| simple_measurements_field("frames_frozen"), | ||
|
|
||
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.
Wrong internal name prefix for OTel attributes
High Severity
simple_sentry_field("server.address")maps tointernal_name="sentry.server.address", butserver.addressis an OpenTelemetry semantic convention attribute stored without thesentry.prefix. Fixture data and theconvert_span_to_itemingestion path confirm the attribute is stored asserver.address. Other OTel attributes likedb.system,cache.hit, andhttp.decoded_response_content_lengthcorrectly useResolvedAttributewith unprefixed internal names. This mismatch means EAP queries forserver.addresswill look up the wrong key and return no results. The same concern likely applies tosegment.name.Additional Locations (1)
src/sentry/search/eap/spans/attributes.py#L459-L460