processtags

package
v2.10.0-dev Latest Latest
Warning

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

Go to latest
Published: May 12, 2026 License: Apache-2.0, BSD-3-Clause, Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Reload

func Reload()

Reload initializes the configuration and process tags collection. This is useful for tests.

func SetServiceNameTag added in v2.9.0

func SetServiceNameTag(name string, isUserDefined bool)

SetServiceNameTag sets the appropriate process tag for the global service name. svc.user and svc.auto are mutually exclusive: calling this function removes the previously set tag before adding the new one. If isUserDefined is true, sets svc.user:true; otherwise sets svc.auto:<name>.

Types

type ProcessTags

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

func GlobalTags

func GlobalTags() *ProcessTags

GlobalTags returns the global process tags.

func (*ProcessTags) Slice

func (p *ProcessTags) Slice() []string

Slice returns the string slice representation of the process tags.

func (*ProcessTags) String

func (p *ProcessTags) String() string

String returns the string representation of the process tags.

Jump to

Keyboard shortcuts

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