Panoptes SDK — structured logs with OpenTelemetry correlation
Project description
panoptes-sdk
Python SDK for sending structured logs and traces to Panoptes.
Installation
pip install panoptes-sdk
Usage
from panoptes import Panoptes, Logger
panoptes = Panoptes(
api_key="your-api-key",
endpoint="https://collector.panoptes.io",
asset="service/my-service",
)
logger = Logger(panoptes)
logger.info("Order created", order_id=123, user_id=456)
FastAPI integration
from panoptes.integrations.fastapi import PanoptesMiddleware
app.add_middleware(PanoptesMiddleware, panoptes=panoptes)
OpenTelemetry
# Use existing OTel setup automatically, or start one pointing to Panoptes:
panoptes.start_otel(service_name="my-service")
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
panoptes_sdk-0.1.0.tar.gz
(3.9 kB
view details)
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 panoptes_sdk-0.1.0.tar.gz.
File metadata
- Download URL: panoptes_sdk-0.1.0.tar.gz
- Upload date:
- Size: 3.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0c656643bf0f49289beba3aad2800ef6ce0ce4ed48e407b65741b2a969286ac7
|
|
| MD5 |
be8af422edb2baa15a90289bc0dfbe76
|
|
| BLAKE2b-256 |
7fddd10eb91b5d2f87904d6df7ad11033ae7fee4c76322078dedda5dedce726d
|
File details
Details for the file panoptes_sdk-0.1.0-py3-none-any.whl.
File metadata
- Download URL: panoptes_sdk-0.1.0-py3-none-any.whl
- Upload date:
- Size: 5.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7ef1b196f3c38220b1f9b6746942389ea854e64d8d806ff4c176e74b39510c78
|
|
| MD5 |
244f7116c1a19fa03f8729c1e5fa040e
|
|
| BLAKE2b-256 |
4a54601b1c5a6be2e528e85df94dcacc7f200cdc9b29f1bd77d019ea4f83b1a3
|