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

[teleport-update] Fix usage of trace #49388

Merged
merged 2 commits into from
Dec 4, 2024
Merged

Conversation

sclevine
Copy link
Member

@sclevine sclevine commented Nov 23, 2024

@hugoShaka pointed out to me that trace.Errorf does not accurately record stack traces when used to wrap errors. This PR migrates teleport-update from trace.Errorf to trace.Wrap for error wrapping.


The teleport-update binary will be used to enable, disable, and trigger automatic Teleport agent updates. The new auto-updates system manages a local installation of the cluster-specified version of Teleport stored in /var/lib/teleport/versions.

RFD: #47126
Goal (internal): https://github.com/gravitational/cloud/issues/10289

@sclevine sclevine added the no-changelog Indicates that a PR does not require a changelog entry label Nov 23, 2024
@sclevine sclevine force-pushed the sclevine/teleport-update-namespace branch from eeaab53 to 9f5117e Compare November 23, 2024 02:32
@sclevine sclevine force-pushed the sclevine/teleport-update-trace branch from 71c7832 to 80316ba Compare November 23, 2024 02:33
@dustinspecker
Copy link

dustinspecker commented Nov 26, 2024

This is really good to know about. I've been using trace.Errorf 100% of the time.

Base automatically changed from sclevine/teleport-update-namespace to master December 3, 2024 22:30
@sclevine sclevine force-pushed the sclevine/teleport-update-trace branch from 80316ba to 0375872 Compare December 4, 2024 00:25
@sclevine sclevine enabled auto-merge December 4, 2024 00:27
@sclevine sclevine added this pull request to the merge queue Dec 4, 2024
Merged via the queue into master with commit 7eeed25 Dec 4, 2024
40 checks passed
@sclevine sclevine deleted the sclevine/teleport-update-trace branch December 4, 2024 01:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
no-changelog Indicates that a PR does not require a changelog entry size/sm
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants