Skip to content

Possibility to disable spring-schedule tracing #1488

@vaaalery

Description

@vaaalery

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.

image

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions