otelcollector

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package otelcollector implements the Open Telemetry exporter.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OtelCollector

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

OtelCollector implements the traces exporter.

func Exporter

func Exporter(ctx context.Context, cfg config.OTLPExporter) (*OtelCollector, error)

Exporter creates an Open Telemetry exporter instance.

func ExporterWithOptions

func ExporterWithOptions(ctx context.Context, cfg config.OTLPExporter, options []interface{}) (*OtelCollector, error)

func (*OtelCollector) MetricDefaultReporting

func (c *OtelCollector) MetricDefaultReporting() bool

func (*OtelCollector) MetricReader

func (c *OtelCollector) MetricReader(reportingPeriod time.Duration) sdkmetric.Reader

func (*OtelCollector) SpanExporter

func (c *OtelCollector) SpanExporter() sdktrace.SpanExporter

SpanExporter implements the interface to export traces.

func (*OtelCollector) TraceDefaultReporting

func (c *OtelCollector) TraceDefaultReporting() bool

Jump to

Keyboard shortcuts

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