initialization

package
v0.0.0-...-ed06964 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2023 License: MIT Imports: 10 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrOtlpServerStart = errors.New("OTLP server start error")

Functions

func NewClient

func NewClient(ctx context.Context, config config.Config, traceCache collector.TraceCache) (*client.Client, error)

func StartCollector

func StartCollector(ctx context.Context, config config.Config, traceCache collector.TraceCache) error

Types

type Session

type Session struct {
	Token string
	// contains filtered or unexported fields
}

func Start

func Start(ctx context.Context, config config.Config) (*Session, error)

Start the agent with given configuration

func (*Session) Close

func (s *Session) Close()

func (*Session) WaitUntilDisconnected

func (s *Session) WaitUntilDisconnected()

Jump to

Keyboard shortcuts

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