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 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 service.name, 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.
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.
Release files for cloudwatch-plugin-otel 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| cloudwatch_plugin_otel-0.1.0.tar.gz | 19.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| cloudwatch_plugin_otel-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 33.7 kB
Release files / cloudwatch_plugin_otel-0.1.0.tar.gz
| Download URL | cloudwatch_plugin_otel-0.1.0.tar.gz |
|---|---|
| Size | 19.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f40a182f31fbeccd21f850ef14b489074e48f43796ba59673c60dacdaa57ffa1
|
|
BLAKE2b-256 checksum How to use checksums |
3b86ab2f4cd4c0e0ea135ce8a9fc2af73ab6c7b96d5513c42112fc5ac8848778
|
| 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 Aug 15, 2026.
Transparency logRelease files / cloudwatch_plugin_otel-0.1.0-py3-none-any.whl
| Download URL | cloudwatch_plugin_otel-0.1.0-py3-none-any.whl |
|---|---|
| Size | 14.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e9ca69a429fe0d041c1031b8e457b9939bc9792a47ed7a3ca7fc0c1640dd8b6f
|
|
BLAKE2b-256 checksum How to use checksums |
aefcd8780c62c30ea2f86df1af83c7a63ec760a96af398f4b145daed93b37643
|
| 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 Aug 15, 2026.
Transparency log