Learn how to set up telemetry .
app/
directory, create a telemetry/
directory, then add a telemetry-hsmeta.json
configuration file within it.
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.
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.Field | Type | Description |
---|---|---|
uid | String | A unique identifier for your telemetry configuration. This can be set to any value, but it will appear in your project settings in your account, so it should be different from other uid values of other app components. |
type | String | The type of component, which should be telemetry in this case. |
config | Object | An object containing the configuration details. See the sub-properties listed in the rows below. |
providerType | String | The name of your third-party telemetry provider. Currently, only SENTRY and HONEYCOMB are supported. |
datasetName | String | A label that will be associated with your log data, if your provider supports that option. |
logTypes | Array | A list of log types sent to your external provider. By default, all logs are propagated to your provider. The available log types include:
|
logLevels | Array | A list of severity levels to filter logs by. Supported log levels are: ["ERROR", "WARNING", "INFO"] |
telemetry-hsmeta.json
configuration file above, you’ll also need to add a secret that corresponds to the authentication key for your provider:
TELEMETRY_SECRET
for log data to be synced correctly.