Skip to main content

Shared PolicyEngine observability runtime for logs, timings, metrics, and OpenTelemetry.

Project description

policyengine-observability

Shared PolicyEngine observability runtime for fail-open local timings, structured logs, OpenTelemetry traces, and OpenTelemetry metrics.

The package intentionally keeps framework support in adapters:

  • policyengine_observability.adapters.flask
  • policyengine_observability.adapters.fastapi
  • policyengine_observability.integrations.httpx

OpenTelemetry support is installed and enabled by default. Timing and structured logging run even without an OTLP collector; when no endpoint is configured, spans and metrics stay in-process while logs still receive trace context. Set OTEL_ENABLED=false to opt out. Configure OTEL_EXPORTER_OTLP_ENDPOINT to export traces and metrics.

Release workflow

Changes should include a Towncrier fragment in changelog.d/. Pull requests run changelog, Ruff, and coverage checks. Pushes to main run the same gates, then publish a versioning commit that builds the changelog and bumps pyproject.toml. That versioning commit publishes the package to PyPI through trusted publishing, creates a matching git tag, and opens a GitHub release.

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

policyengine_observability-1.0.0.tar.gz (84.1 kB view details)

Uploaded Source

Built Distribution

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

policyengine_observability-1.0.0-py3-none-any.whl (21.8 kB view details)

Uploaded Python 3

File details

Details for the file policyengine_observability-1.0.0.tar.gz.

File metadata

File hashes

Hashes for policyengine_observability-1.0.0.tar.gz
Algorithm Hash digest
SHA256 1fcafdf4585660e42a7336cdfb3be323c925136f69b2aff5e514b5e4a2b8c36f
MD5 a61d36b8fdf7c2353abe0757d626c432
BLAKE2b-256 9b50121780ac96b8e958ad32037144ceb89aa86b2d3ff1128d983ac32edd0c20

See more details on using hashes here.

Provenance

The following attestation bundles were made for policyengine_observability-1.0.0.tar.gz:

Publisher: push.yml on PolicyEngine/policyengine-observability

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

File details

Details for the file policyengine_observability-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for policyengine_observability-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 deb0cdd2792852972f1091177040c97c3ef727865d59489d127375e7498cda8e
MD5 0a837686ec4c4a7583d8b6420e31a7a9
BLAKE2b-256 4aaa28f4c112fb7b618ab61b028c64174283f8f9773d8f065c1a3c3e90e0135e

See more details on using hashes here.

Provenance

The following attestation bundles were made for policyengine_observability-1.0.0-py3-none-any.whl:

Publisher: push.yml on PolicyEngine/policyengine-observability

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