Options
Example — production
Example — offline/test
Sampling
Static fraction:Flush & shutdown
flush() before returning a response in serverless/Edge functions. Call shutdown() on SIGTERM in long-lived servers.Every option you can pass to the TruLayer constructor.
flush() before returning a response in serverless/Edge functions. Call shutdown() on SIGTERM in long-lived servers.