Documentation ¶
Index ¶
- func NewFromCLI(c *cli.Context, tracer opentracing.Tracer) (eventsources.EventSource, error)
- func NewSource(tracer opentracing.Tracer) (eventsources.EventSource, error)
- type Event
- func (e Event) IsError() (bool, error)
- func (e Event) OperationName() string
- func (e Event) ParentSpanID() (*string, error)
- func (e Event) SpanID() (string, error)
- func (e Event) State(prev *eventsources.EventState) (eventsources.SpanState, error)
- func (e Event) Tags() (map[string]interface{}, error)
- func (e Event) Timings() (eventsources.EventTimings, error)
- type Source
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewFromCLI ¶
func NewFromCLI(c *cli.Context, tracer opentracing.Tracer) (eventsources.EventSource, error)
func NewSource ¶
func NewSource(tracer opentracing.Tracer) (eventsources.EventSource, error)
Types ¶
type Event ¶
type Event struct { Identifier string `json:"id"` Action string ParentID *string Error bool Namespace string Type string Metadata map[string]interface{} }
func (Event) OperationName ¶
func (Event) ParentSpanID ¶
ParentSpanID allows this HTTP event to reference any other event.
func (Event) State ¶
func (e Event) State(prev *eventsources.EventState) (eventsources.SpanState, error)
func (Event) Timings ¶ added in v0.3.0
func (e Event) Timings() (eventsources.EventTimings, error)
Click to show internal directories.
Click to hide internal directories.