telexporter

package
v0.0.0-...-adae3a6 Latest Latest
Warning

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

Go to latest
Published: May 22, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type StdoutMetricExporter

type StdoutMetricExporter = stdoutmetric.Exporter

StdoutMetricExporter is an OpenTelemetry metric exporter that transmits telemetry to the local STDOUT.

func NewStdoutMetric

func NewStdoutMetric(options ...StdoutMetricOption) (*StdoutMetricExporter, error)

NewStdoutMetric creates an Exporter with the passed options.

type StdoutMetricOption

type StdoutMetricOption = stdoutmetric.Option

StdoutMetricOption sets the value of an option for a Config.

func WithStdoutMetricAttributeEncoder

func WithStdoutMetricAttributeEncoder(enc attribute.Encoder) StdoutMetricOption

WithStdoutMetricAttributeEncoder sets the attribute encoder used in export.

func WithStdoutMetricPrettyPrint

func WithStdoutMetricPrettyPrint() StdoutMetricOption

WithStdoutMetricPrettyPrint sets the export stream format to use JSON.

func WithStdoutMetricWriter

func WithStdoutMetricWriter(w io.Writer) StdoutMetricOption

WithStdoutMetricWriter sets the export stream destination.

func WithoutStdoutTimestamps

func WithoutStdoutTimestamps() StdoutMetricOption

WithoutStdoutTimestamps sets the export stream to not include timestamps.

type StdoutTraceExporter

type StdoutTraceExporter = stdouttrace.Exporter

StdoutTraceExporter is an implementation of trace.SpanSyncer that writes spans to stdout.

func NewStdoutTrace

func NewStdoutTrace(options ...StdoutTraceOption) (*StdoutTraceExporter, error)

NewStdoutTrace creates an Exporter with the passed options.

type StdoutTraceOption

type StdoutTraceOption = stdouttrace.Option

StdoutTraceOption sets the value of an option for a Config.

func WithStdoutTracePrettyPrint

func WithStdoutTracePrettyPrint() StdoutTraceOption

WithStdoutTracePrettyPrint sets the export stream format to use JSON.

func WithStdoutTraceWriter

func WithStdoutTraceWriter(w io.Writer) StdoutTraceOption

WithStdoutTraceWriter sets the export stream destination.

func WithoutStdoutTraceTimestamps

func WithoutStdoutTraceTimestamps() StdoutTraceOption

WithoutStdoutTraceTimestamps sets the export stream to not include timestamps.

Jump to

Keyboard shortcuts

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