Chronosphere recommends creating one dataset per team or per environment.
Understanding data consumption for individual business units can highlight which
sampling rules to adjust so you can better control your trace
data license consumption and remain within defined data limits.
behavior_dataset_slug tag. This tag identifies traces that were
sampled by a particular dataset’s behavior during processing. A trace cam match many
datasets, but will only be sampled by the behaviors on the first dataset it matched.
used to determine the active behavior for sampling purposes.
View datasets
Select from the following methods to view and filter available trace datasets.- Web
- Chronoctl
- Terraform
- API
To view trace datasets:
- In the navigation menu, click Go to Admin and then select Control > Trace Control Plane. The Overview tab displays your total license consumption for the selected period, which defaults to the current month to date. This view includes graphs that display the daily volume breakdown and the cumulative breakdown over the current week.
-
Take any of the following actions to change the displayed data:
- On either of the Processed or Persisted graphs, click the more icon and select Open in Metrics Explorer to visualize the underlying query.
- Toggle Show unique volume to display only the volume of data that doesn’t overlap with another dataset.
- Toggle Show dropped volume to display only the volume of data that’s being dropped.
- Use the search box to search for a specific dataset. The row for each dataset displays, the total data volume, the percent of data overlap, and any active behaviors.
- In the datasets table, select one or more datasets to update the graphs. You can click and drag a section of either graph to zoom in on the selected time period.
- To view an individual dataset, click the name of the dataset you want to view from the list. The individual dataset page includes a definition of the underlying Trace Explorer query and the services at the root of all traces in the dataset. To view the underlying queries, in either the Definition or Root services, click Search in Trace Explorer.
Create datasets
To create a dataset, define and test your trace query, and then map that query to the resource you want to create. After creating datasets, you can assign trace behaviors for your datasets. Behaviors let you set sampling rates and the shaping order, which determines the order of priority behaviors to apply when there are overlapping traces with other datasets. Use one of the following methods to create a dataset.- Web
- Chronoctl
- Terraform
- API
- In the navigation menu, click Go to Admin and then select Control > Trace Control Plane.
- Click Create dataset.
- Enter a display name for your dataset, which is used to generate a default slug. If you want the slug to be a different value, edit the Slug field directly.
- Enter comments about the dataset, such as the business unit this dataset tracks trace data for.
- Define dataset match criteria to outline the query that matches traces you want included in the dataset. You can add one or more span filters to additionally refine the trace results. See Search and filter trace data for information about how to define an effective search for trace data.
- Click View statistics to open Trace Explorer in a new tab with your defined query. Review the results to ensure your query returns the trace data you expect.
- In the Create dataset pane, click Save to create your dataset.
Identify incomplete traces
You can create a dataset specifically for identifying incomplete traces, which are traces with spans that reference other spans outside of the selected trace. Incomplete traces can occur if a service is misconfigured and isn’t exporting spans correctly. Chronosphere recommends creating at least one dataset with the Chronosphere-suppliedparent_missing=true key-value pair to help identify and track changes in incomplete
trace volume or trace instrumentation over time. As you add more trace
instrumentation, fewer traces meet this criteria, which drives down the volume of
traces in this dataset. You can also apply behaviors to this dataset to decrease the
persisted volume of incomplete traces.
Use one of the following examples to create a dataset for identifying incomplete
traces.
- Chronoctl
- Terraform
Chronoctl dataset example
The following YAML definition consists of one dataset namedTraces payment service US prod. This dataset includes any spans that include the
payment service, the payment_store operation, and have a tag where
deployment.environment=production.
If you want to specify criteria at the trace level rather than the span level,
define
trace instead of span in your YAML definition.Chronoctl example
Terraform dataset example
The following Terraform resource creates a dataset that Terraform refers to byprod_payment_us, and with a human-readable name of Traces payment service US prod.
This dataset includes any spans that include the payment service, where the parent
service matches either us-east or us-west, the parent operation begins with
/payment, and a tag where environment includes prod.
If you want to specify criteria at the trace level rather than the span level,
define
trace instead of span in your YAML definition.Terraform example
Assign behaviors
When viewing an individual dataset, you can assign a behavior to the dataset to set sampling rates on two levels:- Assign a main behavior to define the primary behavior for a dataset.
-
Assign an override behavior to temporarily override the main behavior.
You can assign only one main behavior and one override behavior to a dataset.
Assigning a behavior to a dataset is different than
editing the baseline behavior,
where you can modify the facets based on the sampling strategy you want to use.
- Web
- Chronoctl
- API
To assign behaviors to a dataset:
You can also
manage assigned behaviors
from the Behaviors tab of Trace Control Plane.
- In the navigation menu, click Go to Admin and then select Control > Trace Control Plane.
- From the list of datasets, click the dataset you want to manage behaviors for.
- In the selected dataset page, in the Behavior pane, click Manage. If you already have a behavior assigned to a dataset, you can run a preview of another dataset to preview its affects based on a dataset’s volume. This capability lets you temporarily preview a behavior to understand its impact before assigning it.
- In the Main layer pane, select a main behavior from the dropdown.
- Optional: In the Override layer pane, select an override behavior and choose when the override should start and end, and select a duration for how long the override remains active.
- Select a shaping order for your main behavior. Shaping order is in decreasing priority, so a behavior in position one takes precedence over a behavior in position three.
- Click Save to save the behavior definition for your dataset.
Chronoctl behavior example
The following YAML definition consists of one behavior namedTraces payment service US prod. This dataset includes any spans that include the
payment service, the payment_store operation, and have a tag where
deployment.environment=production.
Chronoctl example
Edit datasets
When creating or editing a dataset, you can use the Code Config tool to view code representations of a dataset for Terraform, Chronoctl, and the Chronosphere API. The displayed code also responds to changes you make in the Visual Editor tab. Entities modified by Terraform and Chronoctl are viewable in Observability Platform, but can’t be modified. Select from the following methods to edit trace datasets.- Web
- Chronoctl
- Terraform
- API
- In the navigation menu, click Go to Admin and then select Control > Trace Control Plane.
- From the list of datasets, click the dataset you want to edit.
- On the selected dataset page, click Edit dataset.
- Make changes to your dataset, and then click Save.
Delete datasets
Select from the following methods to delete trace datasets.Users can modify Terraform-managed resources only by using Terraform.
Learn more.
- Web
- Chronoctl
- Terraform
- API
Complete the following steps before you delete a dataset:
- Remove any assigned behaviors.
- Stop any active preview behaviors.
- In the navigation menu, click Go to Admin and then select Control > Trace Control Plane.
- From the list of datasets, click the dataset you want to delete.
- On the selected dataset page, click Delete dataset.
- In the confirmation dialog, click Delete to delete the dataset.

