Skip to main content

Options

Example — production

Example — offline/test

Or mock server:

Sampling

Static fraction:
Dynamic (evaluated per trace):
Sampling is applied at trace creation — a sampled trace always includes every one of its spans.

Flush & shutdown

Call flush() before returning a response in serverless/Edge functions. Call shutdown() on SIGTERM in long-lived servers.