stdout

package
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 15, 2019 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package stdout contains an OpenTelemetry tracing exporter for writing to stdout.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

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 NewExporter(o Options) (*Exporter, error)

func (*Exporter) ExportSpan

func (e *Exporter) ExportSpan(ctx context.Context, data *export.SpanData)

ExportSpan writes a SpanData in json format to stdout.

type Options

type Options struct {
	// 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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL