resourcex

package module
v0.0.0-...-763f2c4 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2024 License: MIT Imports: 4 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewResource

func NewResource(ctx context.Context, svc *Service, res ResourceFlag, attrs ...attribute.KeyValue) *resource.Resource

Types

type ResourceFlag

type ResourceFlag int
const (
	ResEnv ResourceFlag = 1 << iota
	ResHost
	ResTelemetrySDK
	ResOS
	ResProcess
	ResContainer
)

type Service

type Service struct {
	Name       string
	Namespace  string
	InstanceID string
	Version    string
}

func (*Service) Attributes

func (svc *Service) Attributes() []attribute.KeyValue

Jump to

Keyboard shortcuts

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