-
Notifications
You must be signed in to change notification settings - Fork 101
feat(spans): Align otel attributes with sentry span #3457
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
12c5a46
b089c25
0cfeb26
d429e7f
f9534d8
0a12ca6
0ad1b78
b409f25
c761aac
d2ffc68
14cfbdb
b1bd53a
d03e861
1f71286
bec1854
ac94ab0
f9218a9
3b1f4b4
bec3ac2
68b5278
51c264b
980b6d3
b33bacd
e47a11f
3f6c1ed
c9c6dde
97978ab
3c86837
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -200,11 +200,11 @@ pub struct SpanData { | |
pub db_system: Annotated<Value>, | ||
|
||
/// The sentry environment. | ||
#[metastructure(field = "environment")] | ||
#[metastructure(field = "sentry.environment", legacy_alias = "environment")] | ||
pub environment: Annotated<String>, | ||
|
||
/// The release version of the project. | ||
#[metastructure(field = "release")] | ||
#[metastructure(field = "sentry.release", legacy_alias = "release")] | ||
pub release: Annotated<LenientString>, | ||
|
||
/// The decoded body size of the response (in bytes). | ||
|
@@ -276,7 +276,7 @@ pub struct SpanData { | |
/// This corresponds to the transaction name in the transaction-based model. | ||
/// | ||
/// For INP spans, this is the route name where the interaction occurred. | ||
#[metastructure(field = "segment.name", legacy_alias = "transaction")] | ||
#[metastructure(field = "sentry.segment.name", legacy_alias = "transaction")] | ||
pub segment_name: Annotated<String>, | ||
|
||
/// Name of the UI component (e.g. React). | ||
|
@@ -292,11 +292,11 @@ pub struct SpanData { | |
pub user: Annotated<Value>, | ||
|
||
/// Replay ID | ||
#[metastructure(field = "replay_id")] | ||
#[metastructure(field = "sentry.replay.id", legacy_alias = "replay_id")] | ||
pub replay_id: Annotated<Value>, | ||
|
||
/// The sentry SDK (see [`crate::protocol::ClientSdkInfo`]). | ||
#[metastructure(field = "sdk.name")] | ||
#[metastructure(field = "sentry.sdk.name")] | ||
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. No need for an alias here, this field was only introduced in #3456. |
||
pub sdk_name: Annotated<String>, | ||
|
||
/// Other fields in `span.data`. | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1359,6 +1359,7 @@ struct SpanKafkaMessage<'a> { | |
event_id: Option<EventId>, | ||
#[serde(rename(deserialize = "exclusive_time"))] | ||
exclusive_time_ms: f64, | ||
#[serde(default)] | ||
is_segment: bool, | ||
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. When we cannot derive |
||
|
||
#[serde(borrow, default, skip_serializing_if = "Option::is_none")] | ||
|
This file was deleted.
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.
The disadvantage of this rename is that the new key will now be serialized into the payload. But
span.data
is not (yet) forwarded to sentry directly on standalone spans (we only extract some of it intosentry_tags
, but that happens in relay). Spans as part of transactions are materialized into nodestore, but they don't rely on these particularspan.data
items AFAIK.