Skip to main content

OpenTelemetry Metrics over HTTP Exporter

pypi

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)

Source distribution for sb-opentelemetry-extension-exporter-otlp-proto-http 1.12.2
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)

Table of built distributions (wheels) for sb-opentelemetry-extension-exporter-otlp-proto-http 1.12.2
File Interpreter ABI Platform
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.

Release history Release notifications | RSS feed

This release

1.12.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