telemetry

package module
v0.8.3 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2025 License: MIT Imports: 4 Imported by: 3 modules, 2 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

telemetry

Go Reference

Configure logging, metrics & error reporting in our applications.

Install

go get github.com/altipla-consulting/telemetry

Contributing

You can make pull requests or create issues in GitHub. Any code you send should be formatted using make gofmt.

License

MIT License

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultReporter = defaultReporter{}

DefaultReporter merging all the methods in a single struct that can be passed to external interfaces.

Functions

func Configure

func Configure(opts ...Option)

func Flush added in v0.8.3

func Flush()

Flush any pending messages or events.

func ReportError

func ReportError(ctx context.Context, err error)

func ReportErrorRequest deprecated

func ReportErrorRequest(r *http.Request, err error)

Deprecated: Use ReportError() instead, the request is detected automatically.

func ReportPanic deprecated added in v0.2.0

func ReportPanic(ctx context.Context, err error)

Deprecated: Use ReportError() instead.

func ReportPanics added in v0.2.1

func ReportPanics(ctx context.Context)

ReportPanics report any panic that can be recovered if it happens. It should be called with defer before any code that should be protected.

Types

type Option

type Option func(settings *config.Settings)

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

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