NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
crates.io
crates.io, #2825 most downloaded on crates.io
Prometheus exporter for OpenTelemetry
Latest stable
0.33.1
Last release 1 months ago
09 Oct 2026
Ships fairly regularly
a new release about every 3 months
Nearly every release is documented
notes for 26 of 26 stable releases
Nothing withdrawn
no release was ever pulled
6 years old
26 releases · first in 2020
Drag across the ruler to compare, or tap a release to open it.
opentelemetry-prometheus 0.33.1 release
opentelemetry-prometheus 0.33.1 release
Released 2026-Oct-08
with_resource_selector being dropped from metric points when scope_info_enabled(false) is set. #2858See the 0.33.0 release notes and migration guidance .
See the 0.33.0 release notes and migration guidance.
The OTLP exporters for Logs and Metrics remain release candidates. We plan to declare them stable in 0.33.1 after approximately two weeks of validation, provided no issues requiring breaking API changes arise. The Logs and Metrics API and SDK remain stable; Distributed Tracing remains pre-stable.
Your coding agent can read these notes before it upgrades. Set up the MCP server →
First release of opentelemetry-propagator-b3, providing B3 trace context propagation for OpenTelemetry Rust.
Based on the B3 implementation in opentelemetry-zipkin, with the existing API and behavior. B3 users can migrate their dependency and imports to opentelemetry_propagator_b3::{B3Encoding, Propagator}.
Released 2026-Sep-18
without_scope_info with scope_info_enabled to configure Prometheus instrumentation scope labels, inverting the option from disabling scope info to enabling it. Before this change, the exporter emitted an otel_scope_info metric and only added otel_scope_name/otel_scope_version labels to metric points. Now scope info is enabled by default on metric points with otel_scope_name, otel_scope_version, otel_scope_schema_url, and scope attributes prefixed with otel_scope_; setting scope_info_enabled(false) suppresses those labels. #3503"opentelemetry-prometheus 0.32.0 release."
"opentelemetry-prometheus 0.32.0 release."
Released 2026-May-08
opentelemetry-prometheus and remove stale discontinuation notices. #3288prometheus dependency requirement.See changelog for individual crates to know the exact set of changes. All crates in this repo follows same version (0.31.0 for this release).
See changelog for individual crates to know the exact set of changes. All crates in this repo follows same version (0.31.0 for this release).
opentelemetry dependency version to 0.31.0opentelemetry_sdk dependency version to 0.31.0opentelemetry-semantic-conventions dependency version to 0.31.0Update prometheus dependency version to 0.14
Released 2025-April-11
prometheus dependency version to 0.14protobuf dependencyUpdate opentelemetry dependency version to 0.29
opentelemetry dependency version to 0.29opentelemetry_sdk dependency version to 0.29opentelemetry-semantic-conventions dependency version to 0.29Update opentelemetry dependency version to 0.28
opentelemetry dependency version to 0.28opentelemetry_sdk dependency version to 0.28opentelemetry-semantic-conventions dependency version to 0.28Released 2025-Feb-10
Update opentelemetry dependency version to 0.27
opentelemetry dependency version to 0.27opentelemetry_sdk dependency version to 0.27opentelemetry-semantic-conventions dependency version to 0.27Implement Serialize & Deserialize for Sampler, SpanLimits #622, #626
Serialize & Deserialize for Sampler, SpanLimits #622, #626&'static str and string in span methods #654String data in instrumentation library. #670std::fmt::Debug and 'static requirements from TracerProvider,
Tracer, and Span #664Tracer::invalid method #683TracerProvider::tracer and TracerProvider::versioned_tracer methods #682futures crate #684ShouldSample parameters #695service.name from OTEL_SERVICE_NAME and OTEL_RESOURCE_ATTRIBUTES #662TraceState::valid_key crashes #665opentelemetry dependency version to 0.24opentelemetry_sdk dependency version to 0.24opentelemetry-semantic-conventions dependency version to 0.16Add default resource in TracerProvider #571
TracerProvider #571get_tracer to tracer #586trace::noop module and update docs #587Hash impl for span context and allow spans to clone and export current state #592SpanRef public #600SpanProcessor::on_start take a mutable span #601label to attribute to align with otel specification #609Resource::get #579ResourceSelector to allow attaching resource as attributes to metrics #1608opentelemetry dependency version to 0.23opentelemetry_sdk dependency version to 0.23opentelemetry_semantic_conventions::trace and opentelemetry_semantic_conventions::resource into opentelemetry_semantic_conventions::attribute (which now contains all semantic attributes). trace and resource now only contain references to attributes which fall under their respective category.opentelemetry_semantic_conventions::metric to store metric semantic conventions.Expose the Error type to allow users to set custom error handlers #551
Unit into metrics module #564#[tokio::test] #552TraceState cannot insert new key-value pairs #567Fix UCUM annotation escaping by ignoring unknown instrument units and annotations #1348
Adding a dynamic dispatch to Aggregator Selector #497
global::force_flush_tracer_provider #512max_attributes_per_event and max_attributes_per_link #521Key type #491#[must_use] from set_tracer_provider #501default_sampler to sampler #509Upgrade note: exporter pipelines do not return an uninstall guard as of #444, use opentelemetry::shutdown_tracer_provider explicitly instead.
Upgrade note: exporter pipelines do not return an uninstall guard as of #444, use opentelemetry::global::shutdown_tracer_provider explicitly instead.
from_env and use environment variables to initialize the configurations by default #459with_namespace option to exporter config.without_counter_suffixes option to exporter config.Instrumentation library support #402
with_unit methods in metrics #431Send, Sync to AsyncInstrument in metrics #422Send, Sync to InstrumentCore in metrics #423http dependencies into a new opentelemetry-http crate #415tonic dependency #414Add force_flush method to span processors #358
force_flush method to span processors #358force_flush and shutdown #362Display trait for Key and Value types #353Option from Array values #359ShouldSample's parent parameter to be Context #368trace module into TraceError #371#[must_use] to uninstall structs #372sdk::export #375start_from_context renamed to start_with_context #399build_with_context as full context is now stored in builder #399with_parent renamed to with_parent_context #399HistogramAggregator returning sum vs count #398PrometheusExporter::new() removed. Use ExporterBuilder. #727Add support for baggage metadata #287
api prefix from modules #305mark_as_active_span and get_active_span functions into trace module #310SpanContext to SpanReference #299Box<dyn Error + Send + Sync + 'static> #284GenericProvider to GenericTracerProvider #313SpanStatus enum to Ok, Error, and Unset variants #315Display trait for Key and Value types #353SpanProcessor trait into sdk module #334is_recording is false and span is no-op after end #341ExportResult to use std::result::Result #347SpanExporter::export to take &mut self instead of &self #350u64 and bytes kv values #323&str #332prometheus-encoding feature to export prometheus encoders #652with_aggregator_selector option #667Add fields method to TextMapFormat #178
fields method to TextMapFormat #178tracestate in TraceContextPropagator #191TraceState to SpanContext #217from_env config option for BatchSpanProcessor #228Sampler::Probability to Sampler::TraceIdRatioBased #188HTTPTextPropagator to TextMapPropagator #192Provider to TracerProvider #206CorrelationContext into Baggage #208ShouldSample implementation to modify trace state #237!Send #239new constructor #240baggage header #246api to api::trace #255tonic feature to use version 0.3.x #258sdk::propagation #266SamplingDecision's NotRecord, Record and RecordAndSampled to
Drop RecordOnly and RecordAndSample #247from_env to prometheus exporter builder #605Default implementation to ExporterBuilder based on the otel specification environment variables #242PrometheusExporter::new() is deprecated in favor of using ExporterBuilderAdd custom span processors to Provider::Builder #166
Provider::Builder #166Carrier into Injector and Extractor #164ParentOrElse(AlwaysOn) #163Sampler interface to the SDK #169New ParentOrElse sampler for fallback logic if parent is not sampled. #128
ParentOrElse sampler for fallback logic if parent is not sampled. #128record_exception and record_exception_with_stacktrace methods to Span #152Always is now AlwaysOn. Never is now AlwaysOff. Probability now ignores parent
sampled state.base64 and binary_propagator have been moved to experimental module. #134Correlation-Context header has been updated to otcorrelations #145B3Propagator has been updated to more closely follow the spec #148Add http and tonic features to impl Carrier for common types.
http and tonic features to impl Carrier for common types.span_id from sampling parameters when implementing custom samplers.Context Send + Sync in #127Derive Clone for B3Propagator, SamplingResult, and SpanBuilder
Clone for B3Propagator, SamplingResult, and SpanBuilderFrom<T> for common Key and Value typestracer methodResource APIContext APICorrelations APIHttpTextCompositePropagator for composing HttpTextPropagatorsGlobalPropagator for globally configuring a propagatorTraceContextExt to provide methods for working with trace data in a contextEvictedQueue constructorSpan are Send and Sync when used in globalKey and Value method signatures to remove Cow referencesstart now uses the implicit current context instead of an explicit span context.
start_with_context may be used to specify a context if desired.with_span now accepts a span for naming consistency and managing the active state of a more
complex span (likely produced by a builder), and the previous functionality that accepts a
&str has been renamed to in_span, both of which now yield a context to the provided closure.get_active_span now accepts a closureInstrument trait has been renamed to FutureExt to avoid clashing with metric instruments,
and instead accepts contexts via with_context.get_context method has been renamed to span_context to avoid ambiguity.HttpTextPropagators inject the current context instead of an explicit span context. The context
can be specified with inject_context.SpanData's context has been renamed to span_contextTraceparent header to traceparentTracerGenerics methods have been folded in to the Tracer trait so it is longer neededmark_span_as_inactive has been removedas_any methodmark_as_active, mark_as_inactive, and as_any have been removedfrom_env and use environment variables to initialize the configurations by default #459Update Span's add_event and add_event_with_timestamp to accept attributes.
trace_id to SpanBuilderattributes to Events.Span's add_event and add_event_with_timestamp to accept attributes.Linksstatus_message to Span and SpanDataSpanStatus to StatusCodeEvictedQueue internals from LIFO to FIFOEvictedHashMapshutdown correctly when span processors and exporters are droppedSwitch to SpanId and TraceId from u64 and u128
SpanId and TraceId from u64 and u128&mut self requirements for Span APIMake trace and metrics features optional
### Added - Initial prometheus exporter
One column per quarter.