-
Notifications
You must be signed in to change notification settings - Fork 78
Enable azure core tracing #269
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
babc159 to
4d0ab08
Compare
2df1c97 to
d7086a4
Compare
8c0aaf1 to
6b9486f
Compare
| | Parameter | Description | Environment Variable | | ||
| |-------------------|----------------------------------------------------|----------------------| | ||
| | `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. | `APPLICATIONINSIGHTS_CONNECTION_STRING` | | ||
| <!-- Placeholder for azure core tracing configuration | `disable_azure_core_tracing` | If set to `True`, disables the [Azure Core Tracing OpenTelemetry Plugin][azure_core_tracing_opentelemetry_plugin]. This feature instruments Azure Core functionality to produce OpenTelemetry distributed tracing telemetry. See [samples][azure_core_tracing_opentelemetry_plugin_samples] for more | | --> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is this placeholder for?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In case they push a bug, I think we should eventually have a way to disable the feature since we are not in charge of the plug in.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not just include the config and not have a placeholder?
lzchen
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Small comment above.
| AzureStatusLogger.log_status(False, "Distro being configured.") | ||
| AzureDiagnosticLogging.enable(_logger) | ||
| AzureDiagnosticLogging.enable(_opentelemetry_logger) | ||
| # TODO: Enabled when duplicate logging issue is solved |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IS this TODO no longer needed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah. Turns out diagnostic logging for attach is supposed to work differently. Has to do with AppLens.
Adding Azure-Core Tracing Extension:
https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/core/azure-core-tracing-opentelemetry