telemetry

package
v0.0.0-...-753386a Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2024 License: Apache-2.0 Imports: 21 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ExternalLogger

type ExternalLogger interface {
	// contains filtered or unexported methods
}

type ExternalLoggerLoki

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

ExternalLoggerLoki implements ExternalLogger for the Grafana Loki cloud logging.

type Telemetry

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

func NewExternalLogger

func NewExternalLogger(skipPrivateLogs bool, externalLogger ExternalLogger) (*Telemetry, error)

func NewLokiCloudLogger

func NewLokiCloudLogger(ctx context.Context, logger *zap.Logger, url string, productName string, skipPrivateLogs bool, labels map[string]string, opts ...option.ClientOption) (*Telemetry, error)

NewLokiCloudLogger creates a new Telemetry logger using Grafana Loki Cloud Logging. skipPrivateLogs: if set to `true`, logs with the field zap.Bool("_privateLogEntry", true) will not be logged by telemetry.

func (*Telemetry) Close

func (s *Telemetry) Close() error

func (*Telemetry) WrapLogger

func (s *Telemetry) WrapLogger(logger *zap.Logger) *zap.Logger

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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