otel: go.opentelemetry.io/otel/bridge/opentracing/internal Index | Files

package internal

import "go.opentelemetry.io/otel/bridge/opentracing/internal"

Index

Package Files

doc.go mock.go

Variables

var (
    ComponentKey = otelkey.New("component")
    ServiceKey   = otelkey.New("service")
    StatusKey    = otelkey.New("status")
    ErrorKey     = otelkey.New("error")
    NameKey      = otelkey.New("name")
)

type MockContextKeyValue Uses

type MockContextKeyValue struct {
    Key   interface{}
    Value interface{}
}

type MockEvent Uses

type MockEvent struct {
    CtxAttributes otelcorrelation.Map
    Timestamp     time.Time
    Name          string
    Attributes    otelcorrelation.Map
}

type MockSpan Uses

type MockSpan struct {
    SpanKind oteltrace.SpanKind

    Attributes   otelcorrelation.Map
    StartTime    time.Time
    EndTime      time.Time
    ParentSpanID otelcore.SpanID
    Events       []MockEvent
    // contains filtered or unexported fields
}

func (*MockSpan) AddEvent Uses

func (s *MockSpan) AddEvent(ctx context.Context, name string, attrs ...otelcore.KeyValue)

func (*MockSpan) AddEventWithTimestamp Uses

func (s *MockSpan) AddEventWithTimestamp(ctx context.Context, timestamp time.Time, name string, attrs ...otelcore.KeyValue)

func (*MockSpan) End Uses

func (s *MockSpan) End(options ...oteltrace.EndOption)

func (*MockSpan) IsRecording Uses

func (s *MockSpan) IsRecording() bool

func (*MockSpan) OverrideTracer Uses

func (s *MockSpan) OverrideTracer(tracer oteltrace.Tracer)

func (*MockSpan) SetAttributes Uses

func (s *MockSpan) SetAttributes(attributes ...otelcore.KeyValue)

func (*MockSpan) SetError Uses

func (s *MockSpan) SetError(v bool)

func (*MockSpan) SetName Uses

func (s *MockSpan) SetName(name string)

func (*MockSpan) SetStatus Uses

func (s *MockSpan) SetStatus(status codes.Code)

func (*MockSpan) SpanContext Uses

func (s *MockSpan) SpanContext() otelcore.SpanContext

func (*MockSpan) Tracer Uses

func (s *MockSpan) Tracer() oteltrace.Tracer

type MockTracer Uses

type MockTracer struct {
    Resources             otelcorrelation.Map
    FinishedSpans         []*MockSpan
    SpareTraceIDs         []otelcore.TraceID
    SpareSpanIDs          []otelcore.SpanID
    SpareContextKeyValues []MockContextKeyValue
    // contains filtered or unexported fields
}

func NewMockTracer Uses

func NewMockTracer() *MockTracer

func (*MockTracer) DeferredContextSetupHook Uses

func (t *MockTracer) DeferredContextSetupHook(ctx context.Context, span oteltrace.Span) context.Context

func (*MockTracer) Start Uses

func (t *MockTracer) Start(ctx context.Context, name string, opts ...oteltrace.StartOption) (context.Context, oteltrace.Span)

func (*MockTracer) WithSpan Uses

func (t *MockTracer) WithSpan(ctx context.Context, name string, body func(context.Context) error, opts ...oteltrace.StartOption) error

Package internal imports 11 packages (graph). Updated 2020-02-20. Refresh now. Tools for package owners.