apm

package
v0.0.0-...-4bddf58 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package apm provides functionality to detect the type of APM instrumentation a service is using.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Instrumentation

type Instrumentation string

Instrumentation represents the state of APM instrumentation for a service.

const (
	// None means the service is not instrumented with APM.
	None Instrumentation = "none"
	// Provided means the service has been manually instrumented.
	Provided Instrumentation = "provided"
	// Injected means the service is using automatic APM injection.
	Injected Instrumentation = "injected"
)

func Detect

func Detect(logger *zap.Logger, args []string, envs []string, lang language.Language) Instrumentation

Detect attempts to detect the type of APM instrumentation for the given service.

Jump to

Keyboard shortcuts

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