Skip to content

Conversation

@lzchen
Copy link
Contributor

@lzchen lzchen commented Feb 24, 2023

Previously, default behavior was to enable instrumentations by passing in a configuration to name libraries that user wants to enable. This seems too tedious and adds extra code for the user.

Change default behavior to enable all instrumentations, and implement configuration to exclude certain libraries via exclude_instrumentations configuration. This matches with the behavior of sitecustomize.py in OT and in attach.

@lzchen lzchen requested review from a team and jeremydvoss as code owners February 24, 2023 06:27

* connection_string - The [connection string][connection_string_doc] for your Application Insights resource. The connection string will be automatically populated from the `APPLICATIONINSIGHTS_CONNECTION_STRING` environment variable if not explicitly passed in.
* instrumentations - Specifies the libraries with [instrumentations][ot_instrumentations] that you would like to use. Accepts a comma separated list. e.g. `["requests", "flask"]`
* disable_logging - If set to `True`, disables collection and export of logging telemetry. Defaults to `False`.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove instrumentations

@lzchen lzchen merged commit cdf507e into microsoft:main Feb 28, 2023
@lzchen lzchen deleted the entry branch February 28, 2023 03:38
@jeremydvoss jeremydvoss mentioned this pull request Apr 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants