File tree Expand file tree Collapse file tree 3 files changed +9
-3
lines changed
azure-monitor-opentelemetry
azure/monitor/opentelemetry/util Expand file tree Collapse file tree 3 files changed +9
-3
lines changed Original file line number Diff line number Diff line change 44
55## [ 1.0.0b11] ( https://github.com/microsoft/ApplicationInsights-Python/releases/tag/v1.0.0b11 ) - 2023-04-12
66
7+ - Infer telemetry category disablement from exporter environment variables
8+ ([ #278 ] ( https://github.com/microsoft/ApplicationInsights-Python/pull/278 ) )
79- Reverse default behavior of instrumentations and implement configuration for exclusion
810 ([ #253 ] ( https://github.com/microsoft/ApplicationInsights-Python/pull/253 ) )
911- Use entrypoints instead of importlib to load instrumentations
Original file line number Diff line number Diff line change 2424)
2525from azure .monitor .opentelemetry ._types import ConfigurationValue
2626from opentelemetry .sdk .environment_variables import OTEL_TRACES_SAMPLER_ARG
27- from opentelemetry .environment_variables import OTEL_LOGS_EXPORTER , OTEL_METRICS_EXPORTER , OTEL_TRACES_EXPORTER
27+ from opentelemetry .environment_variables import (
28+ OTEL_LOGS_EXPORTER ,
29+ OTEL_METRICS_EXPORTER ,
30+ OTEL_TRACES_EXPORTER ,
31+ )
2832
2933_INVALID_FLOAT_MESSAGE = "Value of %s must be a float. Defaulting to %s: %s"
3034
Original file line number Diff line number Diff line change @@ -110,7 +110,7 @@ def test_get_configurations_validation(self):
110110 SAMPLING_RATIO_ENV_VAR : "0.5" ,
111111 OTEL_TRACES_EXPORTER : "None" ,
112112 OTEL_LOGS_EXPORTER : "none" ,
113- OTEL_METRICS_EXPORTER : "NONE" ,
113+ OTEL_METRICS_EXPORTER : "NONE" ,
114114 },
115115 clear = True ,
116116 )
@@ -139,7 +139,7 @@ def test_get_configurations_env_vars(self):
139139 SAMPLING_RATIO_ENV_VAR : "Half" ,
140140 OTEL_TRACES_EXPORTER : "False" ,
141141 OTEL_LOGS_EXPORTER : "no" ,
142- OTEL_METRICS_EXPORTER : "True" ,
142+ OTEL_METRICS_EXPORTER : "True" ,
143143 },
144144 clear = True ,
145145 )
You can’t perform that action at this time.
0 commit comments