Search code examples
javaazureazure-application-insightsquarkus

Application Insights stops collecting traces after upgrade


For our Java application(Quarkus), in order to improve logging, we decided to upgrade our Application Insights Agent jar from 3.2.8 to 3.4.8. However, after the upgrade, we can query dependencies on the service but when we query the logs, it doesn't return anything. We tried it on other services but the result was the same. We also changed the self-diagnostic level to "Traces" but didn't see any errors.


Solution

  • Turns out that the logging was turned off in applicationinsights.json config:

    "instrumentation": {
        "logging": {
          "level": "OFF"
        },
    }
    

    The problem is that this config was the same when we used the older version but clearly didn't have an effect. Once the level changed to INFO logging started to work as expected.