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 telemetry remove command #3035

Merged
merged 3 commits into from
Oct 17, 2024

Conversation

eablack
Copy link
Contributor

@eablack eablack commented Oct 11, 2024

GUS WI

Description

Adds telemetry:remove command. Will accept an ID for a specific telemetry drain, or --app to remove all drains associated with an app or --space to remove all drains associated with a space.

@eablack eablack self-assigned this Oct 11, 2024
@eablack eablack temporarily deployed to AcceptanceTests October 16, 2024 18:38 — with GitHub Actions Inactive
@eablack eablack temporarily deployed to AcceptanceTests October 16, 2024 18:39 — with GitHub Actions Inactive
@eablack eablack temporarily deployed to AcceptanceTests October 16, 2024 18:52 — with GitHub Actions Inactive
@eablack eablack temporarily deployed to AcceptanceTests October 16, 2024 18:52 — with GitHub Actions Inactive
@eablack eablack marked this pull request as ready for review October 16, 2024 18:56
@eablack eablack requested a review from a team as a code owner October 16, 2024 18:56
@eablack eablack force-pushed the eb/add-telemetry-remove-command branch from 9c6b4d5 to 635221f Compare October 17, 2024 20:44
@eablack eablack temporarily deployed to AcceptanceTests October 17, 2024 20:45 — with GitHub Actions Inactive
@eablack eablack temporarily deployed to AcceptanceTests October 17, 2024 20:45 — with GitHub Actions Inactive
Copy link
Contributor

@k80bowman k80bowman left a comment

Choose a reason for hiding this comment

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

No big problems here, so I'm approving, but I do have a couple of questions/comments

Comment on lines 33 to 38
ux.action.start(`Removing all telemetry drains from app ${app}`)
const {body: telemetryDrains} = await this.heroku.get<TelemetryDrain[]>(`/apps/${app}/telemetry-drains`, {
headers: {
Accept: 'application/vnd.heroku+json; version=3.fir',
},
})
Copy link
Contributor

Choose a reason for hiding this comment

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

Should the fact that this action could remove all telemetry drains from an app or space be mentioned in the description?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

i'll check with sandy about this. it is mentioned in the flag's description, but maybe it merits an adjustment to the command's overall description?

packages/cli/src/commands/telemetry/remove.ts Outdated Show resolved Hide resolved
@eablack eablack force-pushed the eb/add-telemetry-remove-command branch from 635221f to 6548c3e Compare October 17, 2024 21:31
@eablack eablack temporarily deployed to AcceptanceTests October 17, 2024 21:31 — with GitHub Actions Inactive
@eablack eablack temporarily deployed to AcceptanceTests October 17, 2024 21:31 — with GitHub Actions Inactive
@eablack eablack temporarily deployed to AcceptanceTests October 17, 2024 22:59 — with GitHub Actions Inactive
@eablack eablack temporarily deployed to AcceptanceTests October 17, 2024 22:59 — with GitHub Actions Inactive
@eablack eablack merged commit af5fcb8 into prerelease/10.0.0-alpha Oct 17, 2024
8 checks passed
@eablack eablack deleted the eb/add-telemetry-remove-command branch October 17, 2024 23:08
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