Skip to main content
Pre-release

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

cryptography-suite-opentelemetry

OpenTelemetry metrics and span events for cryptography-suite, the policy-driven envelope encryption SDK. Pre-release; not independently audited.

Install

python -m pip install "cryptography-suite-opentelemetry[otel]"

Use

from opentelemetry import metrics, trace

from cryptography_suite import Protector
from cryptography_suite.audit.chain import AuditChain
from cryptography_suite.audit.fanout import FanOutAuditSink
from cryptography_suite_opentelemetry import OpenTelemetryAuditSink

telemetry = OpenTelemetryAuditSink(
    metrics.get_meter("payments"),
    span_source=trace.get_current_span,  # optional span events
)
protector = Protector(
    ...,
    audit_sink=FanOutAuditSink(
        AuditChain(writer, signing_key, chain_id="prod.payments"), telemetry
    ),
)

You pass your Meter; the package does not import OpenTelemetry itself.

Signals

Signal Kind Attributes
cryptosuite.operations Counter of completed operations cryptosuite.operation, cryptosuite.outcome, cryptosuite.provider_id, error.type
cryptosuite.operation.duration Histogram, seconds the same
cryptosuite.<operation>.<outcome> Span event on the current span the same, plus cryptosuite.operation_id and cryptosuite.policy_id
  • Metric attributes are low-cardinality: no operation, event, key, or envelope identifiers.
  • Nothing secret is recorded: the sink sees only the allowlisted, redacted cs-audit/1 event fields.
  • FanOutAuditSink delivers each event to every sink even if one fails, so a metrics outage never costs a signed audit record.

Documentation

Metadata

Release files for cryptography-suite-opentelemetry 4.0.0b2

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

Source distribution (sdist)

Source distribution for cryptography-suite-opentelemetry 4.0.0b2
File Size Uploaded Provenance Actions
cryptography_suite_opentelemetry-4.0.0b2.tar.gz 3.8 kB With provenance Details for cryptography_suite_opentelemetry-4.0.0b2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for cryptography-suite-opentelemetry 4.0.0b2
File Interpreter ABI Platform Actions
cryptography_suite_opentelemetry-4.0.0b2-py3-none-any.whl Python 3 none any Details for cryptography_suite_opentelemetry-4.0.0b2-py3-none-any.whl

Total release size: 8.3 kB

Release files / cryptography_suite_opentelemetry-4.0.0b2.tar.gz

Download URL cryptography_suite_opentelemetry-4.0.0b2.tar.gz
Size 3.8 kB
Tags Source
SHA-256 checksum
How to use checksums
3943acbc73372aba224cf402420b0afe142054a2dabb80c2624c365d9eb7c837
BLAKE2b-256 checksum
How to use checksums
2f81a17fef6e9d54610f7b95ec137de1dc3a8286648925e0432d93fb19c7a126
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 30, 2026.

Transparency log

Release files / cryptography_suite_opentelemetry-4.0.0b2-py3-none-any.whl

Download URL cryptography_suite_opentelemetry-4.0.0b2-py3-none-any.whl
Size 4.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a9aa05f1988b7d5277877d422fc90417581bc34ebb5ff839625db193e9f215e6
BLAKE2b-256 checksum
How to use checksums
53533cba66803043c1cc90af76df9981b38b1bfa3ef649fe31ce3b977f1d030d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 30, 2026.

Transparency log

Security for cryptography-suite-opentelemetry 4.0.0b2

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 cryptography_suite_opentelemetry-4.0.0b2.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 Nov 30, 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.

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