Autogenerated metrics
Overview
This section explains the metrics LaunchDarkly automatically generates from SDK events and how you can use them to monitor the health of your applications.
Metric events
An “event” happens when someone takes an action in your app, such as clicking on a button, or when a system takes an action, such as loading a page. Your SDKs send these metric events to LaunchDarkly, where, for certain event kinds, LaunchDarkly can automatically create metrics from those events. You can use these metrics with experiments and guarded rollouts to track how your flag changes affect your customers’ behavior.
LaunchDarkly autogenerates metrics from events that are sent:
- from AI SDKs used in conjunction with AI Configs
- during document load, for browser apps, if you are using the Observability SDKs
- as part of OpenTelemetry traces using the OpenTelemetry feature for server-side SDKs
Autogenerated metrics are marked on the Metrics list with an “autogenerated” tag. You can view the events that autogenerated these metrics from the Metrics list by clicking View, then Events.
To learn more, read Events and Metric components.
Randomization units for autogenerated metrics
LaunchDarkly sets the randomization unit for autogenerated metrics to your account’s default context kind for experiments and guarded rollouts. For most accounts, the default context kind is “user”. However, you may have updated your default context kind to “account”, “device”, or some other context kind you use in experiments most often. To learn how to set the default context kind for experiments, read Mark context kinds available for experiments.
All autogenerated metrics are designed to work with a randomization unit of either “user” or “request”. Depending on your account’s default context kind for experiments, you may need to manually update the randomization unit for autogenerated metrics as needed. The recommended randomization units for each autogenerated metric are listed in the tables below. To learn how to manually update the randomization unit for a metric, read Edit metrics.
To learn more, read Randomization units.
Related content
The remaining topics in this category describe the metrics that LaunchDarkly autogenerates from different event types: