svc

package
v0.0.0-...-2d5ea0e Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Attrs

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

	ExportModes services.ExportModes
	// contains filtered or unexported fields
}

Attrs stores the metadata attributes of a service/resource

func (*Attrs) AutoName

func (i *Attrs) AutoName() bool

func (*Attrs) ExportsOTelMetrics

func (i *Attrs) ExportsOTelMetrics() bool

func (*Attrs) ExportsOTelMetricsSpan

func (i *Attrs) ExportsOTelMetricsSpan() bool

func (*Attrs) ExportsOTelTraces

func (i *Attrs) ExportsOTelTraces() bool

func (*Attrs) GetUID

func (i *Attrs) GetUID() UID

func (*Attrs) Job

func (i *Attrs) Job() string

func (*Attrs) SetAutoName

func (i *Attrs) SetAutoName()

func (*Attrs) SetExportsOTelMetrics

func (i *Attrs) SetExportsOTelMetrics()

func (*Attrs) SetExportsOTelMetricsSpan

func (i *Attrs) SetExportsOTelMetricsSpan()

func (*Attrs) SetExportsOTelTraces

func (i *Attrs) SetExportsOTelTraces()

func (*Attrs) String

func (i *Attrs) String() string

type InstrumentableType

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

func (InstrumentableType) String

func (it InstrumentableType) String() string

type ServiceNameNamespace

type ServiceNameNamespace struct {
	Name      string
	Namespace string
}

type UID

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)

func (*UID) NameNamespace

func (uid *UID) NameNamespace() ServiceNameNamespace

Jump to

Keyboard shortcuts

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