Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

argus-sdk

SDK de observabilidad de Argus para aplicaciones.

import argus
argus.init()

Eso configura resource, trazas, métricas, logs, propagadores y todas las auto-instrumentaciones disponibles, leyendo la configuración del entorno.

Para servicios ASGI, una línea más:

app.add_middleware(argus.middleware(app).__class__)   # o ASGIMiddleware directo

Si escribes una librería, no uses este paquete

Usa argus-semconv, que depende solo de opentelemetry-api. Una librería que depende del SDK impone en silencio su versión del SDK y sus opiniones sobre exportadores a todo el que dependa de ella.

El contrato

Verificado por tests en tests/test_contract.py, no por buenas intenciones:

  1. Nunca tumba la aplicación. Si el Collector está caído, la app pierde telemetría, nunca latencia ni memoria.
  2. Idempotente. init() dos veces es no-op la segunda.
  3. No-op sin configurar. Los decoradores funcionan con coste cero.
  4. Cero configuración en el caso normal. Todo viene del entorno.
  5. Superficie pública mínima, fijada por test.

Variables de entorno

El contrato es de entorno, no de API de Python: un componente Go y uno Python se configuran copiando el mismo bloque.

Variable Significado Por defecto
ARGUS_SERVICE El sub-componente (service.name) unknown-service
ARGUS_NAMESPACE La aplicación (service.namespace) = servicio
ARGUS_ROLE api/worker/scheduler/cli/model-server/frontend api
ARGUS_VERSION Versión del componente —
ARGUS_ENVIRONMENT mac-dev, imac, server-1, ci local
ARGUS_ENDPOINT Collector agente local http://localhost:4317
ARGUS_PROTOCOL grpc | http/protobuf grpc
ARGUS_PROPAGATE never | trusted | always never
ARGUS_TRUSTED_CIDRS CIDRs de confianza, separados por coma —
ARGUS_CAPTURE_CONTENT Capturar prompts y respuestas false
ARGUS_SLO_MS Umbral de latencia del componente 0 (sin umbral)
ARGUS_DISABLED Apagar toda la telemetría false

Las estándar de OpenTelemetry (OTEL_SERVICE_NAME, OTEL_EXPORTER_OTLP_ENDPOINT, OTEL_RESOURCE_ATTRIBUTES) también se respetan, para que una app que ya tiene OTel migre sin tocar código.

Por qué localhost y no el plano central

Las aplicaciones exportan siempre al Collector agente de su propia máquina. Nunca conocen la dirección del plano central. Eso da tres propiedades:

  • Mover el plano central de una máquina a otra no toca ni una aplicación.
  • Si el central está suspendido, las apps no se enteran ni se ralentizan: el agente local escribe a disco y envía cuando vuelve la conexión.
  • Añadir una máquina es desplegar un agente, no reconfigurar apps.

Release files for argus-obs-sdk 1.0.0a3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for argus-obs-sdk 1.0.0a3
File Size Uploaded
argus_obs_sdk-1.0.0a3.tar.gz 25.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for argus-obs-sdk 1.0.0a3
File Interpreter ABI Platform
argus_obs_sdk-1.0.0a3-py3-none-any.whl Python 3 none any Details

Total release size: 48.7 kB

Release files / argus_obs_sdk-1.0.0a3.tar.gz

Download URL argus_obs_sdk-1.0.0a3.tar.gz
Size 25.0 kB
Tags Source
SHA-256 checksum
How to use checksums
228dc797b0d9c6ff26b7b10acadd57fb469c300a12d774aa06d5c8700023d036
BLAKE2b-256 checksum
How to use checksums
ee93ad1503573a59d0d59b5e25ea60f48be73d0cd6827158babf6ab129993601
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 18, 2026.

Transparency log

Release files / argus_obs_sdk-1.0.0a3-py3-none-any.whl

Download URL argus_obs_sdk-1.0.0a3-py3-none-any.whl
Size 23.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c49f34b4719ae827c6219728f507315bc662339656995e80862f938354c2dcb0
BLAKE2b-256 checksum
How to use checksums
d4b9abd0405112cfbece45757dcb672e82c51de1cf9194d899d98a9162f39d48
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 18, 2026.

Transparency log
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