OpenTelemetry Metrics over HTTP Exporter
This library allows to export data to the OpenTelemetry Collector using the OpenTelemetry Protocol using HTTP.
Installation
pip install sb-opentelemetry-extension-exporter-otlp-proto-http
from opentelemetry import metrics
from opentelemetry.sdk.resources import SERVICE_NAME, Resource
from opentelemetry.sdk.metrics import MeterProvider
from opentelemetry.sdk.metrics.export import PeriodicExportingMetricReader
from opentelemetry.extension.exporter.otlp.proto.http.metric_exporter import OTLPMetricExporter
resource = Resource(attributes={
SERVICE_NAME: "service",
})
metric_reader = PeriodicExportingMetricReader(OTLPMetricExporter())
provider = MeterProvider(resource=resource, metric_readers=[metric_reader])
# Sets the global default meter provider
metrics.set_meter_provider(provider)
References
Metadata
Release files for sb-opentelemetry-extension-exporter-otlp-proto-http 1.12.2
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 | |
|---|---|---|---|---|
| sb-opentelemetry-extension-exporter-otlp-proto-http-1.12.2.tar.gz | 18.8 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| sb_opentelemetry_extension_exporter_otlp_proto_http-1.12.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 36.4 kB
Release files / sb-opentelemetry-extension-exporter-otlp-proto-http-1.12.2.tar.gz
| Download URL | sb-opentelemetry-extension-exporter-otlp-proto-http-1.12.2.tar.gz |
|---|---|
| Size | 18.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
38d30fd77cf17932e0066553356167b9efb8c24a570a677b8c0ef6484398bab4
|
|
BLAKE2b-256 checksum How to use checksums |
463103307c6c3f0837d58c47fd5073d1dd80e1e8139e402ef199e93db51dd052
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.10.7
|
Release files / sb_opentelemetry_extension_exporter_otlp_proto_http-1.12.2-py3-none-any.whl
| Download URL | sb_opentelemetry_extension_exporter_otlp_proto_http-1.12.2-py3-none-any.whl |
|---|---|
| Size | 17.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b1ba8648a59c68586e16050bdb99697a55e3adab26cabfb70abc2c74890ea50a
|
|
BLAKE2b-256 checksum How to use checksums |
cd762451c91a66a82de5e9237e6816fb48164f88c8194c5c29ecbead974bdf60
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.10.7
|
Security for sb-opentelemetry-extension-exporter-otlp-proto-http 1.12.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.