Skip to content

Commit

Permalink
Update cosmos/telemetry.py
Browse files Browse the repository at this point in the history
  • Loading branch information
tatiana authored Jan 3, 2025
1 parent ae1eeeb commit fb838dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cosmos/telemetry.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def emit_usage_metrics(metrics: dict[str, object]) -> bool:
logger.debug("Telemetry is enabled. Emitting the following usage metrics to %s: %s", telemetry_url, metrics)
try:
response = httpx.get(telemetry_url, timeout=constants.TELEMETRY_TIMEOUT, follow_redirects=True)
except httpx.RequestError as e:
except httpx.HTTPError as e:
logger.warning(
"Unable to emit usage metrics to %s. An HTTPX connection error occurred: %s.", telemetry_url, str(e)
)
Expand Down

0 comments on commit fb838dc

Please sign in to comment.