Documentation
¶
Overview ¶
Package usm provides functionality to detect the most appropriate service name for a process.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DetectionContext ¶
type DetectionContext struct {
// contains filtered or unexported fields
}
DetectionContext allows to detect ServiceMetadata.
func NewDetectionContext ¶
func NewDetectionContext(logger *zap.Logger, args []string, envs []string, fs fs.SubFS) DetectionContext
NewDetectionContext initializes DetectionContext.
type ServiceMetadata ¶
ServiceMetadata holds information about a service.
func ExtractServiceMetadata ¶
func ExtractServiceMetadata(logger *zap.Logger, args []string, envs []string) (ServiceMetadata, bool)
ExtractServiceMetadata attempts to detect ServiceMetadata from the given process.
func NewServiceMetadata ¶
func NewServiceMetadata(name string, additional ...string) ServiceMetadata
NewServiceMetadata initializes ServiceMetadata.
func (ServiceMetadata) GetServiceKey ¶
func (s ServiceMetadata) GetServiceKey() string
GetServiceKey returns the key for the service.
Click to show internal directories.
Click to hide internal directories.