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

fix: improve error message format with correlation id #430

Merged
merged 1 commit into from
May 6, 2024

Conversation

jooola
Copy link
Member

@jooola jooola commented May 6, 2024

This improves the format of our error message, as they might be printed to the users.

Before:

hcloud: server name is already used (uniqueness_error) (Correlation ID: d5064a1f0bb9de4b)

After:

hcloud: server name is already used (uniqueness_error, d5064a1f0bb9de4b)

@jooola jooola requested a review from a team as a code owner May 6, 2024 08:45
@jooola jooola force-pushed the lowercase-correlation-id branch from fe49268 to 2893806 Compare May 6, 2024 08:46
@jooola jooola requested a review from apricote May 6, 2024 08:46
Copy link

codecov bot commented May 6, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 80.69%. Comparing base (94229eb) to head (2893806).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #430      +/-   ##
==========================================
- Coverage   80.72%   80.69%   -0.04%     
==========================================
  Files          34       34              
  Lines        5770     5770              
==========================================
- Hits         4658     4656       -2     
- Misses        707      708       +1     
- Partials      405      406       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@jooola jooola merged commit 013477f into main May 6, 2024
4 checks passed
@jooola jooola deleted the lowercase-correlation-id branch May 6, 2024 08:58
@jooola jooola added the backport release-1.x Open PR against release-1.x with these changes after the PR is merged. label May 6, 2024
github-actions bot pushed a commit that referenced this pull request May 6, 2024
This improves the format of our error message, as they might be printed
to the users.

Before:
```
hcloud: server name is already used (uniqueness_error) (Correlation ID: d5064a1f0bb9de4b)
```

After:
```
hcloud: server name is already used (uniqueness_error, d5064a1f0bb9de4b)
```

(cherry picked from commit 013477f)
jooola added a commit that referenced this pull request May 6, 2024
…se-1.x] (#431)

This improves the format of our error message, as they might be printed
to the users.

Before:
```
hcloud: server name is already used (uniqueness_error) (Correlation ID: d5064a1f0bb9de4b)
```

After:
```
hcloud: server name is already used (uniqueness_error, d5064a1f0bb9de4b)
```

---
Backport 013477f from #430.

BEGIN_COMMIT_OVERRIDE
fix: improve error message format with correlation id
END_COMMIT_OVERRIDE

Co-authored-by: Jonas L <jooola@users.noreply.github.com>
jooola pushed a commit that referenced this pull request May 6, 2024
🤖 I have created a release *beep* *boop*
---


##
[2.8.0](v2.7.2...v2.8.0)
(2024-05-06)


### Features

* **error:** show internal correlation id in error messages
([#411](#411))
([6c96d19](6c96d19))
* implement actions waiter
([#407](#407))
([1e3fa70](1e3fa70))
* require Go &gt;= 1.21
([#424](#424))
([d4f4000](d4f4000))


### Bug Fixes

* improve error message format with correlation id
([#430](#430))
([013477f](013477f))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport release-1.x Open PR against release-1.x with these changes after the PR is merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants