tracing

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Feb 29, 2024 License: MPL-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Tracer

type Tracer interface {
	// StartMeasurements must retrieve required information from the current
	// application context and initialize any internal information that will
	// be used as metrics for it.
	StartMeasurements(ctx context.Context, serviceType string) (interface{}, error)

	// ComputeMetrics receives an updated context and data returned by the
	// StartMeasurements method to compute the current application metrics.
	ComputeMetrics(ctx context.Context, serviceType string, data interface{}) error
}

Tracer is an interface that a tracing feature plugin should implement to be used by all internal supported services.

Jump to

Keyboard shortcuts

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