telemetry

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2025 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApplicationInfo

type ApplicationInfo struct {
	Version       string
	MQ            string
	EntityStore   string
	LogStore      string
	PortalEnabled bool
}

func (*ApplicationInfo) ToData

func (a *ApplicationInfo) ToData() map[string]interface{}

type NoopTelemetry

type NoopTelemetry struct{}

func (*NoopTelemetry) ApplicationStarted

func (t *NoopTelemetry) ApplicationStarted(ctx context.Context, application ApplicationInfo)

func (*NoopTelemetry) DestinationCreated

func (t *NoopTelemetry) DestinationCreated(ctx context.Context, destinationType string)

func (*NoopTelemetry) Flush

func (t *NoopTelemetry) Flush()

func (*NoopTelemetry) Init

func (t *NoopTelemetry) Init(ctx context.Context)

func (*NoopTelemetry) MakeSentryHandler

func (t *NoopTelemetry) MakeSentryHandler() gin.HandlerFunc

func (*NoopTelemetry) TenantCreated

func (t *NoopTelemetry) TenantCreated(ctx context.Context)

type Telemetry

type Telemetry interface {
	Init(ctx context.Context)
	Flush()
	MakeSentryHandler() gin.HandlerFunc

	// Events
	ApplicationStarted(ctx context.Context, application ApplicationInfo)
	DestinationCreated(ctx context.Context, destinationType string)
	TenantCreated(ctx context.Context)
}

func New

func New(logger *logging.Logger, config TelemetryConfig, installationID string) Telemetry

type TelemetryConfig

type TelemetryConfig struct {
	Disabled          bool
	BatchSize         int
	BatchInterval     int
	HookdeckSourceURL string
	SentryDSN         string
}

Jump to

Keyboard shortcuts

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