Skip to content

Conversation

@ian-scale
Copy link
Contributor

@ian-scale ian-scale commented Sep 18, 2023

Creates structured logging instead of having stack traces spread out over multiple logs.
Consolidates exceptions into one unified place.
Adds support for request_id that is surfaced when an uncaught exception occurs.

@ian-scale ian-scale requested a review from yixu34 September 18, 2023 21:41
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

adding this configuration because we are currently seeing error logs related to this not being properly set up, the error logs go away when this is off. ref: DataDog/dd-trace-py#5212

@ian-scale ian-scale marked this pull request as ready for review September 20, 2023 18:38
Copy link
Member

@yixu34 yixu34 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just wanted to clarify the repository field

detail="deletion of endpoint failed, compute resources still exist.",
) from exc
except Exception as exc:
request_id = get_request_id()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Think this is fine for now, but as we revisit self-hosting in VPCs, we'll probably want some sort of Gateway abstraction for getting the request/trace ID.

Thrown when a user tries to specify a custom Docker image that cannot be found.
"""

repository: str
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just want to check that repository refers to a full image URL, minus the image tag. e.g. it shouldn't refer to an AWS ECR repo purely by its name. In other words, it shouldn't look like some_service, but <account_id>.../some_service or <some dockerhub prefix>.../some_service.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok discussed offline, this is fine for now. If needed in the future, we can deprecate this field and come up with something new in its stead, like image_url.

@ian-scale ian-scale merged commit 3884f85 into main Sep 20, 2023
@ian-scale ian-scale deleted the ianmacleod/error_handling branch September 20, 2023 21:01
@ian-scale ian-scale added the enhancement New feature or request label Nov 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants