Install SDK
Prerequisite You should have Python
v3.10 or higher installed.Setup logger
There are two ways you can initialize the loggerUsing .env variables
Using .env variables
Set the following environment variables, all of them are required.And then initialize the logger with:
Initializing at runtime
Initializing at runtime
You can also pass the configuration values at runtime
python
trace_id for each n number of scripts, you can set a default value in .env file and override by setting the same at runtime.
Send logs
Your logger is now ready to send logs.python
Optional Configuration
By default, the logging via sdk is synchronous and best-effort with retries. You can configure retries and delays but is optional.Retry
Retry
Add these in addition to the required env variables
Delay (exponential backoff)
Delay (exponential backoff)
Add these in addition to the required env variables