-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Conversation
acfbac3
to
10337a5
Compare
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.
Thanks! Had some questions but this is a good base!
packages/core/src/utils/spanUtils.ts
Outdated
/** | ||
* Converts the span links array to a flattened version to be sent within an envelope | ||
*/ | ||
export function convertSpanLinksForEnvelope(links: SpanLink[]): SpanLinkJSON[] { |
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.
q: I assume this is getting tested in subsequent PRs when we serialize envelopes? If so, ignore me and no objections :)
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.
Thanks for making the changes!
This is the base for adding span links to the SDK. Those types will be used both our OTel and Core SDK.