简体   繁体   中英

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.

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM