open-telemetry / open-telemetry/opentelemetry-cpp

[Trace API] Tracer::StartSpan() missing api for a single link.

Open
#1,466 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug do-not-stale
Dominant language
C++
Stars
1.4k
Forks
632
Avg merge
1d 13h
Merged PRs (30d)
75

Description

In the spec for Span creation, for specifying links:

https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/trace/api.md#specifying-links

The Span creation API MUST provide:

An API to record a single Link where the Link properties are passed as arguments. (...).

Every StartSpan method on Tracer, when taking links as input, expects many links (iterators on collections, initializer lists, etc) at once.

There are no apis that can be used to add a single link, with optional attributes, when creating a span.

tags: trace api, spec compliance.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading the linked Span creation specification, then inspect the Tracer::StartSpan overloads that currently accept collections or iterators of links. Done means providing a single-link creation API with optional attributes while preserving the existing multi-link forms and demonstrating spec compliance.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
api, distributed-systems
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
28/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.