Repository navigation
Releases
Version 2.34.0
This release targets the OpenTelemetry SDK 1.68.0.
Note that many artifacts have the -alpha suffix attached to their version number, reflecting that they will continue to have breaking changes. Please see VERSIONING.md for more details.
📈 Enhancements
- Update the OpenTelemetry SDK version to 1.68.0. (#21245)
- Avoid redundant context propagation for executor tasks already wrapped by OpenTelemetry. (#21273)
- Reduce span-context conversions in the Java agent's OpenTelemetry API bridge. (#21287)
- Support Pekko 2.x and Pekko HTTP 2.0 milestones. (#21288)
🛠️ Bug fixes
- Fix lost Apache HttpAsyncClient callbacks when a resolved target address has no explicit port. (#21062)
- Fix
@SpanAttributeparameter capture on top-level Kotlin suspend functions. (#21180) - Fix exceptions and resource leaks when OpenAI chat streams are closed before a finish reason arrives. (#21271)
- Show metric names correctly in JMX metric-selection debug logs. (#21272)
- Finish R2DBC query spans when filtered results complete, fail, or are cancelled. (#21274)
- Preserve Kafka consumer next-offset metadata when wrapping records. (#21275)
- Suppress internal receive spans when dispatching message listeners in Pulsar 4.2.5 and newer. (#21275)
- Fix Pekko HTTP 1.1 server context propagation and prevent context leaks between concurrent Pekko HTTP requests. (#21282, #21288)
- Prevent application context from propagating into HikariCP maintenance tasks. (#21283)
- Fix duplicated Vert.x HTTP server routes in handler chains. (#21285)
- Fix Spring MVC startup failures caused by conflicting Spring versions across Tomcat classloaders. (#21286)
- Prevent Akka HTTP and Pekko HTTP client response futures from hanging when their dispatcher is blocked or rejects callbacks. (#21288)
🙇 Thank you
This release was possible thanks to the following contributors who shared their brilliant ideas and awesome pull requests:
@chatgpt-codex-connector
@jaydeluca
@laurit
@opentelemetry-pr-dashboard
@trask
@zackman0010
Version 2.33.1
This release targets the OpenTelemetry SDK 1.67.0.
Note that many artifacts have the -alpha suffix attached to their version number, reflecting that they will continue to have breaking changes. Please see VERSIONING.md for more details.
🛠️ Bug fixes
- Fix Java agent startup resource schema conflicts when a service name is configured. (#20915)
Version 2.33.0
This release targets the OpenTelemetry SDK 1.67.0.
Note that many artifacts have the -alpha suffix attached to their version number, reflecting that they will continue to have breaking changes. Please see VERSIONING.md for more details.
📈 Enhancements
- Update the OpenTelemetry SDK version to 1.67.0. (#20598)
🛠️ Bug fixes
- Preserve repeated baggage header values when extracting context through the Java agent's OpenTelemetry API bridge. (#20598)
- Avoid converting lists and maps to strings in Spring Boot declarative configuration. (#20598)
- Improve SQL parsing. (#20864)
🙇 Thank you
This release was possible thanks to the following contributors who shared their brilliant ideas and awesome pull requests:
@ishg
@jack-berg
@jamesylgan
@laurit
@opentelemetry-pr-dashboard
@safris
@steverao
@trask
Version 2.32.0
This release targets the OpenTelemetry SDK 1.66.0.
Note that many artifacts have the -alpha suffix attached to their version number, reflecting that they will continue to have breaking changes. Please see VERSIONING.md for more details.
⚠️ Breaking changes to non-stable APIs
- Remove the deprecated
HostIdResource.REGISTRY_QUERYconstant. (#19778) - The
ExperimentalJmxMetricHandlerSPI now requires implementations to providegetMetricNames(). (#19781) - Add the required
isRequestStreaming(REQUEST)method toGenAiAttributesGetter. (#19879) - The experimental
java.common.messaging.headers/developmentYAML selector no longer configures header capture. Usejava.common.messaging.headersinstead. (#20260)
🚫 Deprecations
- Deprecate
otel.jmx.target.systemin favor ofotel.jmx.metrics.experimental.included. (#19783) - Deprecate
otel.instrumentation.elasticsearch.capture-search-query. It will be removed in 3.0, when search query bodies are always captured. There is no replacement. (#19675) - Deprecate
otel.instrumentation.opensearch.capture-search-query. It will be removed in 3.0, when search query bodies are always captured. There is no replacement. Sanitization remains enabled by default and configurable withotel.instrumentation.opensearch.query-sanitization.enabled. (#19837) - Deprecate
otel.jmx.enabledin favor ofotel.instrumentation.jmx.enabledto align with other instrumentation enablement properties. (#19945) - Deprecate automatic rewriting of
VirtualField.find(Class, Class)calls in inlined javaagent advice. Instead, look up theVirtualFieldonce and store it in a helper class'sstatic finalfield. Thefindmethod itself remains supported. (#19980) - Deprecate the Elasticsearch REST library instrumentation. Use the Elasticsearch Java API Client's native OpenTelemetry support, or the Java agent for direct
RestClientusage. Java agent instrumentation is unaffected. (#19995) - Deprecate
otel.instrumentation.messaging.experimental.receive-telemetry.enabledin favor ofotel.instrumentation.common.messaging.experimental.receive-telemetry.enabled. For headers, replaceotel.instrumentation.messaging.experimental.headers.includedand.excludedwithotel.instrumentation.common.messaging.headers.includedand.excluded. Also deprecateotel.instrumentation.messaging.experimental.capture-headersin favor ofotel.instrumentation.common.messaging.headers.included. Stable selectors take precedence per leaf. (#20060, #20260) - Deprecate the
.included/.excludedproperties underotel.instrumentation.log4j-appender.experimental.map-message-attributes,otel.instrumentation.logback-appender.experimental.key-value-pair-attributes,otel.instrumentation.logback-appender.experimental.logstash-marker-attributes, andotel.instrumentation.logback-appender.experimental.logstash-structured-argument-attributesin favor of the stable and unifiedotel.instrumentation.common.logging.structured-attributes.included/.excluded. (#20066) - Deprecate
otel.instrumentation.couchbase.experimental-span-attributesin favor ofotel.instrumentation.couchbase.emit-experimental-telemetry, a broader name for experimental attributes and internal spans from the underlying Couchbase client. (#20117) - Deprecate
otel.traces.sampler=linksbased_parentbased_always_onwith no replacement and declarativerule_based_routingin favor of the SDK incubator composite/developmentrule_basedsampler, whose configuration and matching behavior differ. (#20249) - Promote controller and view telemetry configuration to the stable properties
otel.instrumentation.common.controller-telemetry.enabledandotel.instrumentation.common.view-telemetry.enabled, deprecatingotel.instrumentation.common.experimental.controller-telemetry.enabledandotel.instrumentation.common.experimental.view-telemetry.enabled. (#20258) - Promote Java agent span suppression configuration to the stable property
otel.instrumentation.common.span-suppression-strategy, deprecatingotel.instrumentation.experimental.span-suppression-strategy. (#20259) - Deprecate
otel.instrumentation.oshi.experimental-metrics.enabled,ProcessMetrics, and itsregisterObservers(...)methods in favor ofjvm.memory.usedandjvm.cpu.time. (#20323) - Deprecate
SystemMetrics.registerObservers(Meter)in the OSHI library instrumentation in favor ofSystemMetrics.registerObservers(OpenTelemetry). (#20263) - In declarative configuration YAML, deprecate dotted selectors in the
distribution.javaagent.instrumentation.enabledand.disabledlists. Usereactor_3_1instead ofreactor_3.1. Flat-property names such asotel.instrumentation.reactor-3.1.enabledare unchanged. (#20326)
🌟 New javaagent instrumentation
- Add Redisson database connection pool metrics for versions 2.3.0 through 3.25. (#19152, #19634)
- Add Java agent instrumentation for Pekko remoting so trace context propagates across remote calls. (#19823)
📈 Enhancements
- Expand the upcoming 3.0 database semantic conventions behind
otel.semconv-stability.opt-in=database, including configured server targets and span names, endpoint validation, network-peer attributes, Redis namespaces, operation names, error types, query text, and connection pool metric names and database identity for Cassandra, ClickHouse, Couchbase, Elasticsearch, Geode, HBase, JDBC, Redis clients, MongoDB, OpenSearch, R2DBC, Spymemcached, and Vert.x. (#19728, #19747, #19749, #19753, #19757, #19795, #19830, #19831, #19832, #19834, #19838, #19839, #19844, #19845, #19846, #19848, #19850, #19864, #19868, #19872, #19877, #19883, #19901, #19902, #19903, #19904, #19981, ...
Version 2.31.1
This release targets the OpenTelemetry SDK 1.65.0.
Note that many artifacts have the -alpha suffix attached to their version number, reflecting that they will continue to have breaking changes. Please see VERSIONING.md for more details.
🛠️ Bug fixes
- Restore stable semantic convention APIs to the compile classpaths of the Spring Boot autoconfigure and starter artifacts. (#19754)
Version 2.31.0
This release targets the OpenTelemetry SDK 1.65.0.
Note that many artifacts have the -alpha suffix attached to their version number, reflecting that they will continue to have breaking changes. Please see VERSIONING.md for more details.
⚠️ Breaking changes to non-stable APIs
- Remove the deprecated
ConfigPropertiesBackedConfigProviderand itscreate(ConfigProperties)compatibility API from the declarative config bridge. (#19305) - Stop exposing
opentelemetry-instrumentation-api-incubatoron library instrumentation compile classpaths. (#19612)
🚫 Deprecations
- Deprecate
otel.instrumentation.experimental.span-suppression-strategyin favor ofExperimental.setSpanSuppressionStrategy(...). (#19180) - Deprecate
HostIdResource.REGISTRY_QUERYin favor of the absolute-pathreg.exelookup used byHostIdResource. (#19293) - Deprecate
MessageOperationin favor ofMessagingOperationType, and theMessageOperationoverloads ofMessagingAttributesExtractor,MessagingConsumerMetrics,MessagingProducerMetrics,MessagingSpanKindExtractor, andMessagingSpanNameExtractorin favor of the correspondingMessagingOperationTypeAPIs. (#19357) - Deprecate
otel.traces.exporter=zipkinin favor ofotel.traces.exporter=otlp, andotel.exporter.zipkin.endpointin favor ofotel.exporter.otlp.traces.endpoint. (#19400) - Deprecate
OpenTelemetryMeterRegistryBuilder#setMicrometerHistogramGaugesEnabled(boolean)in favor ofExperimental#setMicrometerHistogramGaugesEnabled(OpenTelemetryMeterRegistryBuilder, boolean). (#19404) - Deprecate legacy gRPC metadata, messaging header, and servlet request-parameter capture properties and APIs in favor of selector-based
.included/.excludedconfiguration andIncludeExcludeAPIs. (#19494, #19522, #19523, #19638) - Deprecate
otel.instrumentation.runtime-telemetry.experimental.prefer-jfrin favor ofotel.instrumentation.runtime-telemetry.experimental.jfr-metrics.included, andsetPreferJfrMetrics(...)in favor ofsetJfrMetrics(RuntimeTelemetryBuilder, IncludeExclude). (#19495) - Deprecate boolean and capture-list configuration for MDC/context data, map messages, key-value pairs, logger context, Logstash markers, and structured arguments in favor of
.included/.excludedselectors andIncludeExcludeAPIs. (#19519, #19520, #19521, #19599, #19600, #19605, #19609, #19610) - Deprecate the declarative configuration field
general.semconv_stability.opt_inin favor ofgeneral.stability_opt_in_list, andgeneral.sanitization.url.sensitive_query_parameters/developmentin favor ofgeneral.sanitization.url.sensitive_query_parameters. (#19561) - Deprecate
otel.instrumentation.graphql.add-operation-name-to-span-name.enabledin favor ofotel.instrumentation.graphql.operation-name-in-span-name.enabled, andotel.instrumentation.runtime-telemetry.package-emitter.enabled/jars-per-secondin favor ofotel.instrumentation.runtime-telemetry.experimental.package-emitter.enabled/jars-per-second. (#19573) - Deprecate captured request and response header builder methods across HTTP library instrumentations in favor of selector-based
requestHeaders(IncludeExclude)andresponseHeaders(IncludeExclude)APIs. (#19598, #19601, #19602, #19603, #19604, #19606, #19607, #19608) - Deprecate
otel.instrumentation.micrometer.histogram-gauges.enabledin favor ofotel.instrumentation.micrometer.experimental.histogram-gauges.enabled. (#19613)
🌟 New javaagent instrumentation
- Add Apache Commons Pool 2 instrumentation for object pool metrics. (#19091)
- Add Apache HBase client 1.0 javaagent instrumentation. (#19243)
- Add Redisson connection pool metrics for 3.26+. (#19392)
- Add support for OpenTelemetry API 1.65 incubator metrics in the Java agent. (#19456)
- Add Tomcat DBCP 8.0 javaagent instrumentation for database pool metrics. (#19472)
📈 Enhancements
- Add opt-in OSGi bundle metadata for selected instrumentation, API, and SDK extension artifacts so they can be consumed directly in OSGi runtimes. (#18995)
- Add
cassandra.compaction.progress.completedandcassandra.compaction.progress.sizegauges for in-flight Cassandra compactions. (#19290) - Preview the upcoming 3.0 messaging semantic conventions behind
otel.semconv-stability.opt-in=messagingacross AWS SQS and Lambda, JMS, Kafka, NATS, Pulsar, RabbitMQ, RocketMQ, Spring Integration, and Spring messaging instrumentations. (#19347, #19348, #19349, #19350, #19351, #19353, #19354, #19355, #19356, #19476, #19477, #19478, #19479, #19480, #19481, #19482, #19486, #19487, #19499, #19500, #19504, #19505, #19507, #19508, [#19535](https://github.com/open-telemetry/opentelemetry-java-instrumentati...
Version 2.30.0
This release targets the OpenTelemetry SDK 1.64.0.
Note that many artifacts have the -alpha suffix attached to their version number, reflecting that they will continue to have breaking changes. Please see VERSIONING.md for more details.
⚠️ Breaking changes to non-stable APIs
- Remove
ExperimentalInstrumentationModule#getModuleGroup(). Built-in invokedynamic modules now share a singleInstrumentationModuleClassLoader, and each extension is isolated in its own. (#18859) - Remove the deprecated
InstrumentationModule.isIndyModule(); whether a module uses invokedynamic is now determined by the agent rather than declared per module. (#19140) - Remove deprecated query-related APIs from
SqlClientAttributesGetter,CassandraRequest, andExperimental. (#19165) - Remove the deprecated
Enduser*attribute-capturing APIs from the Spring Security 6.0 library; use theUser*replacements instead. (#19168)
🚫 Deprecations
- Deprecate only the Spring Boot starter
ConfigPropertiescompatibility bean used with experimental declarative configuration, in favor of the newConfigProviderbean; it will be removed in 3.0. TheConfigPropertiesbean remains supported for non-declarative configuration. (#19175) - Deprecate
DeclarativeConfigPropertiesBridgeandDeclarativeConfigPropertiesBridgeBuilder. UseDeclarativeConfigPropertiesdirectly orDeclarativeConfigBridgeinstead. Will be removed in 3.0. (#19202) - Deprecate
ConfigPropertiesBackedConfigProviderin favor ofDeclarativeConfigBridge. It will be removed in 2.31.0. (#19220)
🌟 New javaagent instrumentation
- Add Javaagent instrumentation for HBase client 1.4. (#19087)
🌟 New library instrumentation
- Add library instrumentation (
ThriftTelemetry) for the Apache Thrift 0.13 async server. (#19062)
📈 Enhancements
- Add async server tracing to the Apache Thrift 0.13 javaagent instrumentation; async server handlers were previously uninstrumented. (#18994)
- Support
database=as an alias fordatabaseNamewhen extractingdb.namefrom MSSQL JDBC URLs. (#19029) - Add batch-operation support to the experimental stable database semantic-convention opt-in (
otel.semconv-stability.opt-in=database) across database instrumentations, including batch span names,db.operation.batch.size(including empty batches), anddb.query.summary. (#19034, #19037, #19054, #19055, #19056, #19057, #19143, #19147, #19161, #19162, #19164, #19172, #19189, #19199) - Add tracing for Lettuce 4.0 reactive commands, including exceptional completion and cancellation. (#19071)
- Add the experimental Cassandra JMX metrics target system. (#19080)
- Add experimental JFR-based
jvm.thread.virtual.pinnedandjvm.thread.virtual.submit_failedmetrics for Java 19+ virtual threads; enable withotel.instrumentation.runtime-telemetry.emit-experimental-jfr-metrics=true. (#19092) - Capture custom object values passed to
PreparedStatement.setObject()in query parameter attributes. (#19093) InstrumentationModulenow exposesinjectedClassNames()andexposedClassNames()for indy instrumentations, so module authors no longer needExperimentalInstrumentationModulefor those helper-class declarations. (#19142)- Add
captureTemplateandcaptureArgumentsoptions to the log4j, java-util-logging, and jboss-logmanager logging instrumentations, capturing the log message template and arguments as separatelog.body.template/log.body.parametersattributes; logback already supported these options (#15423). (#19154) - Add
server.addressandserver.portattributes to Redisson client spans. (#19191) - Add
server.addressandserver.portattributes to Lettuce Redis client spans. (#19192) - Add
server.addressandserver.portattributes to Rediscala client spans. (#19193) - Set
server.addresson registry-backed Dubbo client spans to the registry address plus the service target (registry://host:port/interface:version:group) and leaveserver.portunset, gated behind the stable rpc semconv opt-in (otel.semconv-stability.opt-in=rpc); the resolved provider host and port are kept under the default semconv. (#17244, #19285)
🛠️ Bug fixes
- Fix a spurious duplicate warning when the application logger bridge is installed multiple times during startup. (#19088)
- Fix MySQL and MariaDB
db.connection_stringvalues so IPv6 hosts stay bracketed instead of becoming ambiguous. (#19078) - Fix multi-topic Pulsar consumers so the internal background receive no longer creates a spurious extra receive span. (#19095)
SpringConfigProperties.getMap()no longer evaluates map property values as SpEL expressions; non-special-cased map properties now parse as comma-delimitedkey=valuepairs via the SDK'sDefaultConfigProperties, so settings likeotel.instrumentation.common.peer-service-mappingwork without SpEL syntax. (#19113)- Fix JMS destination extraction so an unreadable destination now leaves
messaging.destination.nameunset instead of reporting it asunknown. (#19115) - Fix the JMX Metric Insight
jvm.class.loadedandjvm.class.unloadedmetrics to use counter instruments. (#19141)
🙇 Thank you
This release was possible thanks to the following contributors who shared their brilliant ideas and awesome pull requests:
@alokmajumder
@bhuvan-somisetty
@breedx-splk
@carlosalberto
@CodingFabian
@FrankSpitulski
@heyams
@hwxy233
@imavroukakis
@inssein
@ishg
@jaydeluca
@jkoronaAtCisco
@johnbley
@JonasKunz
@laurit
@maryliag
@maxxedev
@mmanciop
@opentelemetry-pr-dashboard
@opentelemetrybot
@pavolloffay
@philsttr
@robsunday
@ryanrupp
@steverao
@SylvainJuge
@trask
@tsawada
@xiangtianyu
@YaoYingLong
@zeitlinger
Version 2.29.0
This release targets the OpenTelemetry SDK 1.63.0.
Note that many artifacts have the -alpha suffix attached to their version number, reflecting that they will continue to have breaking changes. Please see VERSIONING.md for more details.
⚠️ Breaking changes to non-stable APIs
- Change the return type for
JmxTelemetry.start(...)APIs. (#18782) - Experimental runtime package telemetry now emits
package.checksum_algorithm=SHA-256and 64-characterpackage.checksumvalues instead of SHA1 checksums. (#18846)
🚫 Deprecations
- Rename the common logging context keys to
otel.instrumentation.common.logging.trace-id-key,otel.instrumentation.common.logging.span-id-key, andotel.instrumentation.common.logging.trace-flags-key, while keeping the old property names deprecated. (#18851) - Rename the
kafka-brokerandkafka-connectJMX target systems toexperimental-kafka-brokerandexperimental-kafka-connect; the old names still work for now and log a warning. (#18971)
🌟 New javaagent instrumentation
- Add SOFARPC 5.4 instrumentation that emits RPC client and server spans and metrics. (#15589)
- Add Javaagent instrumentation for HBase client 2.0.0 through 2.5.0. (#18253)
📈 Enhancements
- Add opt-in support for emitting HTTP request exceptions as log signals with
otel.semconv.exception.signal.preview=logs. (#16259) - Add
opentelemetry-api-1.63Javaagent instrumentation for OpenTelemetry API 1.63 andopentelemetry-api-incubator1.63. (#18911) - Add
otel.semconv-stability.v3-previewas a fallback for the declarativev3_previewsemconv stability setting. (#18936) - Update the experimental stable database semantic-convention opt-in (
otel.semconv-stability.opt-in=database) across database instrumentations, including span names anddb.*attributes. (#18808, #18853, #18920, #18922, #18926, #18930, #18970, #18979, #18980, #18984, #18985, #18986, #18987, #18989, #18990, #18992, #18993, #19004, #19005) - Capture query text and parameterization for Cassandra batch statements. (#18964)
- Keep
opentelemetry-apiandopentelemetry-instrumentation-annotationsenabled underotel.instrumentation.common.v3-previeweven whendefault-enabled=false. (#18792) - When
otel.instrumentation.common.v3-previewis enabled, affected instrumentations emituser.*identity attributes instead ofenduser.*ones. (#18795) - Disable Kafka client metrics by default when
otel.instrumentation.common.v3-preview=true. (#18828) - Recognize Amazon Aurora DSQL and AWS wrapper JDBC URL prefixes when parsing JDBC connection metadata. (#18831)
- Set instrumentation versions on emitted Meter scopes. (#18866)
- Run
@WithSpaninstrumentation after other instrumentations so other advice can attach attributes to the active span. (#18874) - Emit database client failures as
db.client.operation.exceptionlogs whenotel.semconv.exception.signal.previewis enabled. (#18889) - Emit RPC exceptions as log records when
otel.semconv.exception.signal.preview=logsis enabled. (#18890) - Emit messaging exceptions as log records under
otel.semconv.exception.signal.preview. (#18891) - Emit
faas.invocation.exceptionlog records for FaaS exceptions whenotel.semconv.exception.signal.preview=logsis enabled. (#18892) - Emit
gen_ai.client.operation.exceptionlogs for OpenAI chat and embeddings failures whenotel.semconv.exception.signal.preview=logsis enabled. (#18893) - Emit AWS SDK request failures as
rpc.client.call.exceptionlog records whenotel.semconv.exception.signal.preview=logsis enabled. (#18894) - Declarative configuration now supports per-domain semantic-convention selection using
semconv.version,semconv.experimental, andsemconv.dual_emitsettings. (#18908) - When
otel.instrumentation.common.v3-previewis enabled, useotel.semconv-stability.previewinstead ofotel.semconv-stability.opt-into opt in to the nonstableservice.peerandrpcsemantic conventions. (#18914) - Disable Kotlin coroutines
@WithSpaninstrumentation by default whenotel.instrumentation.common.v3-preview=true. (#18919) - Use the summary-aware path in
SqlQueryAnalyzer.analyze()whenotel.instrumentation.common.v3-previewis enabled. (#18921) - When
otel.instrumentation.common.v3-previewis enabled, deprecated JDBC/db sanitization config names are ignored in favor ofdb.query_sanitization.enabled. (#18934) - Include
jvm.gc.causeon GC duration metrics whenotel.instrumentation.common.v3-previewis enabled. (#18967) - Emit duration metrics for JDBC transaction operations
COMMITandROLLBACK. (#19003) - Use a generated
InstrumentationVersionclass in OkHttp 3.0 instead of reading embedded version properties, avoiding Android StrictMode disk-read violations. (#19006) - Add thread details span attributes for declarative Spring starter configuration when
distribution.spring_starter.thread_details_enabledis set. (#19008)
🛠️ Bug fixes
- Preserve the current context for Redisson command execution futures so async operations continue the active trace. (#18701)
- Stop the Pulsar agent from creating duplicate receive spans for multi-topic consumers. (#18771)
- Fix a hang in Ktor client streaming requests so spans end promptly with Ktor 3.5.0. (#18781)
- Fix a
BedrockconverseStreamNullPointerExceptionwhen a tool call has empty arguments. ([#18783](https://github.com/open-telemetry/opentelemetry-java-instrumentation/pull/...
Version 2.28.1
This release targets the OpenTelemetry SDK 1.62.0.
Note that many artifacts have the -alpha suffix attached to their version number, reflecting that they will continue to have breaking changes. Please see VERSIONING.md for more details.
🛠️ Bug fixes
- Fix javaagent startup failures when declarative configuration uses bundled contrib components, such as the rule-based routing sampler. (#18813)
Version 2.28.0
This release targets the OpenTelemetry SDK 1.62.0.
Note that many artifacts have the -alpha suffix attached to their version number, reflecting that they will continue to have breaking changes. Please see VERSIONING.md for more details.
⚠️ Breaking changes to non-stable APIs
- Removed the obsolete internal
ClassInjector/ProxyInjectionBuilderAPI used by the oldExperimentalInstrumentationModule.injectClasses(ClassInjector)path; useExperimentalInstrumentationModule.exposedClassNames()instead. (#18112) - Removed previously deprecated non-stable API methods and the deprecated
opentelemetry-runtime-telemetry-java8andopentelemetry-runtime-telemetry-java17library aliases. (#18136) - Removed the previously deprecated
captureEventNamelibrary builder setting from the logback-appender-1.0 and log4j-appender-2.17OpenTelemetryAppender, and the correspondingotel.instrumentation.{logback-appender,log4j-appender,jboss-logmanager}.experimental.capture-event-namejavaagent properties. Use theotel.event.namekey in MDC / context data / key-value pairs / Logstash markers / structured arguments instead. (#18223) - Removed previously deprecated experimental config properties
otel.instrumentation.http.client.experimental.redact-query-parametersandotel.instrumentation.common.experimental.db-sqlcommenter.enabled; useotel.instrumentation.sanitization.url.experimental.sensitive-query-parametersandotel.instrumentation.common.db.experimental.sqlcommenter.enabledinstead. (#18229) - Removed the deprecated
otel.instrumentation.servlet.experimental.add-trace-id-request-attributeproperty; useotel.instrumentation.servlet.experimental.trace-id-request-attribute.enabledinstead. (#18237) - Reshaped the ktor
Experimentalhelper from a class with acompanion objectto a top-levelobject. Kotlin source callers (Experimental.emitExperimentalTelemetry(...)) are unaffected, but pre-compiled consumers must be recompiled against the new artifact. (#18343)
🚫 Deprecations
- Deprecate
otel.instrumentation.jaxws-cxf-3.0.enabledin favor ofotel.instrumentation.jaxws-2.0-cxf-3.0.enabled, andotel.instrumentation.jaxws-metro-2.2.enabledin favor ofotel.instrumentation.jaxws-2.0-metro-2.2.enabled. (#18184)
🌟 New javaagent instrumentation
- Add Apache Thrift 0.13 instrumentation for RPC client and server spans and metrics. (#18405)
🌟 New library instrumentation
- Add Apache Thrift 0.13 library instrumentation for RPC client and server spans and metrics. (#18405)
📈 Enhancements
- Couchbase 3.1 javaagent instrumentation now emits the more conventional instrumentation scope name
io.opentelemetry.couchbase-3.1instead ofio.opentelemetry.javaagent.couchbase-3.1whenotel.instrumentation.common.v3-previewis enabled. (#18426) - Wicket resource requests now use the resource reference class name in the server span name when
otel.instrumentation.common.v3-previewis enabled. (#18312, #18775) - Decide whether javaagent helper classes are injected into the application class loader or isolated based on the advice classes used by an instrumentation. (#17815)
- Improve cgroup v2 container ID detection for Podman by supporting additional
mountinfolayouts and warning when multiple candidate IDs are found. (#18272)
🛠️ Bug fixes
- Fix Pekko HTTP and Tapir server route tracking so server span names and
http.routepreserve the most specific matched route across nested directives, exceptions, and timeouts; this may change span names andhttp.routevalues for affected routes. (#16390) - Fix context loss in Finagle HTTP instrumentation across Netty-to-Finagle request conversion and
twitter-utilFuture/Promise asynchronous boundaries. (#17867) - Fix virtual-thread pinning caused by weak-map stale-entry cleanup running on virtual threads; cleanup now runs from the background thread instead. (#18113)
- Avoid linking batch consumer spans to the ambient consumer span when records or messages have no propagation headers. (#18154)
- Fix
resetOnEachOperator()for Reactor 3.1 so it also removes the scheduler hook when instrumentation is disabled. (#18258) - End spans when RxJava 1.0 subscriptions throw synchronously. (#18265)
- Fix Spring Boot service version auto-detection so
META-INF/build-info.propertiesis read from the jar root instead ofBOOT-INF/classes/. (#18292) - Clear the Netty
VirtualFieldafter finishing a response in the Netty 3.8 server instrumentation. (#18358) - Fix
JarDetailsto closeJarFilehandles while reading archives and embedded jars, preventing resource leaks during runtime telemetry collection. (#18385) - Fix a
NullPointerExceptionwhen converting an agent context without an associated application context to an application context. (#18444) - Fix Ktor server instrumentation to prevent OpenTelemetry context leaks caused by incomplete coroutine context restoration. (#18456)
- Fix Vert.x sub-router
http.routeattributes by prepending the mount point to the relative route path; this may change server span names andhttp.routevalues for mounted sub-routes. (#18462) - Fix oshi metrics startup and RSS memory reporting with
oshi7.0.0. (#18478) - Fix Play MVC and Play WS instrumentation on Play 3.x applications. (#18624)
- Record an error receive span when a wrapped Kafka consumer
poll()fails. (#18625) - Fix weak-map cleanup during agent startup by starting
WeakConcurrentMapCleanerbefore Byte Buddy installation. (#18628) - Fix indy instrumentation so it works with the security manager without recursive bootstrap failures. (#18634)
- Avoid a deadlock in weak caches when stale entries are expunged during
computeIfAbsent. (#18635) - Declarative config customizers now handle missing processor and detector lists without throwing
NullPointerExceptionduring startup. (#18641) - Fix a race that could prevent HTTP server spans from ending correctly in Netty 3.8 and 4.0 instrumentation. (#18645)
- Avoid
NumberFormatExceptionwhen a JDBC URL port is null. (#18708) - Fix Vert.x
TaskQueueandOrderedExecutorFactorytask execution so span context propagates to queued runnables. (#18709) - Limit Redisson batch query text length to avoid oversized
db.statementvalues for large batches. (#18744) - Fix SQL query sanitization so password clauses in SAP HANA administrative statements are redacted without redacting
passwordidentifiers. (#18754)
🙇 Thank you
This release was possible thanks to the following contributors who shared their brilliant ideas and awesome pull requests:
@anuraaga
@Ari4ka
@asvanberg
@breedx-splk
@Channyboy
@chatgpt-codex-connector
@deejay1
@dengliming
@dmarkwat
@dta...