telemetry

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Module = fx.Module("telemetry",
	fx.Provide(
		NewTelemetry,
	),
)

Functions

func SetUserEmail

func SetUserEmail(ctx context.Context, userID uuid.UUID, email string)

func SetUserID

func SetUserID(ctx context.Context, userID uuid.UUID)

func SetUserUsername

func SetUserUsername(ctx context.Context, userID uuid.UUID, username string)

Types

type Telemetry

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

func NewTelemetry

func NewTelemetry(cfg config.Config, logger *zap.Logger, sc *segment.Client) *Telemetry

func (*Telemetry) SetInstallationID

func (t *Telemetry) SetInstallationID(installationID uuid.UUID)

func (*Telemetry) WrapStreamingClient

func (t *Telemetry) WrapStreamingClient(next connect.StreamingClientFunc) connect.StreamingClientFunc

func (*Telemetry) WrapStreamingHandler

func (t *Telemetry) WrapStreamingHandler(next connect.StreamingHandlerFunc) connect.StreamingHandlerFunc

func (*Telemetry) WrapUnary

func (t *Telemetry) WrapUnary(next connect.UnaryFunc) connect.UnaryFunc

Jump to

Keyboard shortcuts

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