The Otel SpanBuilder#addLink API delegates to the DDSpan under the hood and adds an AgentSpanLink to it.
In this PR we are adding the links support into our OtelDdSpanToSpanEventMapper by serializing the AgentSpanLink list and adding it as a String/String entry into the SpanEvent.meta map.
Example of a serialized span link into the meta section:
What does this PR do?
The Otel
SpanBuilder#addLink
API delegates to theDDSpan
under the hood and adds anAgentSpanLink
to it. In this PR we are adding the links support into ourOtelDdSpanToSpanEventMapper
by serializing theAgentSpanLink
list and adding it as aString/String
entry into theSpanEvent.meta
map. Example of a serialized span link into themeta
section:Motivation
What inspired you to submit this pull request?
Additional Notes
Anything else we should know when reviewing?
Review checklist (to be filled by reviewers)