MCPcopy Index your code
hub / github.com/containerd/containerd / RecordError

Method RecordError

pkg/tracing/tracing.go:95–97  ·  view source on GitHub ↗

RecordError will record err as an exception span event for this span

(err error, options ...trace.EventOption)

Source from the content-addressed store, hash-verified

93
94// RecordError will record err as an exception span event for this span
95func (s *Span) RecordError(err error, options ...trace.EventOption) {
96 s.otelSpan.RecordError(err, options...)
97}
98
99// SetStatus sets the status of the current span.
100// If an error is encountered, it records the error and sets span status to Error.

Callers 14

SetStatusMethod · 0.80
RunPodSandboxMethod · 0.80
StopPodSandboxMethod · 0.80
RemovePodSandboxMethod · 0.80
CreateContainerMethod · 0.80
StartContainerMethod · 0.80
StopContainerMethod · 0.80
RemoveContainerMethod · 0.80
ExecSyncMethod · 0.80
ExecMethod · 0.80
AttachMethod · 0.80
PullImageMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected