package stdout
import "go.opentelemetry.io/otel/exporters/trace/stdout"
Package stdout contains an OpenTelemetry tracing exporter for writing to stdout.
Index ¶
- type Exporter
- func NewExporter(o Options) (*Exporter, error)
- func (e *Exporter) ExportSpan(ctx context.Context, data *export.SpanData)
- type Options
Types ¶
type Exporter ¶
type Exporter struct {
// contains filtered or unexported fields
}
Exporter is an implementation of trace.Exporter that writes spans to stdout.
func NewExporter ¶
func (*Exporter) ExportSpan ¶
ExportSpan writes a SpanData in json format to stdout.
type Options ¶
type Options struct { // Writer is the destination. If not set, os.Stdout is used. Writer io.Writer // PrettyPrint will pretty the json representation of the span, // making it print "pretty". Default is false. PrettyPrint bool }
Options are the options to be used when initializing a stdout export.
Source Files ¶
doc.go stdout.go
- Version
- v0.2.3
- Published
- Mar 4, 2020
- Platform
- linux/amd64
- Imports
- 5 packages
- Last checked
- 2 minutes ago –
Tools for package owners.