tracker

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2025 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 Tracker

type Tracker interface {
	// Generate is responsible for creating a new unique tracker ID.
	Generate() string

	// Add adds a tracker ID into the context and return a new one, updated.
	Add(ctx context.Context, id string) context.Context

	// Retrieve tries to retrieve the tracker ID from the current context and
	// return it.
	Retrieve(ctx context.Context) (string, bool)
}

Tracker is an interface that a plugin should implement to provide a way to add a unique tracing value in each call between services.

Jump to

Keyboard shortcuts

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