Skip to content

RemoteDependency ResultCode always set to 0 under Spring Boot 4 #4621

Description

@petergphillips

Expected behavior

The ResultCode is populated with the correct value from the remote dependency call.

Actual behavior

The ResultCode is always 0. Note that Success is true. It used to be set before we upgraded to Spring Boot 4.

To Reproduce

This issue only started happening after the upgrade to Spring Boot 4.

Please see microsoft/ApplicationInsights-Java-Repros#18 for an example and instructions to reproduce.

With console debug on I can see

{"ver":1,"name":"RemoteDependency","time":"2026-02-13T15:01:15.496Z",...,"resultCode":"0","data":"http://localhost:8080/rest-greeting","type":"Http","target":"localhost:8080","success":true,"properties":{"_MS.ProcessedByMetricExtractors":"True"}}}}

appearing in the logs.

System information

Please provide the following information:

  • SDK Version: Agent 3.7.7
  • OS type and version: MacOS, JDK 21 / 25
  • Application Server type and version (if applicable): Spring Boot 4
  • Using spring-boot? yes
  • Additional relevant libraries (with version, if applicable):
Image

Activity

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