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 ¶
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 ¶
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.
Click to show internal directories.
Click to hide internal directories.