Skip to content

Commit 976e748

Browse files
committed
lint
1 parent 032a063 commit 976e748

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
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

azure-monitor-opentelemetry/azure/monitor/opentelemetry/util/configurations.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,11 @@
2424
)
2525
from azure.monitor.opentelemetry._types import ConfigurationValue
2626
from 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

azure-monitor-opentelemetry/tests/configuration/test_util.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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
)

0 commit comments

Comments
 (0)