Skip to content
This repository was archived by the owner on Nov 17, 2025. It is now read-only.
This repository was archived by the owner on Nov 17, 2025. It is now read-only.

Use whole spancontext for link #57

@dyladan

Description

@dyladan

From the spec:

A Link is structurally defined by the following properties:

  • SpanContext of the Span to link to.
  • Zero or more Attributes further describing the link.

Seems pretty clear to me that the link should expose the whole SpanContext including the trace state.

Originally posted by @dyladan in #36 (comment)

Currently our Link is an object that shares some properties with SpanContext. Should we (1) add the missing properties to Link or should we (2) make it type Link = { spanContext: SpanContext, attributes: Attributes }?

To me, the spec seems to imply 2 is the more "correct" choice, but 1 is the less breaking change.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions