 Documentation
      ¶
      Documentation
      ¶
    
    
  
    
  
    Index ¶
- Variables
- func ClientStatsHandler(opts ...otelgrpc.Option) stats.Handler
- func ContextWithSpanFromContext(ctx, ctx2 context.Context) context.Context
- func FinishWithError(span trace.Span, err error)
- func NewTransport(rt http.RoundTripper) http.RoundTripper
- func ServerStatsHandler(opts ...otelgrpc.Option) stats.Handler
- func StartSpan(ctx context.Context, operationName string, opts ...trace.SpanStartOption) (trace.Span, context.Context)
- type MultiSpan
- type MultiSpanExporter
Constants ¶
This section is empty.
Variables ¶
      View Source
      
  
    var DefaultClient = &http.Client{ Transport: DefaultTransport, }
      View Source
      
  
var DefaultTransport = NewTransport(http.DefaultTransport)
    Functions ¶
func ContextWithSpanFromContext ¶
ContextWithSpanFromContext sets the tracing span of a context from other context if one is not already set. Alternative would be context.WithoutCancel() that would copy the context but reset ctx.Done
func FinishWithError ¶
FinishWithError finalizes the span and sets the error if one is passed
func NewTransport ¶
func NewTransport(rt http.RoundTripper) http.RoundTripper
Types ¶
type MultiSpan ¶
func NewMultiSpan ¶
func NewMultiSpan() *MultiSpan
type MultiSpanExporter ¶
type MultiSpanExporter []sdktrace.SpanExporter
func (MultiSpanExporter) ExportSpans ¶
func (m MultiSpanExporter) ExportSpans(ctx context.Context, spans []sdktrace.ReadOnlySpan) (err error)
 Click to show internal directories. 
   Click to hide internal directories.