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

Allow for setting an explicit SpanContext on Span creation #412

Closed

Commits on Jan 2, 2020

  1. Allow for setting an explicit SpanContext on Span creation

    In certain circumstances, information from an existing SpanContext is
    desirable when instantiating a new Span. For instance, when a process is
    accepting inbound spans in various formats before using an OpenTelemetry
    exporter to forward to another destination.
    
    Add a new StartOption, WithSpanContext, that allows setting an explicit
    SpanContext on a trace.
    
    Signed-off-by: Nick Travers <n.e.travers@gmail.com>
    nicktrav committed Jan 2, 2020
    Configuration menu
    Copy the full SHA
    f42b566 View commit details
    Browse the repository at this point in the history
  2. Add test case for explicitly invalid SpanContext

    Signed-off-by: Nick Travers <n.e.travers@gmail.com>
    nicktrav committed Jan 2, 2020
    Configuration menu
    Copy the full SHA
    b75916a View commit details
    Browse the repository at this point in the history