Skip to main content

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

sentinelai_telemetry_sdk-1.0.0.tar.gz (3.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sentinelai_telemetry_sdk-1.0.0-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

File details

Details for the file sentinelai_telemetry_sdk-1.0.0.tar.gz.

File metadata

File hashes

Hashes for sentinelai_telemetry_sdk-1.0.0.tar.gz
Algorithm Hash digest
SHA256 b72f78f14b9647d70357b48afd3ba679c6db3960e1646591cd98a5d5afca04b5
MD5 b76d1eb1a53822377fbd2481dea206b6
BLAKE2b-256 e0ff5bae5638ea3e4c04df0e111bcbde6409a0bd62be9e97db3e017b8490ff27

See more details on using hashes here.

File details

Details for the file sentinelai_telemetry_sdk-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for sentinelai_telemetry_sdk-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 561ef0c51baff9b271a4fa577162cda05501377a6c0dec608b8bec6eda192028
MD5 c854576345a2a9efcc5150ba906b2753
BLAKE2b-256 530ef61038a39aee5064745f394f6f254ed1112cda4d9719a9ece506cf38b377

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page