diff --git a/ddtrace/internal/datastreams/processor.py b/ddtrace/internal/datastreams/processor.py index 208f4ea95ea..235edae6755 100644 --- a/ddtrace/internal/datastreams/processor.py +++ b/ddtrace/internal/datastreams/processor.py @@ -247,7 +247,7 @@ def _flush_stats(self, payload): conn.request("POST", self._endpoint, payload, self._headers) resp = get_connection_response(conn) except Exception: - log.error("failed to submit pathway stats to the Datadog agent at %s", self._agent_endpoint, exc_info=True) + log.debug("failed to submit pathway stats to the Datadog agent at %s", self._agent_endpoint, exc_info=True) raise else: if resp.status == 404: @@ -290,7 +290,11 @@ def periodic(self): try: self._flush_stats_with_backoff(compressed) except Exception: - log.error("retry limit exceeded submitting pathway stats to the Datadog agent at %s", self._agent_endpoint) + log.error( + "retry limit exceeded submitting pathway stats to the Datadog agent at %s", + self._agent_endpoint, + exc_info=True, + ) def shutdown(self, timeout): # type: (Optional[float]) -> None diff --git a/releasenotes/notes/dsm-error-logs-to-debug-1b3322c4a8790b72.yaml b/releasenotes/notes/dsm-error-logs-to-debug-1b3322c4a8790b72.yaml new file mode 100644 index 00000000000..5408e92413d --- /dev/null +++ b/releasenotes/notes/dsm-error-logs-to-debug-1b3322c4a8790b72.yaml @@ -0,0 +1,4 @@ +--- +fixes: + - | + datastreams: Changed DSM processor error logs to debug logs for a statement which is retried. If all retries fail, the stack trace is included \ No newline at end of file