Skip to main content

Progress Observability instrumentation for Python agents

Project description

Progress Observability Instrumentation (Python)

Zero-intrusion telemetry for AI agents and LLM apps. Built on Traceloop SDK and OpenTelemetry with a simple one-line init and optional decorators.

Installation

pip install progress-observability

Or from wheel file:

pip install progress_observability-x.y.z-py3-none-any.whl

Quick Start

from progress.observability import Observability, ObservabilityInstruments

# Initialize once at process start
Observability.instrument(
    app_name="my-app",
    api_key="<your-api-key>",
    # endpoint="https://collector.observability.progress.com:443"  # Optional: has default
)

Configuration

Common options (for Observability.instrument):

  • app_name - Application name for telemetry
  • endpoint - OpenTelemetry collector endpoint
  • api_key - Authentication key
  • debug - Enable debug logging
  • instruments / block_instruments - Control what gets traced via ObservabilityInstruments
  • trace_content - when set to False will stop sending LLM prompt/responses as part of the telemetry data
  • additional_tags - custom tags (see below)

Environment overrides (optional):

  • OBSERVABILITY_APP_NAME sets the application name (e.g. "my-app")
  • OBSERVABILITY_ENDPOINT sets a custom endpoint for collecting data (e.g. "https://collector.observability.progress.com:443")
  • OBSERVABILITY_API_KEY sets the authentication key to use when sending data
  • OBSERVABILITY_TRACE_CONTENT when set to false will stop sending LLM prompt/responses as part of the telemetry data

Auth headers are added automatically for HTTP(S) endpoints when api_key is provided.

Custom Tags

Tags are user-defined strings (max 200 characters each) attached to observations for filtering and grouping.

Global tags — applied to every span:

Observability.instrument(
    app_name="my-app",
    api_key="<your-api-key>",
    additional_tags=["production", "release:2.4.1"],
)

Scoped tags — applied to spans within a specific block via propagate_attributes:

from progress.observability import propagate_attributes

with propagate_attributes(tags=["tenant:acme", "experiment-v2"]):
    # All spans created here inherit these tags
    my_agent_function()

Nesting is supported — tags accumulate from outer to inner scopes.

Decorator tags — applied to a single decorated function:

from progress.observability import task

@task(tags=["cohort-a"])
def my_task():
    ...

Package Structure

src/progress/observability/
├── __init__.py                 # Package entry point
├── sdk.py                      # Main Observability SDK
├── decorators.py               # @task, @workflow, @agent, @tool decorators
├── constants.py                # Environment variables and constants
├── enums.py                    # ObservabilityInstruments enum
├── exceptions.py               # Custom exception types
├── genai_message_processor.py  # LLM span content normalization
├── helpers.py                  # Helper functions
├── model_fix_processor.py      # LLM span attribute repair
├── tags.py                     # Tag propagation span processor

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

progress_observability-1.4.3.tar.gz (163.2 kB view details)

Uploaded Source

Built Distribution

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

progress_observability-1.4.3-py3-none-any.whl (48.5 kB view details)

Uploaded Python 3

File details

Details for the file progress_observability-1.4.3.tar.gz.

File metadata

  • Download URL: progress_observability-1.4.3.tar.gz
  • Upload date:
  • Size: 163.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.13

File hashes

Hashes for progress_observability-1.4.3.tar.gz
Algorithm Hash digest
SHA256 9e9e5889f9df4dae6a7b8cc3106df0ea4192853607d3d9a278dde77f068e4d48
MD5 b2dad447eebf9da57f28f4eba9adf143
BLAKE2b-256 d5151f1ed680a2ff38fb2e485a6318c886b2c46397ba3ecd118f07cd85ce0a62

See more details on using hashes here.

Provenance

The following attestation bundles were made for progress_observability-1.4.3.tar.gz:

Publisher: publish-instrumentation-python.yaml on telerik/AgentClarity

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file progress_observability-1.4.3-py3-none-any.whl.

File metadata

File hashes

Hashes for progress_observability-1.4.3-py3-none-any.whl
Algorithm Hash digest
SHA256 4ecd1c0d234d058a42a6b1e9c2755e9b56093e2aca01cfb76cfacca034768094
MD5 0cc238cb85a1b9d8aabdc1e8d3ef5385
BLAKE2b-256 b75a6e164898a67f516feba8228ce1a787a596f625b4d53ed8574bb0f7b02e05

See more details on using hashes here.

Provenance

The following attestation bundles were made for progress_observability-1.4.3-py3-none-any.whl:

Publisher: publish-instrumentation-python.yaml on telerik/AgentClarity

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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