Skip to content

Commit 61c4c0b

Browse files
authored
Fix for issue Azure#41470. Added back exception message, removed earlier due to linting errors. (Azure#41512)
* Add exception message back to fix issue Azure#41470 * Updated changelog
1 parent 0c347e9 commit 61c4c0b

File tree

2 files changed

+3
-1
lines changed
  • sdk/monitor/azure-monitor-opentelemetry-exporter

2 files changed

+3
-1
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
### Breaking Changes
88

99
### Bugs Fixed
10+
- Fix for issue #41470. Added back exception message, removed earlier due to linting errors
11+
([#41512] https://github.com/Azure/azure-sdk-for-python/pull/41512)
1012

1113
### Other Changes
1214

sdk/monitor/azure-monitor-opentelemetry-exporter/azure/monitor/opentelemetry/exporter/export/_base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@ def _transmit(self, envelopes: List[TelemetryItem]) -> ExportResult:
314314
_update_requests_map(_REQ_EXCEPTION_NAME[1], value=exc_type)
315315
result = ExportResult.FAILED_RETRYABLE
316316
except Exception as ex:
317-
logger.exception("Envelopes could not be exported and are not retryable: %s.") # pylint: disable=C4769
317+
logger.exception("Envelopes could not be exported and are not retryable: %s.", ex) # pylint: disable=C4769
318318
if self._should_collect_stats():
319319
_update_requests_map(_REQ_EXCEPTION_NAME[1], value=ex.__class__.__name__)
320320
result = ExportResult.FAILED_NOT_RETRYABLE

0 commit comments

Comments
 (0)