Technicians in academia: If you do the lab work for a paper, are you a co-author or are you only mentioned in acknowledgements?

I know this can differ from group to group. What are your experiences there?