otelutil

package
v0.22.2 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CupdateCacheStatusHit      string = "hit"
	CupdateCacheStatusMiss     string = "miss"
	CupdateCacheStatusError    string = "error"
	CupdateCacheStatusUncached string = "uncached"
)
View Source
const (
	CupdateWorkflowRunSpanName = "cupdate.workflow.run"
	CupdateWorkflowNameKey     = attribute.Key("cupdate.workflow.name")
)
View Source
const (
	CupdateWorkflowJobRunSpanName = "cupdate.workflow.job.run"
	CupdateWorkflowJobNameKey     = attribute.Key("cupdate.workflow.job.name")
)
View Source
const (
	CupdateWorkflowStepRunSpanName     = "cupdate.workflow.step.run"
	CupdateWorkflowStepPostRunSpanName = "cupdate.workflow.step.post-run"
	CupdateWorkflowStepNameKey         = attribute.Key("cupdate.workflow.step.name")
)
View Source
const CupdateCacheStatusKey = attribute.Key("cupdate.cache.status")
View Source
const (
	// DefaultScope is the scope used by Cupdate by default.
	DefaultScope string = "github.com/AlexGustafsson/cupdate"
)

Variables

This section is empty.

Functions

func CupdateCacheStatus

func CupdateCacheStatus(status string) attribute.KeyValue

CupdateWorkflowStepName returns an attribute for a cached entry's status.

func CupdateWorkflowJobName

func CupdateWorkflowJobName(name string) attribute.KeyValue

CupdateWorkflowStepName returns an attribute for a workflow job's name.

func CupdateWorkflowName

func CupdateWorkflowName(name string) attribute.KeyValue

CupdateWorkflowStepName returns an attribute for a workflow's name.

func CupdateWorkflowStepName

func CupdateWorkflowStepName(name string) attribute.KeyValue

CupdateWorkflowStepName returns an attribute for a workflow step's name.

func Init

func Init(ctx context.Context, target string, insecure bool) (func(context.Context) error, error)

Init initializes Open Telemetry. Returns a shutdown function to call before exiting.

Types

This section is empty.

Jump to

Keyboard shortcuts

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