tracing

package
v0.46.0 Latest Latest
Warning

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

Go to latest
Published: May 6, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SpanWaitDuration    = "waitDuration"
	SpanExecuteDuration = "executeDuration"
)
View Source
const AttrNamespace = "delivery.tekton.dev"
View Source
const MaxResultMessageLen = 1024
View Source
const TracerName = "pipelines-as-code"

Variables

View Source
var (
	NamespaceKey   = attribute.Key("namespace")
	PipelineRunKey = attribute.Key("pipelinerun")

	DeliveryApplicationKey    = attribute.Key(AttrNamespace + ".application")
	DeliveryComponentKey      = attribute.Key(AttrNamespace + ".component")
	DeliveryResultMessageKey  = attribute.Key(AttrNamespace + ".result_message")
	DeliveryPipelineRunUIDKey = attribute.Key(AttrNamespace + ".pipelinerun_uid")

	PACEventTypeKey = attribute.Key(pipelinesascode.GroupName + ".event_type")
)

See docs/content/docs/operations/tracing.md for the full attribute schema.

Functions

func ResultEnum

func ResultEnum(cond *apis.Condition) attribute.KeyValue

ResultEnum maps a PipelineRun Succeeded condition to a semconv cicd.pipeline.result enum value. Unknown reasons fall back to CICDPipelineResultError so that forward-compatible Tekton reasons are never silently dropped.

func TruncateResultMessage

func TruncateResultMessage(msg string) string

TruncateResultMessage caps msg at MaxResultMessageLen bytes, appending a marker when truncation occurs. The cut is walked back to a UTF-8 rune boundary so the result is always valid UTF-8.

Types

This section is empty.

Jump to

Keyboard shortcuts

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