func CaptureError()

in pkg/tracing/error.go [27:34]


func CaptureError(ctx context.Context, err error) error {
	if ctx != nil {
		if capturedErr := apm.CaptureError(ctx, err); capturedErr != nil {
			capturedErr.Send()
		}
	}
	return err // dropping the apm wrapper here
}