Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add tracing of resolve, for troubleshooting #103

Merged
merged 5 commits into from
Oct 10, 2024

Conversation

nytamin
Copy link
Member

@nytamin nytamin commented Oct 3, 2024

  • What kind of change does this PR introduce? (Bug fix, feature, docs update, ...)

This is a Code improvement.

  • What is the new behavior?

This PR replaces the debug-tracing to console.log, with logging to resolvedTimeline.statistics.resolveTrace.
It also changes a thrown Error into a ResolveError that contains the (partially resolved) resolvedTimeline.

This allows for a consumer of the Timeline resolver to try/catch and better log the resolveTrace, to figure out what might have gone wrong.

(This is an attempt to fix a "Internal Error: There is already an object on layer" issue in production, see TSR PR.)

  • Other information:

@nytamin nytamin requested a review from jstarpl October 3, 2024 11:47
Copy link

sonarqubecloud bot commented Oct 3, 2024

@nytamin nytamin merged commit 021ea73 into master Oct 10, 2024
18 checks passed
@nytamin nytamin deleted the fix/better-trace-resolving branch October 10, 2024 07:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants