1
Connect Application Logs
Select how you wish to connect your application logs to Trusys. This is crucial for data ingestion and analysis:
Folder Method
Folder Method
Input the folder path where your application logs are stored. Select the cloud provider (currently Azure and AWS are supported) and provide the necessary authentication details.
SDK Method
SDK Method
Select this option and choose an existing API key to save the configuration. This API key should be integrated into your application’s project to send logs directly to Trusys.This sets up observability and monitoring hooks automatically for your application.
- Python
- Typescript
1. Install the SDKInstall 2. Set Environment VariablesConfigure the required environment variables for exporting telemetry data:4. Initialize the SDKInitialize
openlit using pip:💡 Replace3. Import the SDKIn your application code, import theabc123with your actual API key. Refer to the documentation on “How to Create an API Key” for more details. 💡 Replacexyz123with your actual application ID of your application on trusys platform.
openlit SDK:openlit:OpenLIT Operator Integration
OpenLIT Operator Integration
Trusys supports integration with the OpenLIT Operator, enabling seamless AI observability for your Kubernetes-based applications. This integration allows you to automatically instrument your AI workloads and send telemetry data to Trusys for comprehensive evaluation and monitoring.The OpenLIT Operator provides automated instrumentation for AI applications running in Kubernetes environments. It enables zero-code observability by automatically injecting OpenTelemetry instrumentation into your pods, capturing traces and metrics from LLM calls, AI frameworks, and vector databases without requiring any code modifications.Replace
Getting Started
Prerequisites
- Kubernetes cluster with OpenLIT Operator installed
- Trusys account with monitoring enabled
- OTLP endpoint URL from your Trusys application settings
Configuration Steps
- Install OpenLIT Operator in your Kubernetes cluster using Helm
- Create AutoInstrumentation resource targeting your application pods using label selectors
- Configure OTLP endpoint to point to your Trusys monitoring endpoint
- Restart your pods to enable automatic instrumentation
- View traces in Trusys dashboard under the Traces section
Example Configuration
Configure your AutoInstrumentation resource to send data to Trusys:your-trusys-endpoint and YOUR_TRUSYS_API_KEY with your actual Trusys monitoring endpoint and API key.2
Define Collection Settings
Configure how Trusys collects data from your logs:
Sampling Frequency– Choose between percentage-wise or count-wise sampling.Enter Percentage or Count– Specify the exact percentage of logs to sample (e.g., 10% of logs) or the number of logs to sample (e.g., 100 logs).
By default, sampling is performed and evaluated every hour.
3
Define Functional Monitoring Metrics
Select functional metrics against which you want to monitor your production logs and define their respective expected values. These metrics assess the performance and accuracy of your AI application in real-time.4
Define Security Monitoring Metrics
Select vulnerable categories you wish to monitor for your application. This ensures continuous vigilance against potential security threats and compliance breaches.Upon successfully enabling monitoring, you will begin to see traces from your application appear in the Traces section, detailed evaluation results for each log, and a Monitoring Dashboard providing an overview of your application’s health, functional metric evaluations, and security evaluations.