telemetry

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2024 License: AGPL-3.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewProxyServer

func NewProxyServer(logger *slog.Logger, reporter Reporter) (string, http.Handler)

func StripS3EndpointURL added in v0.1.1

func StripS3EndpointURL(endpointURL string) (string, error)

StripS3EndpointURL removes user identifiable information from an S3 endpoint URL.

Types

type PanicReporter

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

PanicReporter reports crashes to our telemetry server.

func NewPanicReporter

func NewPanicReporter(logger *slog.Logger, reporter Reporter) *PanicReporter

func (*PanicReporter) OnPanic

func (r *PanicReporter) OnPanic(c echo.Context, reportedError error, reportedStack []byte) error

type ProxyServer

type ProxyServer struct {
	http.Handler
	// contains filtered or unexported fields
}

ProxyServer proxies telemetry events from the browser.

type RemoteReporter

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

func (*RemoteReporter) Close

func (r *RemoteReporter) Close() error

func (*RemoteReporter) ReportEvent

func (r *RemoteReporter) ReportEvent(event *v1alpha1.TelemetryEvent)

func (*RemoteReporter) ReportStart added in v0.1.1

func (r *RemoteReporter) ReportStart(ctx context.Context, endpointURL string) error

type Reporter

type Reporter interface {
	io.Closer
	ReportStart(ctx context.Context, endpointURL string) error
	ReportEvent(event *v1alpha1.TelemetryEvent)
}

func NewRemoteReporter

func NewRemoteReporter(ctx context.Context, logger *slog.Logger, httpClient connect.HTTPClient, baseURL string) Reporter

Jump to

Keyboard shortcuts

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