config

package
v0.0.0-...-561fc3e Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package config provides helpers for USM configuration

Index

Constants

This section is empty.

Variables

View Source
var ErrNotSupported = errors.New("Universal Service Monitoring (USM) is not supported")

ErrNotSupported is the error returned if USM is not supported on this platform

View Source
var MinimumKernelVersion kernel.Version

MinimumKernelVersion indicates the minimum kernel version required for HTTP monitoring

Functions

func CheckUSMSupported

func CheckUSMSupported(cfg *config.Config) error

CheckUSMSupported returns an error if USM is not supported on this platform. Callers can check `errors.Is(err, ErrNotSupported)` to verify if USM is supported

func IsUSMSupportedAndEnabled

func IsUSMSupportedAndEnabled(config *config.Config) bool

IsUSMSupportedAndEnabled returns true if USM is supported and enabled

func NeedProcessMonitor

func NeedProcessMonitor(config *config.Config) bool

NeedProcessMonitor returns true if the process monitor is needed for the given configuration

func TLSSupported

func TLSSupported(c *config.Config) bool

TLSSupported returns true if HTTPs monitoring is supported on the current OS. We only support ARM with kernel >= 5.5.0 and with runtime compilation enabled

Types

This section is empty.

Jump to

Keyboard shortcuts

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