fix(deps): update rust dependencies #182
Open
+20
−68
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
0.29.0->0.31.00.29->0.310.29.0->0.31.00.4.13->0.5.00.4.13->0.5.0Release Notes
open-telemetry/opentelemetry-rust (opentelemetry)
v0.31.0Compare Source
Released 2025-Sep-25
opentelemetry::global::set_tracer_providerto Unit to align with metrics counterpartget_allmethod toopentelemetry::propagation::Extractorto return all values of the given propagation key and provide a default implementation.IntoIteratorimplementation foropentelemetry::trace::TraceStateto allow iterating through its key-value pair collection.v0.30.0Compare Source
Released 2025-May-23
#2821 Context
based suppression capabilities added: Added the ability to prevent recursive
telemetry generation through new context-based suppression mechanisms. This
feature helps prevent feedback loops and excessive telemetry when OpenTelemetry
components perform their own operations.
New methods added to
Context:is_telemetry_suppressed()- Checks if telemetry is suppressed in thiscontext
with_telemetry_suppressed()- Creates a new context with telemetrysuppression enabled
is_current_telemetry_suppressed()- Efficiently checks if the current thread's contexthas telemetry suppressed
enter_telemetry_suppressed_scope()- Convenience method to enter a scope where telemetry issuppressed
These methods allow SDK components, exporters, and processors to temporarily
disable telemetry generation during their internal operations, ensuring more
predictable and efficient observability pipelines.
tracingforinternal-logsfeature to remove the need of addingtracingas a dependencyopen-telemetry/opentelemetry-rust (opentelemetry-prometheus)
v0.31.0Compare Source
opentelemetrydependency version to 0.31.0opentelemetry_sdkdependency version to 0.31.0opentelemetry-semantic-conventionsdependency version to 0.31.0open-telemetry/opentelemetry-rust (opentelemetry_sdk)
v0.31.0Compare Source
Released 2025-Sep-25
Updated
opentelemetryandopentelemetry-httpdependencies to version 0.31.0.Feature: Add span flags support for
isRemoteproperty in OTLP exporter (#3153)Updated span and link transformations to properly set flags field (0x100 for local, 0x300 for remote)
TODO: Placeholder for Span processor related things
Fix: Restore true parallel exports in the async-native
BatchSpanProcessorby honoringOTEL_BSP_MAX_CONCURRENT_EXPORTS(#2959). A regression in #2685 inadvertently awaited theexport()future directly inopentelemetry-sdk/src/trace/span_processor_with_async_runtime.rsinstead of spawning it on the runtime, forcing all exports to run sequentially.Feature: Added
Cloneimplementation toSdkLoggerfor API consistency withSdkTracer(#3058).Fix: batch size accounting in BatchSpanProcessor when queue is full (#3089).
Fix: Resolved dependency issue where the "logs" feature incorrectly
required the "trace" feature flag
(#3096).
The logs functionality now operates independently, while automatic correlation
between logs and traces continues to work when the "trace" feature is
explicitly enabled.
Fix: Fix shutdown of
SimpleLogProcessorand asyncBatchLogProcessor.Default implementation of
LogProcessor::shutdown_with_timeout()will now warn to encourage users to implement proper shutdown.v0.30.0Compare Source
Released 2025-May-23
Updated
opentelemetryandopentelemetry-httpdependencies to version 0.30.0.It is now possible to add links to a
Spanvia theSpanRefthat you get froma
Context. 2959Feature: Added context based telemetry suppression. #2868
SdkLogger,SdkTracermodified to respect telemetry suppression based onContext. In other words, if the current context has telemetry suppressionenabled, then logs/spans will be ignored.
components to prevent telemetry from itself being fed back into OTel.
BatchLogProcessor,BatchSpanProcessor, andPeriodicReadermodified to setthe suppression flag in their dedicated thread, so that telemetry generated from
those threads will not be fed back into OTel.
SimpleLogProcessoralso modified to suppress telemetry before invoking exporters.
Feature: Implemented and enabled cardinality capping for Metrics by
default. #2901
configurability but has now been reintroduced with the ability to configure
the limit.
trueinstead of the string
"true".#2878
The
shutdown_with_timeoutmethod is added to SpanProcessor, SpanExporter trait and TracerProvider.The
shutdown_with_timeoutmethod is added to LogExporter trait.The
shutdown_with_timeoutmethod is added to LogProvider and LogProcessor trait.Breaking
MetricError,MetricResultno longer public (except whenspec_unstable_metrics_viewsfeature flag is enabled).OTelSdkResultshouldbe used instead, wherever applicable. #2906
Breaking change, affecting custom
MetricReaderauthors:shutdown_with_timeoutmethod is added toMetricReadertrait.collectmethod on
MetricReadermodified to returnOTelSdkResult.#2905
MetricReadertrait,
ManualReaderstruct,Pipelinestruct,InstrumentKindenum movedbehind feature flag "experimental_metrics_custom_reader".
#2928
Views improvements:
name, unit, description, and cardinality limit of a metric via views without
enabling the
spec_unstable_metrics_viewsfeature flag. Advanced viewfeatures, such as custom aggregation or attribute filtering, still require
the
spec_unstable_metrics_viewsfeature.new_view()method andViewtrait. Views can now be added by passinga function with signature
Fn(&Instrument) -> Option<Stream>to thewith_viewmethod on
MeterProviderBuilder.Introduced a builder pattern for
Streamcreation to use with views:StreamBuilderstruct with methods to configure stream propertiesStream::builder()method that returns a newStreamBuilderStreamBuilder::build()returnsResult<Stream, Box<dyn Error>>enablingproper validation.
Example of using views to rename a metric:
Aggregationenum moved behind feature flag"spec_unstable_metrics_views". This was only required when using advanced view
capabilities.
#2928
PushMetricExporterauthors:exportmethod onPushMetricExporternow accepts&ResourceMetricsinstead of
&mut ResourceMetrics.ResourceMetricsno longer exposesscope_metricsfield, but insteadoffers
scope_metrics()method that returns an iterator over the same.ScopeMetricsno longer exposesmetricsfield, but instead offersmetrics()method that returns an iterator over the same.Sum,Gauge,Histogram&ExponentialHistogramno longer exposesdata_pointsfield, but instead offersdata_points()method that returnsan iterator over the same.
SumDataPoint,GaugeDataPoint,HistogramDataPoint&ExponentialHistogramDataPointno longer exposesattributes,exemplarsfield, but instead offers
attributes(), andexemplars()method thatreturns an iterator over the same.
Exemplarno longer exposesfiltered_attributesfield, but insteadoffers
filtered_attributes()method that returns an iterator overthe same.
HistogramDataPointno longer exposesboundsandbucket_counts, butinstead offers
bounds()andbucket_counts()methods that returns aniterator over the same.
Metricno longer exposesname,description,unit,datafields, butinstead offers
name(),description(),unit(), anddata()accessor methods.ResourceMetricsno longer exposesresourcefield, but instead offersa
resource()accessor method.ScopeMetricsno longer exposesscopefield, but instead offersa
scope()accessor method.tower-rs/tower (tower)
v0.5.2: tower 0.5.2Compare Source
Added
BoxCloneSyncServicewhich is aClone + Send + SyncboxedService(#777)BoxCloneSyncServiceLayerwhich is aClone + Send + SyncboxedLayer(#802)v0.5.1: tower 0.5.1Compare Source
tower-layerdependency (#787)v0.5.0: tower 0.5.0Compare Source
Fixed
BoxServiceis nowSync(#702)Changed
ServiceExt::ready_andmethod andReadyAndfuture (#652)
retry::Policy::retrynow accepts&mut Reqand&mut Resinstead of the previous mutable versions. Thisincreases the flexibility of the retry policy. To update, update your method signature to include
mutfor both parameters. (#584)Reconnect::new(#755)Clonefor Change (#701)CloneforAsyncFilterLayer(#731)Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.
This PR was generated by Mend Renovate. View the repository job log.