Skip to content

ref: Rename relay-spans/span to otel_to_sentry #4742

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

Merged
merged 1 commit into from
May 20, 2025

Conversation

loewenheim
Copy link
Contributor

@loewenheim loewenheim commented May 15, 2025

This is in preparation for the spanv2 -> spanv1 and otel -> spanv2 conversions. It also introduces JSON snapshots into tests where appropriate.

ref: RELAY-63

#skip-changelog

This is in preparation for the spanv2 -> spanv1
and otel -> spanv2 conversions. It also introduces
JSON snapshots into tests where appropriate.
@loewenheim loewenheim requested a review from a team as a code owner May 15, 2025 13:16
@@ -629,126 +734,35 @@ mod tests {
}"#;

let otel_span: OtelSpan = serde_json::from_str(json).unwrap();
let span_from_otel = otel_to_sentry_span(otel_span).unwrap();
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This test already had a debug snapshot, the JSON one is just much more compact.

@@ -884,5 +945,30 @@ mod tests {
get_path!(annotated_span.links[0].sampled),
Some(&Annotated::new(true))
);
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All the tests already have explicit assertions that are technically redundant with the snapshots, but it's especially egregious with this one. Should we just remove these?

@loewenheim loewenheim merged commit abce37f into master May 20, 2025
28 of 29 checks passed
@loewenheim loewenheim deleted the sebastian/otel-to-sentry branch May 20, 2025 08:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants