kasapp

package
v17.4.0 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2024 License: MIT Imports: 116 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApplyDefaultsToKASConfigurationFile

func ApplyDefaultsToKASConfigurationFile(cfg *kascfg.ConfigurationFile)

func ErrReporterWithoutAgentInfos

func ErrReporterWithoutAgentInfos(hub SentryHub) errz.ErrReporter

func LoadConfigurationFile

func LoadConfigurationFile(ctx context.Context, configFile string) (*kascfg.ConfigurationFile, error)

LoadConfigurationFile loads the configuration file. This function does not run any validation logic.

func NewCommand

func NewCommand() *cobra.Command

func StartStacktraceCollector added in v17.2.0

func StartStacktraceCollector(log *slog.Logger, hub *sentry.Hub, interval time.Duration)

Types

type App

type App struct {
	ConfigurationFile string
}

func (*App) Run

func (a *App) Run(ctx context.Context) (retErr error)

type ConfiguredApp

type ConfiguredApp struct {
	Log           *slog.Logger
	Validator     prototool.Validator
	Configuration *kascfg.ConfigurationFile
}

func (*ConfiguredApp) Run

func (a *ConfiguredApp) Run(ctx context.Context) (retErr error)

type SentryHub

type SentryHub interface {
	CaptureEvent(event *sentry.Event) *sentry.EventID
}

type TraceDualWriter

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

func (*TraceDualWriter) ExportSpans

func (tdw *TraceDualWriter) ExportSpans(ctx context.Context, spans []tracesdk.ReadOnlySpan) error

func (*TraceDualWriter) Shutdown

func (tdw *TraceDualWriter) Shutdown(ctx context.Context) error

Jump to

Keyboard shortcuts

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