analyticsx

package
v0.0.0-...-19736ff Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2024 License: MIT Imports: 6 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAnalytics

func NewAnalytics(ctx context.Context, app AppInfo) (*sdktrace.TracerProvider, error)

func TrackError

func TrackError(ctx context.Context, tracer trace.Tracer, err error)

func TrackEvent

func TrackEvent(ctx context.Context, tracer trace.Tracer, eventName string, eventAttributes []attribute.KeyValue)

Types

type AppInfo

type AppInfo struct {
	Name    string
	Version string
}

Jump to

Keyboard shortcuts

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