Very often I feel very uncomfortable in dealing with integrals, since I am wondering whether the given integral is meant as a (improper) Riemann integral or Lebesgue integral?
For instance, the Gamma function is often defined by the Euler integral
$$\Gamma(z)=\int\limits_{0}^{\infty} t^{z-1}e^{-t}dt $$
but it is not stated whether one should consider the integral as a Lebesgue integral or Riemann integral. It feels more comfortable to deal with Lebesgue integration, since one can use then Lebesgue theorem etc. Is there a rule of thumb how to decide if it is Riemann or Lebesgue integral?
Best wishes
Whichever one exists. When both Riemann and Lebesgue integrals exist, they give the same value so it doesn't matter.
What you're asking is akin to "when someone write $-5$ should I interpret this as the real number $-5$ or the complex number $-5+0i$?". It's really the same thing, unless you have a specific reason to use one number over the other. For example if you want to say $0>-5$ then you're discussing real numbers. If you want to say $\sqrt{-5}$ then you're discussing complex numbers. Riemann/Lebesgue integration is the same way. Want to use the fundamental theorem of calculus? Then use Riemann integration. Want to use Lebesgue's dominated convergence? Then use Lebesgue.