Registry / observability / opentelemetry-http

opentelemetry-http

JSON →
library0.31.0rscratesunverified

Helper implementations for sending HTTP requests, including propagating and extracting context over HTTP, exporting telemetry, and requesting sampling strategies.

# Cargo.toml [dependencies] opentelemetry-http = "0.31.0"
INSTALL
IMPORT
SIG · OPENTELEMETRY-HTTP
O
opentelemetry-http
observabilityrustv0.31.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

HttpClient
use opentelemetry_http::HttpClient;

Imports the HTTP client for OpenTelemetry.

use opentelemetry_http::HttpClient; fn main() { // HttpClient is used to send HTTP requests for telemetry. println!("OpenTelemetry HTTP client ready"); }
Debug
Known issues
gotchaRequires an HTTP client implementation (e.g., reqwest) to be enabled via feature flags.
fix
Add the appropriate feature flag (e.g., 'reqwest-client') to your Cargo.toml.
affects: >=0.31.0
Upgrade
Version history
0.31.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
13 hits · last 30 days
node
10
OpenAI (training)
2
Resources
opentelemetry-http — cargo add opentelemetry-http · libregistry