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.

No way to add a Link to an already-created Span #124

@Sushisource

Description

@Sushisource

As far as I can tell the only (typescript safe) way to link spans is to pass the link when creating the span as here: https://open-telemetry.github.io/opentelemetry-js-api/interfaces/tracer.html#startspan

However, it's desirable in many situations to be able to associate spans after they are created. I couldn't find any way to do this.

I would expect to be able to do something like:

span.link(otherSpanContext)

If there's a way to do this already please let me know. I could contribute this if it makes sense

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions