refactor: use @heroku/sdk for telemetry commands#3818
Merged
Conversation
erika-wallace
had a problem deploying
to
AcceptanceTests
July 21, 2026 14:55 — with
GitHub Actions
Error
erika-wallace
had a problem deploying
to
AcceptanceTests
July 21, 2026 14:55 — with
GitHub Actions
Failure
erika-wallace
had a problem deploying
to
AcceptanceTests
July 21, 2026 14:55 — with
GitHub Actions
Error
erika-wallace
had a problem deploying
to
AcceptanceTests
July 21, 2026 14:55 — with
GitHub Actions
Failure
erika-wallace
temporarily deployed
to
AcceptanceTests
July 21, 2026 14:58 — with
GitHub Actions
Inactive
erika-wallace
temporarily deployed
to
AcceptanceTests
July 21, 2026 14:58 — with
GitHub Actions
Inactive
erika-wallace
temporarily deployed
to
AcceptanceTests
July 21, 2026 14:58 — with
GitHub Actions
Inactive
erika-wallace
temporarily deployed
to
AcceptanceTests
July 21, 2026 14:58 — with
GitHub Actions
Inactive
erika-wallace
temporarily deployed
to
AcceptanceTests
July 21, 2026 17:14 — with
GitHub Actions
Inactive
erika-wallace
temporarily deployed
to
AcceptanceTests
July 21, 2026 17:14 — with
GitHub Actions
Inactive
erika-wallace
temporarily deployed
to
AcceptanceTests
July 21, 2026 17:14 — with
GitHub Actions
Inactive
erika-wallace
temporarily deployed
to
AcceptanceTests
July 21, 2026 17:14 — with
GitHub Actions
Inactive
erika-wallace
force-pushed
the
ew/sdk-migration-telemetry
branch
from
July 22, 2026 15:07
40764fa to
5a43f06
Compare
erika-wallace
temporarily deployed
to
AcceptanceTests
July 22, 2026 15:07 — with
GitHub Actions
Inactive
erika-wallace
temporarily deployed
to
AcceptanceTests
July 22, 2026 15:07 — with
GitHub Actions
Inactive
erika-wallace
temporarily deployed
to
AcceptanceTests
July 22, 2026 15:07 — with
GitHub Actions
Inactive
erika-wallace
temporarily deployed
to
AcceptanceTests
July 22, 2026 15:07 — with
GitHub Actions
Inactive
k80bowman
approved these changes
Jul 22, 2026
k80bowman
left a comment
Contributor
There was a problem hiding this comment.
Looks good! Just one non-blocking comment.
erika-wallace
force-pushed
the
ew/sdk-migration-telemetry
branch
from
July 22, 2026 19:10
5a43f06 to
b0fc43d
Compare
erika-wallace
temporarily deployed
to
AcceptanceTests
July 22, 2026 19:10 — with
GitHub Actions
Inactive
erika-wallace
temporarily deployed
to
AcceptanceTests
July 22, 2026 19:10 — with
GitHub Actions
Inactive
erika-wallace
temporarily deployed
to
AcceptanceTests
July 22, 2026 19:10 — with
GitHub Actions
Inactive
erika-wallace
temporarily deployed
to
AcceptanceTests
July 22, 2026 19:10 — with
GitHub Actions
Inactive
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Migrates the following
telemetrycommands commands to@heroku/sdk:telemetry/addtelemetry/indextelemetry/infotelemetry/removetelemetry/updateDetails
GET /apps/{app}call toplatform.app.info(),GET /spaces/{space}call toplatform.space.info(), andPOST /telemetry-drainscall toplatform.telemetryDrain.create()GET /apps/{app}/telemetry-drainscall toplatform.telemetryDrain.listByApp()andGET /spaces/{space}/telemetry-drainscall toplatform.telemetryDrain.listBySpace()GET /telemetry-drains/{telemetry_drain_id}call toplatform.telemetryDrain.info()DELETE /telemetry-drains/{telemetry_drain_id}call toplatform.telemetryDrain.delete(), and bulk app/space removal flow fromGET+ per-drainDELETEloops toplatform.telemetryDrain.removeDrains({app|space})PATCH /telemetry-drains/{telemetry_drain_id}call toplatform.telemetryDrain.update()GET /spaces/{id}andGET /apps/{id}toplatform.space.info()andplatform.app.info(). ReplacedAPIClientwithHerokuSDK['platform']TelemetryDrain.signals.Type of Change
Breaking Changes (major semver update)
!after your change type to denote a change that breaks current behaviorFeature Additions (minor semver update)
Patch Updates (patch semver update)
Testing
Notes:
The SDK uses heroku-fetch to make API calls, which looks for a netrc file. Therefore, we must log in with
HEROKU_NETRC_WRITE=true.Requires a Fir app and Private Space that are used for testing. The following steps include destructive actions.
Steps:
npm i && npm run build./bin/run logoutHEROKU_NETRC_WRITE=true ./bin/run logintelemetry:add
./bin/run telemetry:add https://logs.example.com --app APPhttps://logs.example.com"./bin/run telemetry:add https://logs.example-two.com --space SPACE --signals logs --headers '{"x-honeycomb-team": "test-api-key", "x-honeycomb-dataset": "test-dataset"}' --transport grpchttps://logs.example-two.com"telemetry (index/list)
./bin/run telemetry --app APPtraces, metrics, logshttps://logs.example.com./bin/run telemetry --space SPACElogshttps://logs.example-two.comtelemetry:info
./bin/run telemetry:info APP_DRAIN_ID=== APP_DRAIN_ID⬢ APPtraces, metrics, logshttps://logs.example.comHTTP{}./bin/run telemetry:info SPACE_DRAIN_ID=== SPACE_DRAIN_ID⬡ SPACElogshttps://logs.example-two.comgRPC{"x-honeycomb-team": "test-api-key", "x-honeycomb-dataset": "test-dataset"}telemetry:update
./bin/run telemetry:update APP_DRAIN_ID --signals metrics --endpoint https://new-endpoint.example.com=== APP_DRAIN_ID⬢ APPmetricshttps://new-endpoint.example.comHTTP{}./bin/run telemetry:update SPACE_DRAIN_ID --headers '{"x-honeycomb-team": "test-api-key", "x-honeycomb-dataset": "new-dataset"}' --transport http=== SPACE_DRAIN_ID⬡ SPACElogshttps://logs.example-two.comHTTP{"x-honeycomb-team": "test-api-key", "x-honeycomb-dataset": "new-dataset"}telemetry:remove
./bin/run telemetry:add https://logs.example-three.com --app APP./bin/run telemetry:add https://logs.example-four.com --app APP./bin/run telemetry --app APP./bin/run telemetry:add https://logs.example-five.com --space SPACE./bin/run telemetry:add https://logs.example-six.com --space SPACE./bin/run telemetry --space SPACE./bin/run telemetry:remove APP_DRAIN_ID./bin/run telemetry --app APP./bin/run telemetry:remove --app APP./bin/run telemetry --app APP./bin/run telemetry:remove SPACE_DRAIN_ID./bin/run telemetry --space SPACE./bin/run telemetry:remove --space SPACE./bin/run telemetry --space SPACECleanup:
./bin/run logoutScreenshots (if applicable)
Related Issues
GUS work item: W-23374108