diff --git a/sdk/monitor/azure-monitor-opentelemetry-exporter/CHANGELOG.md b/sdk/monitor/azure-monitor-opentelemetry-exporter/CHANGELOG.md index cda596fabf99..5c557160c402 100644 --- a/sdk/monitor/azure-monitor-opentelemetry-exporter/CHANGELOG.md +++ b/sdk/monitor/azure-monitor-opentelemetry-exporter/CHANGELOG.md @@ -8,7 +8,7 @@ - Add auto detection for application ID from connection string if not set ([#44644](https://github.com/Azure/azure-sdk-for-python/pull/44644)) - Add support for user id and authId -([#44662](https://github.com/Azure/azure-sdk-for-python/pull/44662)) + ([#44662](https://github.com/Azure/azure-sdk-for-python/pull/44662)) ### Breaking Changes @@ -19,10 +19,12 @@ ([#44852](https://github.com/Azure/azure-sdk-for-python/pull/44852)) ### Other Changes +- Feature tracking for when customer sdkstats is disabled by the user + ([#44888](https://github.com/Azure/azure-sdk-for-python/pull/44888)) - Update maximum size of custom properties -([#44684](https://github.com/Azure/azure-sdk-for-python/pull/44684)) + ([#44684](https://github.com/Azure/azure-sdk-for-python/pull/44684)) - Declare support for Python 3.13 and 3.14 -([#44550](https://github.com/Azure/azure-sdk-for-python/pull/44550)) + ([#44550](https://github.com/Azure/azure-sdk-for-python/pull/44550)) ## 1.0.0b46 (2025-12-04) diff --git a/sdk/monitor/azure-monitor-opentelemetry-exporter/azure/monitor/opentelemetry/exporter/statsbeat/customer/_customer_sdkstats.py b/sdk/monitor/azure-monitor-opentelemetry-exporter/azure/monitor/opentelemetry/exporter/statsbeat/customer/_customer_sdkstats.py index 36cf51865df9..dfe5a586ce96 100644 --- a/sdk/monitor/azure-monitor-opentelemetry-exporter/azure/monitor/opentelemetry/exporter/statsbeat/customer/_customer_sdkstats.py +++ b/sdk/monitor/azure-monitor-opentelemetry-exporter/azure/monitor/opentelemetry/exporter/statsbeat/customer/_customer_sdkstats.py @@ -3,7 +3,6 @@ from typing import TYPE_CHECKING -from azure.monitor.opentelemetry.exporter.statsbeat._state import set_statsbeat_customer_sdkstats_feature_set from ._state import get_customer_stats_manager @@ -21,7 +20,6 @@ def collect_customer_sdkstats(exporter: "BaseExporter") -> None: # type: ignore if not customer_stats.is_initialized: # The initialize method is thread-safe and handles double-initialization customer_stats.initialize(connection_string=exporter._connection_string) # type: ignore - set_statsbeat_customer_sdkstats_feature_set() def shutdown_customer_sdkstats_metrics() -> None: diff --git a/sdk/monitor/azure-monitor-opentelemetry-exporter/azure/monitor/opentelemetry/exporter/statsbeat/customer/_manager.py b/sdk/monitor/azure-monitor-opentelemetry-exporter/azure/monitor/opentelemetry/exporter/statsbeat/customer/_manager.py index c5f6f1f01f30..e0ffee9e281d 100644 --- a/sdk/monitor/azure-monitor-opentelemetry-exporter/azure/monitor/opentelemetry/exporter/statsbeat/customer/_manager.py +++ b/sdk/monitor/azure-monitor-opentelemetry-exporter/azure/monitor/opentelemetry/exporter/statsbeat/customer/_manager.py @@ -32,6 +32,7 @@ get_compute_type, ) +from azure.monitor.opentelemetry.exporter.statsbeat._state import set_statsbeat_customer_sdkstats_feature_set from ._utils import get_customer_sdkstats_export_interval, categorize_status_code, is_customer_sdkstats_enabled @@ -62,6 +63,7 @@ def __init__(self): self._status = CustomerSdkStatsStatus.UNINITIALIZED else: self._status = CustomerSdkStatsStatus.DISABLED + set_statsbeat_customer_sdkstats_feature_set() self._counters = _CustomerSdkStatsTelemetryCounters() self._language = _CUSTOMER_SDKSTATS_LANGUAGE