Skip to content

Missing URL information in Azure Application Insights for Spring WebFlux #4554

@MelleD

Description

@MelleD

Description

Since migrating our application from Spring MVC to Spring WebFlux, Azure Application Insights no longer displays URL information in the overview and request summaries. Instead, it shows entries like org.springframework.web.reactive.function.server.RequestPredicates$$Lambda, which are not useful for filtering or identifying requests.

E.g.

Image

With MVC you see directly the entries:
/api1/myResource1
/api2/myResource2
/api3/myResource3

etc.

Details:

  • In the Application Insights overview, URLs are missing; only Lambda references are shown.
  • When clicking on individual requests, all detailed information including the correct URL is visible.
  • However, without URL information in the overview, filtering and searching requests by URL is currently not possible.
  • This behavior differs from the previous Spring MVC setup, where URLs were displayed correctly and could be used for filtering.

Expected behavior:
Application Insights should show the actual request URLs in the overview and logs to allow efficient filtering and analysis, similar to the MVC experience.

Steps to reproduce:

Setup with maven and spring boot

      <dependency>
         <groupId>com.microsoft.azure</groupId>
         <artifactId>applicationinsights-runtime-attach</artifactId>
      </dependency>
      <dependency>
         <groupId>io.opentelemetry</groupId>
         <artifactId>opentelemetry-api</artifactId>
      </dependency>
    <dependency>
      <groupId>org.springframework.boot</groupId>
      <artifactId>spring-boot-starter-webflux</artifactId>
    </dependency>
@SpringBootApplication
public class MyApplication {

   public static void main( final String[] args ) {
      ApplicationInsights.attach();
      SpringApplication.run( MyApplication.class, args );
   }

}

System information

Please provide the following information:

  • SDK Version: 3.7.6
  • OS type and version: Azure AKS/Kubernetes
  • Application Server type and version (if applicable): Netty
  • Using spring-boot: 3.5.5
  • Additional relevant libraries (with version, if applicable):

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