This repository was archived by the owner on Sep 17, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +6
-1
lines changed
contrib/opencensus-ext-azure
opencensus/ext/azure/statsbeat Expand file tree Collapse file tree 3 files changed +6
-1
lines changed Original file line number Diff line number Diff line change 22
33## Unreleased
44
5+ - Disable storage for statsbeat if storage is disabled for exporter
6+ ([ #1155 ] ( https://github.com/census-instrumentation/opencensus-python/pull/1155 ) )
7+
58## 1.1.7
69
710Released 2022-08-18
Original file line number Diff line number Diff line change 2424
2525
2626def is_statsbeat_enabled ():
27- return not os .environ .get ("APPLICATIONINSIGHTS_STATSBEAT_DISABLED_ALL" )
27+ disabled = os .environ .get ("APPLICATIONINSIGHTS_STATSBEAT_DISABLED_ALL" )
28+ return disabled is None or disabled .lower () != "true"
2829
2930
3031def increment_statsbeat_initial_failure_count ():
Original file line number Diff line number Diff line change @@ -43,6 +43,7 @@ def collect_statsbeat_metrics(options):
4343 exporter = MetricsExporter (
4444 is_stats = True ,
4545 connection_string = _get_stats_connection_string (options .endpoint ), # noqa: E501
46+ enable_local_storage = options .enable_local_storage ,
4647 enable_standard_metrics = False ,
4748 export_interval = _STATS_SHORT_EXPORT_INTERVAL , # 15m by default
4849 )
You can’t perform that action at this time.
0 commit comments