cloudwatch-plugin-otel
Amazon CloudWatch plugin for OpenTelemetry.
Span metrics
The span metrics instrumentor registers a span processor that emits:
traces.span.metrics.calls, a counter (unit{call}) incremented once per ended span.traces.span.metrics.duration, a histogram of span duration in seconds.
Both metrics use the cloudwatch.plugin.otel.span_metrics instrumentation
scope. They include span.name, span.kind, status.code, and supported
HTTP, RPC, database, messaging, and error semantic-convention attributes when
those attributes are present on the span. service.name is carried by the
metric's resource (the host SDK's resource), not duplicated on each datapoint.
The instrumentor also wraps the active root sampler. A DROP decision becomes
RECORD_ONLY, allowing the span processor to derive metrics without changing
which spans are exported.
Usage
Installing this package registers SpanMetricsInstrumentor as an
opentelemetry_instrumentor entry point. It is loaded automatically when the
application runs with OpenTelemetry auto-instrumentation:
opentelemetry-instrument python app.py
It can also be enabled programmatically:
from plugins.opentelemetry.cloudwatch import SpanMetricsInstrumentor
SpanMetricsInstrumentor().instrument()
Pass tracer_provider or meter_provider to instrument() when using
application-managed providers:
SpanMetricsInstrumentor().instrument(
tracer_provider=tracer_provider,
meter_provider=meter_provider,
)
The connector binds its meter when it is created. Configure the global
MeterProvider, or pass meter_provider, before instrumenting so the derived
metrics are recorded.
License
This project is licensed under the Apache-2.0 License. See LICENSE.
Metadata
Release files for cloudwatch-plugin-otel 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| cloudwatch_plugin_otel-0.1.1.tar.gz | 22.8 kB | With provenance | Details for cloudwatch_plugin_otel-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| cloudwatch_plugin_otel-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for cloudwatch_plugin_otel-0.1.1-py3-none-any.whl |
Total release size: 38.7 kB
Release files / cloudwatch_plugin_otel-0.1.1.tar.gz
| Download URL | cloudwatch_plugin_otel-0.1.1.tar.gz |
|---|---|
| Size | 22.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
14e75835a2a9b0f1c4c46b94355061e527f5ce7b4af97f1b8154b2ef7e0ba171
|
|
BLAKE2b-256 checksum How to use checksums |
f13e80352d97cbaaccd4c027c07ee4cfd71f2cc268f6a586c4a8bcac429b89f3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
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 logRelease files / cloudwatch_plugin_otel-0.1.1-py3-none-any.whl
| Download URL | cloudwatch_plugin_otel-0.1.1-py3-none-any.whl |
|---|---|
| Size | 15.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a1c6f8ae3f13910c7830028ed825d54a7c437e17b8156ecd6d0ae3bca020e36e
|
|
BLAKE2b-256 checksum How to use checksums |
53302ace8c478cd91ba5852c6bda34c1c382a1f84b34ef47e223d72e835a9009
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
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 logSecurity for cloudwatch-plugin-otel 0.1.1
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.
Attestation for cloudwatch_plugin_otel-0.1.1.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 18, 2026.
Transparency logA 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.