Skip to main content

Telemetry SDK for EGIntegrations client engines

Project description

egi-telemetry (Python)

Early scaffold for the EGIntegrations telemetry SDK. Goals:

  • Minimal configuration via env vars (ENGINE_ID, ENGINE_SKU, EGI_TELEMETRY_URL).
  • FastAPI middleware that records request duration + status codes.
  • Background heartbeat task that publishes uptime and module toggles to Control Center.
  • CLI helper (egi-telemetry init) that writes .egi/telemetry.toml and verifies connectivity.

Quickstart

cd sdk/python
pip install -e .[fastapi]
egi-telemetry init --engine acme-prod.hello-engine --sku 1.0.0.API.DK.20251104 \
  --url https://control-center.egintegrations.com/api/ingest/telemetry

In your FastAPI app:

from fastapi import FastAPI
from egi_telemetry.fastapi_middleware import TelemetryMiddleware, install_heartbeat

app = FastAPI()
app.add_middleware(TelemetryMiddleware)
install_heartbeat(app)

Status

This is a scaffold—wire format and auth still subject to change once Control Center ingest endpoints solidify.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

egi_telemetry-0.1.0.tar.gz (3.2 kB view details)

Uploaded Source

Built Distribution

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

egi_telemetry-0.1.0-py3-none-any.whl (4.8 kB view details)

Uploaded Python 3

File details

Details for the file egi_telemetry-0.1.0.tar.gz.

File metadata

  • Download URL: egi_telemetry-0.1.0.tar.gz
  • Upload date:
  • Size: 3.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.12

File hashes

Hashes for egi_telemetry-0.1.0.tar.gz
Algorithm Hash digest
SHA256 5602c7c45a4ae5c15f5e816c007809c9cbaa10ecbc37d309a8fdd9e202895cd9
MD5 cf4dfa322e176f95adae047bd0aede2e
BLAKE2b-256 cc51cad84ee0fadef34a8bef695f8212ec727c3e8e4e9b84e8f77babdbef2450

See more details on using hashes here.

File details

Details for the file egi_telemetry-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: egi_telemetry-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 4.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.12

File hashes

Hashes for egi_telemetry-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 973a4338d1e74f434795c376218324a39f4a2bffceaefad8c2f627a641f1979c
MD5 1a7779facac549959be5421ca9ccde64
BLAKE2b-256 2c653b50d204226f1139b2a3d1306ede779e8239be37ce3450110622970cd627

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page