Download Latest Version 0.42.59 source code.tar.gz (4.7 MB)
Email in envelope

Get an email when there's a new version of ServiceTalk

Home / 0.42.56
Name Modified Size InfoDownloads / Week
Parent folder
0.42.56 source code.tar.gz 2025-04-25 4.7 MB
0.42.56 source code.zip 2025-04-25 8.0 MB
README.md 2025-04-25 4.7 kB
Totals: 3 Items   12.7 MB 0

This is a minor maintenance release appropriate for all ServiceTalk users that contains several useful improvements and bug fixes. This release is expected to be a "drop-in" replacement for all prior 0.42.X releases.

The most notable change is in how ServiceTalk propagates context of MDC and OpenTelemetry. We now offer the CapturedContext abstraction which lets ServiceTalk use the native context storage mechanisms of 3rd party libraries. We're now using this mechanism for both MDC and OpenTelemetry. See the Behavior Changes section for more details.

Changes

Behavior Changes

  • https://github.com/apple/servicetalk/commit/19acad23e41c414b27661347b3c468b854f72552 - log4j-mdc: Use CapturedContext mechanism for MDC to get copy behavior (#3244)
  • This preserves the expected thread-local behavior of MDC while still correctly propagating it throughout the ServiceTalk framework. If you encountered any issues with new behavior, use the temporarily introduced system property io.servicetalk.log4j2.mdc.utils.useCapturedContextStorage=false to opt-out and report any issues back to us.
  • https://github.com/apple/servicetalk/commit/ed57e9038feb704a5463240be800d3622a8bb562 - opentelemetry: use the new context propagation mechanism (#3199)
  • The new propagation mechanism doesn't require changing how OTEL stores context, instead capturing the context from the OTEL native storage location and properly restoring it throughout the ServiceTalk stack. This fixes a number of correctness issues with ServiceTalk propagation as well improving compatibility with other libraries using OpenTelemetry.

New Features

Bug Fixes

Improvements

Dependencies


Thank you

Every idea, review, and bug-report counts and so we thought it is worth mentioning those who helped in this area. Please report any unintended omission.

@bryce-anderson @daschl @idelpivnitskiy @mgodave

Source: README.md, updated 2025-04-25