Skip to content

Commit 87170a7

Browse files
committed
Update CHANGELOG and fix format
1 parent 8a200b3 commit 87170a7

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

sdk/monitor/azure-monitor-opentelemetry-exporter/CHANGELOG.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
### Breaking Changes
1010

1111
### Bugs Fixed
12+
- Fix attributes override in Rate Limited Sampler
13+
([#45592](https://github.com/Azure/azure-sdk-for-python/pull/45592))
1214
- Add environment variable to disable/enable custom properties truncation
1315
([#45479](https://github.com/Azure/azure-sdk-for-python/pull/45479))
1416
- Fix io counters import issue in performance counters
@@ -25,8 +27,6 @@
2527
### Bugs Fixed
2628
- Fix CPU usage calculation logic for live metrics
2729
([#45005](https://github.com/Azure/azure-sdk-for-python/pull/45005))
28-
- Fix attributes override in Rate Limited Sampler
29-
([#45592](https://github.com/Azure/azure-sdk-for-python/pull/45592))
3030

3131
### Other Changes
3232
- Fix Ingestion-Side Sampling Disk Persist Behavior

sdk/monitor/azure-monitor-opentelemetry-exporter/tests/trace/test_rate_limited_sampling.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,9 @@ def test_sampling_percentage_100_does_not_add_sample_rate_attribute(self):
230230
sampler._sampling_percentage_generator.get = Mock(return_value=100.0)
231231

232232
original_attributes = {"service.name": "test-service", "operation.name": "test-operation"}
233-
result = sampler.should_sample(parent_context=None, trace_id=123, name="test-span", attributes=original_attributes)
233+
result = sampler.should_sample(
234+
parent_context=None, trace_id=123, name="test-span", attributes=original_attributes
235+
)
234236

235237
self.assertEqual(dict(result.attributes), original_attributes)
236238
self.assertNotIn(_SAMPLE_RATE_KEY, result.attributes)
@@ -246,7 +248,9 @@ def test_sampling_percentage_non_100_adds_sample_rate_attribute(self):
246248
sampler._sampling_percentage_generator.get = Mock(return_value=42.0)
247249

248250
original_attributes = {"service.name": "test-service", "operation.name": "test-operation"}
249-
result = sampler.should_sample(parent_context=None, trace_id=123, name="test-span", attributes=original_attributes)
251+
result = sampler.should_sample(
252+
parent_context=None, trace_id=123, name="test-span", attributes=original_attributes
253+
)
250254

251255
self.assertEqual(dict(result.attributes), {**original_attributes, _SAMPLE_RATE_KEY: 42.0})
252256
self.assertIn(_SAMPLE_RATE_KEY, result.attributes)

0 commit comments

Comments
 (0)