From 17e189871017f1e36a00161327d6a61bc036bb35 Mon Sep 17 00:00:00 2001 From: Leighton Chen Date: Mon, 4 Nov 2024 12:54:23 -0800 Subject: [PATCH 1/2] release --- .../azure-monitor-opentelemetry-exporter/CHANGELOG.md | 8 ++------ .../opentelemetry/exporter/_quickpulse/_live_metrics.py | 2 +- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/sdk/monitor/azure-monitor-opentelemetry-exporter/CHANGELOG.md b/sdk/monitor/azure-monitor-opentelemetry-exporter/CHANGELOG.md index af43d7ff1660..21bede4d3835 100644 --- a/sdk/monitor/azure-monitor-opentelemetry-exporter/CHANGELOG.md +++ b/sdk/monitor/azure-monitor-opentelemetry-exporter/CHANGELOG.md @@ -1,16 +1,12 @@ # Release History -## 1.0.0b32 (Unreleased) - -### Features Added +## 1.0.0b32 (2024-11-04) ### Breaking Changes - Serialize complex objects provided as log or event bodies to JSON and fall back to string representation if they are not serializable. - ([37694](https://github.com/Azure/azure-sdk-for-python/pull/37694)) - -### Bugs Fixed + ([#37694](https://github.com/Azure/azure-sdk-for-python/pull/37694)) ### Other Changes diff --git a/sdk/monitor/azure-monitor-opentelemetry-exporter/azure/monitor/opentelemetry/exporter/_quickpulse/_live_metrics.py b/sdk/monitor/azure-monitor-opentelemetry-exporter/azure/monitor/opentelemetry/exporter/_quickpulse/_live_metrics.py index 4174d9718fb2..5f5c056fe975 100644 --- a/sdk/monitor/azure-monitor-opentelemetry-exporter/azure/monitor/opentelemetry/exporter/_quickpulse/_live_metrics.py +++ b/sdk/monitor/azure-monitor-opentelemetry-exporter/azure/monitor/opentelemetry/exporter/_quickpulse/_live_metrics.py @@ -100,7 +100,7 @@ def __init__(self, **kwargs: Any) -> None: self._base_monitoring_data_point = MonitoringDataPoint( version=_get_sdk_version(), # Invariant version 5 indicates filtering is supported - invariant_version=5, + invariant_version=2, instance=part_a_fields.get(ContextTagKeys.AI_CLOUD_ROLE_INSTANCE, ""), role_name=part_a_fields.get(ContextTagKeys.AI_CLOUD_ROLE, ""), machine_name=platform.node(), From c7e49a069e0057f3aba99dbd016264a5ced477c0 Mon Sep 17 00:00:00 2001 From: Leighton Chen Date: Mon, 4 Nov 2024 13:16:20 -0800 Subject: [PATCH 2/2] Update test_live_metrics.py --- .../tests/quickpulse/test_live_metrics.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdk/monitor/azure-monitor-opentelemetry-exporter/tests/quickpulse/test_live_metrics.py b/sdk/monitor/azure-monitor-opentelemetry-exporter/tests/quickpulse/test_live_metrics.py index e4dcc4b4493a..4b49b3a173ef 100644 --- a/sdk/monitor/azure-monitor-opentelemetry-exporter/tests/quickpulse/test_live_metrics.py +++ b/sdk/monitor/azure-monitor-opentelemetry-exporter/tests/quickpulse/test_live_metrics.py @@ -102,7 +102,7 @@ def test_init(self, generator_mock): "4321abcd-5678-4efa-8abc-1234567890ac", ) self.assertEqual(qpm._base_monitoring_data_point.version, _get_sdk_version()) - self.assertEqual(qpm._base_monitoring_data_point.invariant_version, 5) + self.assertEqual(qpm._base_monitoring_data_point.invariant_version, 2) self.assertEqual( qpm._base_monitoring_data_point.instance, part_a_fields.get(ContextTagKeys.AI_CLOUD_ROLE_INSTANCE, "") )