desktopexporter

package module
v0.0.0-...-af38ec4 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2023 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MAX_QUEUE_LENGTH = 10000
)

Variables

This section is empty.

Functions

func GenerateSampleLogData

func GenerateSampleLogData(ctx context.Context) []telemetry.LogData

func GenerateSampleMetricData

func GenerateSampleMetricData(ctx context.Context) []telemetry.MetricData

func GenerateSampleSpanData

func GenerateSampleSpanData(ctx context.Context) []telemetry.SpanData

func NewFactory

func NewFactory() exporter.Factory

Types

type Config

type Config struct {
	// Endpoint defines where we serve our frontend app
	Endpoint string `mapstructure:"endpoint"`
}

Config defines configuration for logging exporter.

func (*Config) Validate

func (cfg *Config) Validate() error

Validate checks if the exporter configuration is valid

type Server

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

func NewServer

func NewServer(traceStore *TraceStore, telemetryStore *telemetry.Store, endpoint string) *Server

func (Server) Close

func (s Server) Close() error

func (Server) Start

func (s Server) Start() error

type TraceStore

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

func NewTraceStore

func NewTraceStore(maxQueueSize int) *TraceStore

func (*TraceStore) Add

func (store *TraceStore) Add(_ context.Context, spanData telemetry.SpanData)

func (*TraceStore) AddLog

func (store *TraceStore) AddLog(_ context.Context, ld telemetry.LogData)

func (*TraceStore) AddMetric

func (store *TraceStore) AddMetric(_ context.Context, md telemetry.MetricData)

func (*TraceStore) ClearTraces

func (store *TraceStore) ClearTraces()

func (*TraceStore) GetRecentTraces

func (store *TraceStore) GetRecentTraces(traceCount int) []telemetry.TraceData

func (*TraceStore) GetTrace

func (store *TraceStore) GetTrace(traceID string) (telemetry.TraceData, error)

Directories

Path Synopsis
internal
sharedcomponent
Package sharedcomponent exposes util functionality for receivers and exporters that need to share state between different signal types instances such as net.Listener or os.File.
Package sharedcomponent exposes util functionality for receivers and exporters that need to share state between different signal types instances such as net.Listener or os.File.

Jump to

Keyboard shortcuts

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