beyla

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package beyla provides public access to Beyla as a library. All the other subcomponents of Beyla are hidden.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config pipe.Config

Config as provided by the user to configure and run Beyla

func LoadConfig

func LoadConfig(reader io.Reader) (*Config, error)

LoadConfig loads and validates configuration. Configuration from multiple source is overridden in the following order (from less to most priority): 1 - Default configuration 2 - Contents of the provided file reader (nillable) 3 - Environment variables

type Instrumenter

type Instrumenter struct {
	// contains filtered or unexported fields
}

Instrumenter finds and instrument a service/process, and forwards the traces as configured by the user

func New

func New(config *Config) *Instrumenter

New Instrumenter, given a Config

func (*Instrumenter) FindAndInstrument

func (i *Instrumenter) FindAndInstrument(ctx context.Context) error

FindAndInstrument searches in background for any new executable matching the selection criteria.

func (*Instrumenter) ReadAndForward

func (i *Instrumenter) ReadAndForward(ctx context.Context) error

ReadAndForward keeps listening for traces in the BPF map, then reads, processes and forwards them

Jump to

Keyboard shortcuts

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