Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions sdk/monitor/azure-monitor-opentelemetry/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@

### Bugs Fixed

- Remove VM Resource Detector for hotfix
([#33305](https://github.com/Azure/azure-sdk-for-python/pull/33305))

### Other Changes

## 1.1.0 (2023-11-08)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@

_SUPPORTED_RESOURCE_DETECTORS = (
"azure_app_service",
"azure_vm",
)

_logger = getLogger(__name__)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -199,15 +199,17 @@ def test_setup_resources(self):
_setup_resources()
self.assertEqual(
os.environ["OTEL_EXPERIMENTAL_RESOURCE_DETECTORS"],
"azure_app_service,azure_vm"
# TODO: Change back to "azure_app_service,azure_vm" after VM Resource Detector fix for https://github.com/Azure/azure-sdk-for-python/issues/33295
"azure_app_service"
)

@patch.dict("os.environ", {"OTEL_EXPERIMENTAL_RESOURCE_DETECTORS": "test_detector"})
def test_setup_resources_existing_detectors(self):
_setup_resources()
self.assertEqual(
os.environ["OTEL_EXPERIMENTAL_RESOURCE_DETECTORS"],
"test_detector,azure_app_service,azure_vm"
# TODO: Change back to "azure_app_service,azure_vm" after VM Resource Detector fix for https://github.com/Azure/azure-sdk-for-python/issues/33295
"test_detector,azure_app_service"
)

@patch(
Expand Down