Documentation ¶
Overview ¶
Package export holds the definition of the telemetry Exporter interface, along with some simple implementations. Larger more complex exporters are in sub packages of their own.
Index ¶
- func ContextSpan(ctx context.Context, event telemetry.Event) context.Context
- func Metric(ctx context.Context, data telemetry.MetricData)
- func ProcessEvent(ctx context.Context, event telemetry.Event) context.Context
- func SetExporter(e Exporter)
- func Tag(ctx context.Context, event telemetry.Event) context.Context
- type Exporter
- type Span
- type SpanContext
- type SpanID
- type TraceID
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ContextSpan ¶
ContextSpan is an exporter that maintains hierarchical span structure in the context. It creates new spans on EventStartSpan, adds events to the current span on EventLog or EventTag, and closes the span on EventEndSpan. The span structure can then be used by other exporters.
func SetExporter ¶
func SetExporter(e Exporter)
Types ¶
type Exporter ¶
type Span ¶
type SpanContext ¶
Directories ¶
Path | Synopsis |
---|---|
Package ocagent adds the ability to export all telemetry to an ocagent.
|
Package ocagent adds the ability to export all telemetry to an ocagent. |
Click to show internal directories.
Click to hide internal directories.