Skip to content
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

Add experimental support for AddLinks() #4889

Closed

Commits on Feb 6, 2024

  1. Add experimental support for AddLinks()

    This commit introduces a new ExperimentalSpan interface which aims to
    allow the API and SDK to support experimental features in a way that
    clearly communicates to users that they are opting into an API surface
    that is still considered experimental by the spec and thus may break,
    change, or be outright removed with minimal notice.
    
    In the case of `AddLinks()`, users can explicitly type-check for the
    new interface, making it obvious that they are interacting with an
    API surface that is considered experimental:
    
    ```go
    if s, ok := span.(trace.ExperimentalSpan); ok {
            s.AddLinks(links...)
    }
    ```
    
    See: open-telemetry#3919
    
    Signed-off-by: Austin Drenski <austin@austindrenski.io>
    austindrenski committed Feb 6, 2024
    Configuration menu
    Copy the full SHA
    f907e77 View commit details
    Browse the repository at this point in the history