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     = label.Key("component")
    ServiceKey       = label.Key("service")
    StatusCodeKey    = label.Key("status.code")
    StatusMessageKey = label.Key("status.message")
    ErrorKey         = label.Key("error")
    NameKey          = label.Key("name")
)

type MockContextKeyValue Uses

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

type MockEvent Uses

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

type MockSpan Uses

type MockSpan struct {
    SpanKind oteltrace.SpanKind

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

func (*MockSpan) AddEvent Uses

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

func (*MockSpan) AddEventWithTimestamp Uses

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

func (*MockSpan) End Uses

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

func (*MockSpan) IsRecording Uses

func (s *MockSpan) IsRecording() bool

func (*MockSpan) OverrideTracer Uses

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

func (*MockSpan) RecordError Uses

func (s *MockSpan) RecordError(ctx context.Context, err error, opts ...oteltrace.ErrorOption)

func (*MockSpan) SetAttribute Uses

func (s *MockSpan) SetAttribute(k string, v interface{})

func (*MockSpan) SetAttributes Uses

func (s *MockSpan) SetAttributes(attributes ...label.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(code codes.Code, msg string)

func (*MockSpan) SpanContext Uses

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

func (*MockSpan) Tracer Uses

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

type MockTracer Uses

type MockTracer struct {
    Resources             otelbaggage.Map
    FinishedSpans         []*MockSpan
    SpareTraceIDs         []oteltrace.ID
    SpareSpanIDs          []oteltrace.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.SpanOption) (context.Context, oteltrace.Span)

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