Sentinel AI Python SDK
Official Python SDK for Sentinel AI — Autonomous AI Observability & Root Cause Analysis Platform.
Installation
pip install sentinelai-telemetry-sdk
Quickstart
from backend.sdk.client import SentinelAISDKClient
# 1. Initialize client with your Sentinel AI project API Key
client = SentinelAISDKClient(
api_key="stl_live_your_api_key_here",
service_name="checkout-service",
environment="production"
)
# 2. Capture logs, metrics, traces, exceptions, or deployment markers
client.capture_log("INFO", "Order processed successfully", attributes={"order_id": "9941"})
client.capture_metric("checkout_latency_ms", 124.5, metric_type="gauge")
# 3. Flush buffered telemetry batch to Sentinel AI backend
client.flush()
Supported Telemetry Signals
- Logs:
client.capture_log(level, message, attributes) - Exceptions:
client.capture_exception(exception, handled) - Traces:
client.capture_trace(trace_id, span_id, operation_name, duration_ms) - Metrics:
client.capture_metric(name, value, metric_type, unit, tags) - Deployments:
client.capture_deployment(version, commit_hash, commit_message, author)
License
MIT License
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file sentinelai_telemetry_sdk-1.0.0.tar.gz.
File metadata
- Download URL: sentinelai_telemetry_sdk-1.0.0.tar.gz
- Upload date:
- Size: 3.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.14.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b72f78f14b9647d70357b48afd3ba679c6db3960e1646591cd98a5d5afca04b5
|
|
| MD5 |
b76d1eb1a53822377fbd2481dea206b6
|
|
| BLAKE2b-256 |
e0ff5bae5638ea3e4c04df0e111bcbde6409a0bd62be9e97db3e017b8490ff27
|
File details
Details for the file sentinelai_telemetry_sdk-1.0.0-py3-none-any.whl.
File metadata
- Download URL: sentinelai_telemetry_sdk-1.0.0-py3-none-any.whl
- Upload date:
- Size: 3.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.14.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
561ef0c51baff9b271a4fa577162cda05501377a6c0dec608b8bec6eda192028
|
|
| MD5 |
c854576345a2a9efcc5150ba906b2753
|
|
| BLAKE2b-256 |
530ef61038a39aee5064745f394f6f254ed1112cda4d9719a9ece506cf38b377
|