Skip to content

Change default behavior of instrumentations and implement exclusion configuration#253

Merged
lzchen merged 4 commits intomicrosoft:mainfrom
lzchen:entry
Feb 28, 2023
Merged

Change default behavior of instrumentations and implement exclusion configuration#253
lzchen merged 4 commits intomicrosoft:mainfrom
lzchen:entry

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
@@ -46,6 +51,7 @@ You can use `configure_azure_monitor` to set up instrumentation for your app to
* 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

Comments