Skip to content

Reading Kafka messages is not reflected in the Application Insights as requests since upgrading to Spring boot 4 #4613

Closed

Description

Expected behavior

A <topic-name> process request is created when application receives a message.
Custom events published in the same thread have the operation_Id and operation_parentId filled based on the W3C traceparent header in the Kafka message.

Actual behavior

The requests are not present anymore. The custom events have the fields empty.

I have created a repository with a minimal reproduction of this issue. Please note the description in the README.md.

The example shows that the OpenTelemetry spans are no longer created with valid traceId / spanId. This makes the SpanContext invalid, so the tracing is not continued in BytecodeUtilImpl.

System information

  • SDK Version: 3.7.7
  • Application Server type and version (if applicable): Spring boot 4.0.2
  • Using spring-boot? Yes

Screenshots

Image

Activity

  1. trask commented on Feb 9, 2026

    @trask
    Member

    This should get resolved once we update to the latest OpenTelemetry Java Instrumentation.

  2. nielsvanthof commented on Mar 18, 2026

    @nielsvanthof

    This should get resolved once we update to the latest OpenTelemetry Java Instrumentation.

    Is there a schedule for when a newer version will be released?

  3. xiang17 commented on Apr 5, 2026

    @xiang17
    Member

    A new version 3.7.8 was released. It is in sync with upstream OpenTelemetry Java Instrumentation 2.26.1. Can you try the new version and see if you still have the issue?

  4. apokralipsa commented on Apr 10, 2026

    @apokralipsa
    Author

    As issue #4577 was not resolved in 3.7.8 I was not able to migrate any of our services to Spring Boot 4.x and deploy them.
    I have retested with the reproduction app I mentioned in the issue and it seems it is not fixed.

  5. apokralipsa commented on Aug 4, 2026

    @apokralipsa
    Author

    The issue seems to be resolved in 3.7.9 and we have successfully migrated to Spring Boot 4.x

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions