Installation
Run the following command to install Netra in your environmentOptional Dependencies
Netra SDK supports optional dependencies for enhanced functionality:Presidio for PII Detetcion
To use the PII detection features provided by Netra SDK:Initialization
API Key Configuration
To enable Netra SDK tracing, you need to provide an API key. You can obtain your API key from the Netra dashboard.
Environment Variable Configuration
Add the following environment variables to your application to enable Netra SDK tracing.Code Snippet
Follow the code below to initialize Netra in you application. By default, Netra will instrument all the installed packages.Netra.init() starts basic tracing, but to get useful insights, it is recommended to add custom annotations and manual instrumentation around important parts of your code.
Decorators for Easy Instrumentation
Netra SDK provides decorators like@workflow, @agent, and @task for easy instrumentation of your code. For more details and usage examples, please refer to the Decorators section in our documentation.