in elastictransport/instrumentation.go [165:171]
func (i ElasticsearchOpenTelemetry) RecordError(ctx context.Context, err error) {
span := trace.SpanFromContext(ctx)
if span.IsRecording() {
span.SetStatus(codes.Error, "an error happened while executing a request")
span.RecordError(err)
}
}