Skip to main content

This library provides components necessary to send OpenTelemetry metrics to a StatsD backend.

Installation

pip install sb-opentelemetry-sdk-extension-statsd

Usage

Install the OpenTelemetry SDK package.

pip install opentelemetry-sdk

Next, use the provided StatsdMeterProvider instead of the default MeterProvider.

from statsd import StatsdClient

from opentelemetry import metrics
from opentelemetry.sdk.resources import Resource
from opentelemetry.sdk.extension.statsd.metrics import StatsdMeterProvider

statsd = StatsdClient(max_buffer_size=0)
provider = StatsdMeterProvider(statsd=statsd, resource=Resource(attributes={
    "service.name": "service-Name",
}))
metrics.set_meter_provider(provider)

References

Metadata

Release files for sb-opentelemetry-sdk-extension-statsd 1.0.2

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

Source distribution (sdist)

Source distribution for sb-opentelemetry-sdk-extension-statsd 1.0.2
File Size Uploaded Provenance
sb_opentelemetry_sdk_extension_statsd-1.0.2.tar.gz 3.3 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for sb-opentelemetry-sdk-extension-statsd 1.0.2
File Interpreter ABI Platform
sb_opentelemetry_sdk_extension_statsd-1.0.2-py3-none-any.whl Python 3 none any Details

Total release size: 7.8 kB

Release files / sb_opentelemetry_sdk_extension_statsd-1.0.2.tar.gz

Download URL sb_opentelemetry_sdk_extension_statsd-1.0.2.tar.gz
Size 3.3 kB
Tags Source
SHA-256 checksum
How to use checksums
a894f8bb77a0e6f18c4734a1310e135c71c2152f416a002d733e3fdbcb62db7e
BLAKE2b-256 checksum
How to use checksums
93d9168682620c7b48f912b449bafe99e157d0a81e75753eb46bdcb137b7cc5d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.9.5

Release files / sb_opentelemetry_sdk_extension_statsd-1.0.2-py3-none-any.whl

Download URL sb_opentelemetry_sdk_extension_statsd-1.0.2-py3-none-any.whl
Size 4.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
14f35adbcf3b66ff223724b8335681208f495124f5d8465019dfa9c082dd7d37
BLAKE2b-256 checksum
How to use checksums
943f35d6f85451ce5fd53e2aa822c51119be7cd7872eef1feede6111f69e7e80
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.9.5

Security for sb-opentelemetry-sdk-extension-statsd 1.0.2

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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.

Release history Release notifications | RSS feed

This release

1.0.2 This release

2 release files No provenance

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