Skip to content

Add configuration to ignore configured process names #3190

@nrcventura

Description

@nrcventura

There are times, especially within cloud environments where environment variables are applied to more processes than desired. This can result in the dotnet agent instrumenting a helper process, when the customer does not want to collect data from that process.

We should consider adding a mechanism to configure a list of process names that should not be instrumented. This configuration should be supported in both an environment variable and configuration file.

In addition to being able to ignore instrumenting certain helper processes, it will also provide a workaround for scenarios where the dotnet agent needs to make changes to its built in list of processes to ignore.

Acceptance Criteria

  1. A process matching the exact process name (case insensitive) in the process exclude list should not be instrumented.
  2. Wildcard characters or regex will not be supported.
  3. A log line should be recorded if a process was not instrumented because of this setting.
  4. The new setting does not need to be checked in the managed agent, and does not need to be reported in the settings payload.
  5. This setting should be documented with the rest of our agent settings.

Additional context

Issue #3189 is the motivation for this feature.

Estimates

Please provide initial t-shirt size: M

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions