Hi
Is your feature request related to a problem? Please describe.
I have an azure function written in Java which is using spring-cloud-function-adapter-azure, part of my code containing method with @Scheduled annotation with fixedDelay set to 10 seconds. I enabled application insights agent by setting environment variable XDT_MicrosoftApplicationInsights_Java=1 in function app configuration. Logic under annotated method doesn't give me any valuable information so I would like to exclude all spring-scheduling request from tracing in application insights. Currently after each 10 seconds I'm getting information about execution, it's making mess in logs and price of usage is rising.

Describe the solution you would like
Disable spring-scheduling requests in codeless way (e.g by using environment variable, configuration file etc)
Describe alternatives you have considered
I went through open telemetry documentation and application agent source code and thought I can solve my issue by setting JAVA_OPTS in application insights to -Dotel.instrumentation.spring-scheduling.enabled=false or -Dotel.integration.spring-scheduling.enabled=false but it didn't help.
Hi
Is your feature request related to a problem? Please describe.
I have an azure function written in Java which is using
spring-cloud-function-adapter-azure, part of my code containing method with@Scheduledannotation withfixedDelayset to 10 seconds. I enabled application insights agent by setting environment variableXDT_MicrosoftApplicationInsights_Java=1in function app configuration. Logic under annotated method doesn't give me any valuable information so I would like to exclude all spring-scheduling request from tracing in application insights. Currently after each 10 seconds I'm getting information about execution, it's making mess in logs and price of usage is rising.Describe the solution you would like
Disable spring-scheduling requests in codeless way (e.g by using environment variable, configuration file etc)
Describe alternatives you have considered
I went through open telemetry documentation and application agent source code and thought I can solve my issue by setting
JAVA_OPTSin application insights to-Dotel.instrumentation.spring-scheduling.enabled=falseor-Dotel.integration.spring-scheduling.enabled=falsebut it didn't help.