svc

package
v1.9.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Attrs added in v1.9.0

type Attrs struct {
	// Instance uniquely identifies a service instance. It is not exported
	// in the metrics or traces, but it is used to compose the Instance
	UID UID

	SDKLanguage InstrumentableType

	Metadata map[attr.Name]string

	// ProcPID is the PID of the instrumented process as seen by Beyla's /proc filesystem.
	// It is stored here at process discovery time, because it might differ form the
	// UserPID and HostPID fields of the request.PidInfo struct.
	ProcPID int32

	// HostName running the process. It will default to the Beyla host and will be overridden
	// by other metadata if available (e.g., Pod Name, Node Name, etc...)
	HostName string

	EnvVars map[string]string
	// contains filtered or unexported fields
}

Attrs stores the metadata attributes of a service/resource

func (*Attrs) AutoName added in v1.9.0

func (i *Attrs) AutoName() bool

func (*Attrs) ExportsOTelMetrics added in v1.9.0

func (i *Attrs) ExportsOTelMetrics() bool

func (*Attrs) ExportsOTelTraces added in v1.9.0

func (i *Attrs) ExportsOTelTraces() bool

func (*Attrs) GetUID added in v1.9.0

func (i *Attrs) GetUID() UID

func (*Attrs) Job added in v1.9.0

func (i *Attrs) Job() string

func (*Attrs) SetAutoName added in v1.9.0

func (i *Attrs) SetAutoName()

func (*Attrs) SetExportsOTelMetrics added in v1.9.0

func (i *Attrs) SetExportsOTelMetrics()

func (*Attrs) SetExportsOTelTraces added in v1.9.0

func (i *Attrs) SetExportsOTelTraces()

func (*Attrs) String added in v1.9.0

func (i *Attrs) String() string

type InstrumentableType added in v0.3.1

type InstrumentableType int
const (
	InstrumentableGolang InstrumentableType = iota + 1
	InstrumentableJava
	InstrumentableDotnet
	InstrumentablePython
	InstrumentableRuby
	InstrumentableNodejs
	InstrumentableRust
	InstrumentableGeneric
	InstrumentablePHP
)

func (InstrumentableType) String added in v0.3.1

func (it InstrumentableType) String() string

type UID added in v1.2.0

type UID struct {
	Name      string
	Namespace string
	Instance  string
}

UID uniquely identifies a service instance across the whole system according to the OpenTelemetry specification: (name, namespace, instance)

Jump to

Keyboard shortcuts

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