tracing

package
v0.19.0 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2024 License: MPL-2.0 Imports: 14 Imported by: 0

Documentation

Overview

Package tracing package

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewProvider

func NewProvider(ctx context.Context, input *NewProviderInput) (func(context.Context) error, error)

NewProvider initializes the global/default trace provider.

func RecordError

func RecordError(span trace.Span, err error, format string, args ...any)

RecordError is a convenience function for recording an error and setting span status.

Types

type NewProviderInput

type NewProviderInput struct {
	Type    string
	Host    string
	Version string
	Port    int
	Enabled bool
}

NewProviderInput holds fields to create a new provider.

Jump to

Keyboard shortcuts

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