telemetry

package module
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: May 24, 2024 License: MIT Imports: 4 Imported by: 2

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 ReportError

func ReportError(ctx context.Context, err error)

func ReportErrorRequest

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

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.

func WithAdvancedReporterContext added in v0.7.0

func WithAdvancedReporterContext(ctx context.Context) context.Context

func WithAdvancedReporterRequest added in v0.7.0

func WithAdvancedReporterRequest(r *http.Request) *http.Request

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