Skip to content

feat: disable telemetry#229

Open
gabegorelick wants to merge 1 commit into
open-constructs:mainfrom
gabegorelick:disable-telemetry
Open

feat: disable telemetry#229
gabegorelick wants to merge 1 commit into
open-constructs:mainfrom
gabegorelick:disable-telemetry

Conversation

@gabegorelick
Copy link
Copy Markdown
Contributor

@gabegorelick gabegorelick commented Jun 1, 2026

Sending telemetry to Hashicorp is not doing us (or Hashicorp) any good. Even if we don't yet have our own telemetry solution yet (#62), we should just disable telemetry for now.

Related issue

Fixes #48

Description

Keep all the telemetry code, but just don't send the reports anywhere. This way, if/when we want to send telemetry somewhere, e.g. Sentry (#62), we can do so easily.

Checklist

  • I have updated the PR title to match CDKTN's style guide
  • I have run the linter on my code locally
  • I have performed a self-review of my code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation if applicable
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works if applicable
  • New and existing unit tests pass locally with my changes

// Log errors writing to checkpoint
processLoggerError(e.message);
}
// In the future, we will actually send telemetry here.
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

We should be able to drop in some other telemetry provider SDK or HTTP endpoint here.

Sending telemetry to Hashicorp is not doing us (or Hashicorp) any good.
Even if we don't yet have our own telemetry solution yet (open-constructs#62), we
should just disable telemetry for now.

Fixes open-constructs#48
import { ReportRequest, ReportParams } from "@cdktn/commons";
import nock from "nock";

describe("ReportRequest", () => {
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

These tests don't cover anything if we're not sending telemetry somewhere over HTTP.

@gabegorelick gabegorelick marked this pull request as ready for review June 1, 2026 02:48
@gabegorelick gabegorelick requested a review from a team as a code owner June 1, 2026 02:48
@jsteinich
Copy link
Copy Markdown
Contributor

@so0k any plans to pick #62 back up? I'd prefer to not have the churn of disabling just to re-enable something else and instead just go straight to it.

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.

cdktn-cli: telemetry uses HashiCorp's endpoint

2 participants