Skip to main content
Pre-release

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

argus-obs-sdk

SDK de observabilidad de Argus para aplicaciones.

pip install argus-obs-sdk
import argus

El nombre de instalación y el de importación no coinciden, y conviene decirlo antes que nada. Se instala argus-obs-sdk y se importa argus.

El prefijo -obs- es deliberado: elegimos nombres que no existían en PyPI para que un fallo del índice no acabara instalando el paquete de un desconocido con el nombre que esperábamos. El módulo conservó el nombre corto porque es lo que se escribe cien veces.

Va arriba porque es lo primero con lo que tropieza quien lo adopta.

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.

Metadata

Release files for argus-obs-sdk 1.0.0a9

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.0a9
File Size Uploaded Provenance Actions
argus_obs_sdk-1.0.0a9.tar.gz 41.7 kB With provenance Details for argus_obs_sdk-1.0.0a9.tar.gz

Built distribution (wheel)

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

Total release size: 75.8 kB

Release files / argus_obs_sdk-1.0.0a9.tar.gz

Download URL argus_obs_sdk-1.0.0a9.tar.gz
Size 41.7 kB
Tags Source
SHA-256 checksum
How to use checksums
9a67b923badb56ee32445be22d654039b454c168212574246e3657f3992fa1e1
BLAKE2b-256 checksum
How to use checksums
3f7601408e968e69a4765410f4a3b608fa523f63faffd6d7a5eae076195086a7
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 28, 2026.

Transparency log

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

Download URL argus_obs_sdk-1.0.0a9-py3-none-any.whl
Size 34.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0e250b9ff114dd907e3ed01df6be65739d29e5440b23e5a81533564f5b0e5663
BLAKE2b-256 checksum
How to use checksums
dc7ada604f9594d8b520a94d01b9b363ccae6e81cbff4ae3e1f4d0239c4a0103
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 28, 2026.

Transparency log

Security for argus-obs-sdk 1.0.0a9

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for argus_obs_sdk-1.0.0a9.tar.gz

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 28, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release
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