Skip to main content
You can set up telemetry for your app, which acts as a log sink to pipe out log data to an external observability provider. Honeycomb and Sentry are supported as third-party providers. You can also specify a custom backend with an endpoint URL pointed at a specific backend provider of your choice. Note that using a custom backend provider for app telemetry is currently in beta, and is subject to HubSpot’s Developer Terms and Developer Beta Terms.

Create and set up telemetry component files

In your project’s src/app/ directory, create a telemetry/ directory, then add a telemetry-hsmeta.json configuration file within it.
Edit the telemetry-hsmeta.json file to configure your provider, log level settings, and more. An example file is provided below, along with a table that details each of the available fields.
Please note: by default, all log types and levels will be synced with your provider via the logTypes and logLevels fields, which may result in a very high volume of data being sent. It’s strongly recommended you start with configuring only the log types you’re interested in, and setting the log levels to filter for errors only.

telemetry-hsmeta.json

The code block below demonstrates an example telemetry-hsmeta.json file configured for Sentry:

Add external authentication as a secret via the CLI

In addition to creating the telemetry-hsmeta.json configuration file above, you’ll also need to add a secret that corresponds to the authentication key for your provider:
  • If you’re using Sentry, you’ll add the DSN (Data Source Name) as a secret.
  • If you’re using Honeycomb, you’ll add an API key as a secret.

Locate a Sentry DSN

If you’re using Sentry, follow the steps below to get your DSN:
  • Log into your Sentry account.
  • Navigate to your project’s settings.
  • Under the Client Keys or DSN section, you’ll find a unique DSN for your project. It should resemble the following:

Locate a Honeycomb API key

If you’re using Honeycomb as your external observability provider, an API key is used to authenticate and forward data. This API key is associated with your specific Honeycomb account and project. To generate a Honeycomb API key:
  • Log into your Honeycomb account.
  • Navigate to your project settings.
  • Find the API Keys section and generate a new key.
  • Copy the generated API key.

Add a secret using the HubSpot CLI

Once you’ve obtained either your Sentry DSN or Honeycomb API key, run the following command to add the value as a secret. When prompted for the name of the secret, you must use TELEMETRY_SECRET for log data to be synced correctly.
Last modified on May 12, 2026