apm

package
v0.0.0-...-d6003e4 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OpenTelemetry

type OpenTelemetry interface {
	// Start will start the OpenTelemetry to capture the trace from any request and collecting the metrics.
	Start(ctx context.Context) (err error)
	// Stop will stop the OpenTelemetry agent from capturing and collecting the traces/metrics.
	Stop(ctx context.Context) (err error)
}

OpenTelemetry is wrapper of OpenTelemetry object. It contains behavior to start and stop the agent from tracing and collecting metrics.

func GetOpenTelemetry

func GetOpenTelemetry() OpenTelemetry

GetOpenTelemetry returns object the implements the OpenTelemetry wrapper. It's done in singleton pattern and thread-safe. The object is instantiated once.

Jump to

Keyboard shortcuts

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