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
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
### Breaking Changes

### Bugs Fixed
- Fix customer SDK stats metrics to display drop code and retry code enum values without the prefix
([#44852](https://github.com/Azure/azure-sdk-for-python/pull/44852))

### Other Changes
- Update maximum size of custom properties
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ def _item_drop_callback(self, _options: CallbackOptions) -> Iterable[Observation
if count > 0:
# Create attributes by copying base and adding drop-specific data
attributes = self._base_attributes.copy()
attributes["drop.code"] = drop_code
attributes["drop.code"] = drop_code if isinstance(drop_code, int) else drop_code.value
attributes["drop.reason"] = reason
attributes["telemetry_type"] = telemetry_type
if telemetry_type in (_REQUEST, _DEPENDENCY):
Expand All @@ -353,7 +353,7 @@ def _item_retry_callback(self, _options: CallbackOptions) -> Iterable[Observatio
if count > 0:
# Create attributes by copying base and adding retry-specific data
attributes = self._base_attributes.copy()
attributes["retry.code"] = retry_code
attributes["retry.code"] = retry_code if isinstance(retry_code, int) else retry_code.value
attributes["retry.reason"] = reason
attributes["telemetry_type"] = telemetry_type
observations.append(Observation(count, attributes))
Expand Down