Documentation ¶
Index ¶
- Constants
- type Event
- type EventSource
- type EventState
- type EventTimings
- type SpanState
- type StubEvent
- func (s StubEvent) IsError() (bool, error)
- func (s StubEvent) OperationName() string
- func (s StubEvent) ParentSpanID() (*string, error)
- func (s StubEvent) SpanID() (string, error)
- func (s StubEvent) State(prev *EventState) (SpanState, error)
- func (s StubEvent) Tags() (map[string]interface{}, error)
- func (s StubEvent) Timings() (EventTimings, error)
- func (s StubEvent) TraceID() (*string, error)
- type StubEventSource
- func (s StubEventSource) Event(r *http.Request, payload []byte) (Event, error)
- func (s StubEventSource) Name() string
- func (s StubEventSource) SecretKey() []byte
- func (s StubEventSource) Tracer() opentracing.Tracer
- func (s StubEventSource) ValidatePayload(r *http.Request, secretKey []byte) ([]byte, error)
- type TestEvent
Constants ¶
View Source
const ( SourceNameTag string = "vs.source.name" SpanIDTag string = "vs.span.id" ParentSpanIDTag string = "vs.parent.span.id" )
View Source
const (
TracePrefix string = "vstrace"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EventSource ¶
type EventState ¶
type EventState string
type EventTimings ¶ added in v0.3.0
type StubEvent ¶
type StubEvent struct { SpanIDReturn string SpanIDReturnError error OperationNameReturn string ParentSpanIDReturn *string ParentSpanIDReturnError error IsErrorReturn bool IsErrorReturnError error StateReturn SpanState StateReturnError error TraceIDReturn *string TraceIDReturnError error TagsReturn map[string]interface{} TagsReturnError error }
func (StubEvent) OperationName ¶
func (StubEvent) ParentSpanID ¶
func (StubEvent) Timings ¶ added in v0.3.0
func (s StubEvent) Timings() (EventTimings, error)
type StubEventSource ¶
type StubEventSource struct { ValidatePayloadFn func(r *http.Request, secretKey []byte) ([]byte, error) NameReturn string EventFn func(*http.Request, []byte) (Event, error) TracerReturn opentracing.Tracer SecretKeyReturn []byte }
func (StubEventSource) Name ¶
func (s StubEventSource) Name() string
func (StubEventSource) SecretKey ¶
func (s StubEventSource) SecretKey() []byte
func (StubEventSource) Tracer ¶
func (s StubEventSource) Tracer() opentracing.Tracer
func (StubEventSource) ValidatePayload ¶
Click to show internal directories.
Click to hide internal directories.