MCPcopy Index your code
hub / github.com/NdoleStudio/httpsms / WrapErrorSpan

Method WrapErrorSpan

api/pkg/telemetry/otel_tracer.go:61–70  ·  view source on GitHub ↗
(span trace.Span, err error)

Source from the content-addressed store, hash-verified

59}
60
61func (tracer *otelTracer) WrapErrorSpan(span trace.Span, err error) error {
62 if err == nil {
63 return nil
64 }
65
66 span.RecordError(err)
67 span.SetStatus(codes.Error, strings.Split(err.Error(), "\n")[0])
68
69 return err
70}
71
72func getName(name ...string) string {
73 if len(name) > 0 {

Callers

nothing calls this directly

Calls 1

ErrorMethod · 0.65

Tested by

no test coverage detected