otlp

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthBearerOptions

type AuthBearerOptions struct {
	Token string
}

type AuthOptions

type AuthOptions struct {
	Type   string
	Bearer AuthBearerOptions
}

type Exporter

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

func New

func New(ctx context.Context, logger logging.Logger, exportServerAddr string, opts *Options) (*Exporter, error)

func (*Exporter) Close

func (e *Exporter) Close(ctx context.Context) error

func (*Exporter) Export

func (e *Exporter) Export(ctx context.Context, otlpLogs dpsample.OTLPLogs) error

Export internally perform samples batches

type Host

type Host struct{}

func (*Host) GetExporters

func (h *Host) GetExporters() map[component.DataType]map[component.ID]component.Component

func (*Host) GetExtensions

func (h *Host) GetExtensions() map[component.ID]component.Component

func (*Host) GetFactory

func (h *Host) GetFactory(_ component.Kind, _ component.Type) component.Factory

func (*Host) ReportFatalError

func (h *Host) ReportFatalError(_ error)

ReportFatalError does not have to do anything because otlpexporter.LogsExporter doesn't report errors if it ever reports fatal errors, it should notify the Exporter.

type Options

type Options struct {
	TLSEnable bool
	Auth      AuthOptions
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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