package stdout

import "go.opentelemetry.io/otel/exporter/metric/stdout"

Index

Types

type Exporter

type Exporter struct {
	// contains filtered or unexported fields
}

func New

func New(options Options) (*Exporter, error)

func (*Exporter) Export

func (e *Exporter) Export(_ context.Context, checkpointSet export.CheckpointSet) error

type Options

type Options struct {
	// File is the destination.  If not set, os.Stdout is used.
	File io.Writer

	// PrettyPrint will pretty the json representation of the span,
	// making it print "pretty". Default is false.
	PrettyPrint bool

	// DoNotPrintTime suppresses timestamp printing.  This is
	// useful to create deterministic test conditions.
	DoNotPrintTime bool

	// Quantiles are the desired aggregation quantiles for measure
	// metric data, used when the configured aggregator supports
	// quantiles.
	//
	// Note: this exporter is meant as a demonstration; a real
	// exporter may wish to configure quantiles on a per-metric
	// basis.
	Quantiles []float64
}

Options are the options to be used when initializing a stdout export.

Source Files

stdout.go

Version
v0.1.2
Published
Nov 18, 2019
Platform
darwin/amd64
Imports
9 packages
Last checked
7 minutes ago

Tools for package owners.