Skip to content

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

@apokralipsa

Description

@apokralipsa

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

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