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.
Click to show internal directories.
Click to hide internal directories.