All signals settings (#1082)
* Separate settings that apply to all signals * Rename OTEL_DOTNET_AUTO_TRACES_ENABLED to OTEL_DOTNET_AUTO_ENABLED * Rename internals related to OTEL_DOTNET_AUTO_ENABLED Co-authored-by: Rajkumar Rangaraj <rajrang@microsoft.com>
This commit is contained in:
parent
7c1b350b8b
commit
72ce20e1e9
|
|
@ -18,6 +18,8 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm
|
|||
|
||||
### Changed
|
||||
|
||||
- Renamed `OTEL_DOTNET_AUTO_TRACES_ENABLED` to `OTEL_DOTNET_AUTO_ENABLED` since it
|
||||
controls enabling or disabling the CLR profiler independent of the signal type.
|
||||
- `OTEL_DOTNET_AUTO_TRACES_ENABLED_INSTRUMENTATIONS` default value is changed to
|
||||
include all of the available instrumentations.
|
||||
- `OTEL_DOTNET_AUTO_METRICS_ENABLED_INSTRUMENTATIONS` default value is changed to
|
||||
|
|
|
|||
|
|
@ -50,7 +50,7 @@ HRESULT STDMETHODCALLTYPE CorProfiler::Initialize(IUnknown* cor_profiler_info_un
|
|||
// check if tracing is completely disabled
|
||||
if (IsTracingDisabled())
|
||||
{
|
||||
Logger::Info("OpenTelemetry TRACER DIAGNOSTICS - Profiler disabled in ", environment::tracing_enabled);
|
||||
Logger::Info("OpenTelemetry Automatic Instrumentation - CLR Profiler disabled via ", environment::clr_profiler_enabled);
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -6,9 +6,9 @@
|
|||
namespace trace {
|
||||
namespace environment {
|
||||
|
||||
// Sets whether the profiler is enabled. Default is true.
|
||||
// Setting this to false disabled the profiler entirely.
|
||||
const WSTRING tracing_enabled = WStr("OTEL_DOTNET_AUTO_TRACES_ENABLED");
|
||||
// Sets whether the automatic instrumentation, via the CLR profiler, is enabled.
|
||||
// Default is true. Setting this to false disables the CLR profiler.
|
||||
const WSTRING clr_profiler_enabled = WStr("OTEL_DOTNET_AUTO_ENABLED");
|
||||
|
||||
// Sets whether debug mode is enabled. Default is false.
|
||||
const WSTRING debug_enabled = WStr("OTEL_DOTNET_AUTO_DEBUG");
|
||||
|
|
|
|||
|
|
@ -59,7 +59,7 @@ bool IsDumpILRewriteEnabled() {
|
|||
}
|
||||
|
||||
bool IsTracingDisabled() {
|
||||
CheckIfFalse(GetEnvironmentValue(environment::tracing_enabled));
|
||||
CheckIfFalse(GetEnvironmentValue(environment::clr_profiler_enabled));
|
||||
}
|
||||
|
||||
bool IsAzureAppServices() {
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@
|
|||
namespace trace
|
||||
{
|
||||
|
||||
const WSTRING env_vars_to_display[]{environment::tracing_enabled,
|
||||
const WSTRING env_vars_to_display[]{environment::clr_profiler_enabled,
|
||||
environment::debug_enabled,
|
||||
environment::profiler_home_path,
|
||||
environment::integrations_path,
|
||||
|
|
|
|||
Loading…
Reference in New Issue