svc

package
v1.8.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	InstrumentableGolang = InstrumentableType(iota)
	InstrumentableJava
	InstrumentableDotnet
	InstrumentablePython
	InstrumentableRuby
	InstrumentableNodejs
	InstrumentableRust
	InstrumentableGeneric
	InstrumentablePHP
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ID

type ID struct {
	// UID might coincide with other fields (usually, Instance), but UID
	// can't be overriden by the user, so it's the only field that can be
	// used for internal differentiation of the users.
	// UID is not exported in the metrics or traces.
	UID UID

	Name string
	// AutoName is true if the Name has been automatically set by Beyla (e.g. executable name when
	// the Name is empty). This will allow later refinement of the Name value (e.g. to override it
	// again with Kubernetes metadata).
	Namespace   string
	SDKLanguage InstrumentableType
	Instance    string

	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
	// contains filtered or unexported fields
}

ID stores the metadata attributes of a service/resource TODO: rename to svc.Attributes

func (*ID) AutoName added in v1.2.0

func (i *ID) AutoName() bool

func (*ID) ExportsOTelMetrics added in v1.8.0

func (i *ID) ExportsOTelMetrics() bool

func (*ID) ExportsOTelTraces added in v1.8.0

func (i *ID) ExportsOTelTraces() bool

func (*ID) GetUID added in v1.7.0

func (i *ID) GetUID() UID

func (*ID) SetAutoName added in v1.8.0

func (i *ID) SetAutoName()

func (*ID) SetExportsOTelMetrics added in v1.8.0

func (i *ID) SetExportsOTelMetrics()

func (*ID) SetExportsOTelTraces added in v1.8.0

func (i *ID) SetExportsOTelTraces()

func (*ID) String

func (i *ID) String() string

type InstrumentableType added in v0.3.1

type InstrumentableType int

func (InstrumentableType) String added in v0.3.1

func (it InstrumentableType) String() string

type UID added in v1.2.0

type UID string

UID uniquely identifies a service instance

Jump to

Keyboard shortcuts

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