Skip to content
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

feat(core): Create types and utilities for span links #15375

Merged
merged 5 commits into from
Feb 13, 2025

Conversation

s1gr1d
Copy link
Member

@s1gr1d s1gr1d commented Feb 11, 2025

This is the base for adding span links to the SDK. Those types will be used both our OTel and Core SDK.

@s1gr1d s1gr1d mentioned this pull request Feb 11, 2025
7 tasks
@s1gr1d s1gr1d force-pushed the sig/span-link-types branch from acfbac3 to 10337a5 Compare February 12, 2025 12:30
@s1gr1d s1gr1d requested a review from Lms24 February 12, 2025 12:30
Copy link
Member

@Lms24 Lms24 left a comment

Choose a reason for hiding this comment

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

Thanks! Had some questions but this is a good base!

/**
* Converts the span links array to a flattened version to be sent within an envelope
*/
export function convertSpanLinksForEnvelope(links: SpanLink[]): SpanLinkJSON[] {
Copy link
Member

Choose a reason for hiding this comment

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

q: I assume this is getting tested in subsequent PRs when we serialize envelopes? If so, ignore me and no objections :)

@s1gr1d s1gr1d requested a review from Lms24 February 13, 2025 09:47
Copy link
Member

@Lms24 Lms24 left a comment

Choose a reason for hiding this comment

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

Thanks for making the changes!

@s1gr1d s1gr1d merged commit bfe7bfa into develop Feb 13, 2025
147 checks passed
@s1gr1d s1gr1d deleted the sig/span-link-types branch February 13, 2025 10:34
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