analytics

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2026 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// DefaultEndpoint is the default address for the analytics collector.
	DefaultEndpoint = "otlp.ncps.dev:443"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Reporter

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

func Start

func Start(
	ctx context.Context,
	db database.Querier,
	res *resource.Resource,
) (*Reporter, error)

Start initializes the analytics reporting pipeline. It returns a shutdown function that should be called when the application exits.

func (*Reporter) GetLogger

func (r *Reporter) GetLogger() log.Logger

func (*Reporter) GetMeter

func (r *Reporter) GetMeter() metric.Meter

func (*Reporter) Shutdown

func (r *Reporter) Shutdown(ctx context.Context) error

Jump to

Keyboard shortcuts

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