Skip to content

Disable/enable instrumentations #44

Open

Description

@pavolloffay

Auto instrumentation can sometimes cause issues. Therefore having a config to disable a specific framework(s) is very useful.

I need this config for the Javaagent but I anticipate it might be useful for other agents as well. In java agent a framework instrumentation can be disabled by -Dotel.instrumentation.aws-sdk.enabled=false".

I propose to add top level config

message AgentConfig {
 map<string, boolean> instrumentation = 3;
}

The boolean because in some cases an agent might ship instrumentation that is disabled by default (e.g. produces too much data) so there should be a way to enable it.

Activity

  1. changed the title [-]Disable instrumentation [/-] [+]Disable/enable instrumentations[/+] on Jan 29, 2021
  2. davexroth commented on Jan 29, 2021

    @davexroth

    +1

  3. jcchavezs commented on Jan 29, 2021

    @jcchavezs
    Contributor

    Question so the key in the map defines the framework?

  4. pavolloffay commented on Jan 29, 2021

    @pavolloffay
    MemberAuthor

    yes e.g. servlet

  5. jcchavezs commented on Jan 29, 2021

    @jcchavezs
    Contributor
  6. mohit-a21 commented on Feb 1, 2021

    @mohit-a21
    Contributor

    @jcchavezs Can this be used by goagent for disabling tracing for specific packages? If this is specific to java agent and we would have to add different config for go agent, then I would prefer having this as a oneof. @pavolloffay

  7. jcchavezs commented on Feb 20, 2021

    @jcchavezs
    Contributor

    @mohit-a21 that would be the idea.

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

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions