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.
Click to show internal directories.
Click to hide internal directories.