Skip to main content
Understanding your tracing license consumption helps identify where you’re spending the most money on your tracing data. Trace datasets are a control mechanism that let you map sets of traces to named groups relevant to your organization, and then track processed and persisted bytes for those groups over time. For example, you might create a Shopper dataset based on data like services, operations, customer IDs, and tags that relate to your shopping app. Viewing that dataset provides a snapshot of trace data volume associated with the entire business unit related to your shopping app.
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.
Datasets are part of the Trace Control Plane, which also includes trace behaviors and head and tail sampling rules. You need administrative access to use the Trace Control Plane. To access trace datasets, in the navigation menu, click Go to Admin and then select Control > Trace Control Plane. When searching traces in Trace Explorer, use the Custom tags field in the Query builder in Trace Explorer to search for the 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.
To view trace datasets:
  1. 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.
  2. 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.
  3. 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.
  4. 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.
  5. 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.
  1. In the navigation menu, click Go to Admin and then select Control > Trace Control Plane.
  2. Click Create dataset.
  3. 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.
  4. Enter comments about the dataset, such as the business unit this dataset tracks trace data for.
  5. 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.
  6. 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.
  7. In the Create dataset pane, click Save to create your dataset.
Observability Platform creates your dataset and displays its definition. Next, assign trace behaviors for your dataset to set sampling rates.

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-supplied parent_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 dataset example

The following YAML definition consists of one dataset named Traces 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 by prod_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.
Both the main and override layers can use any of the trace behavior types, which are baseline, allow, and deny. You can also create custom behaviors and assign them to the main or override layers on datasets. When assigning a behavior to the override layer, you can set the behavior to start immediately, or schedule it to start at a future time. When managing assigned behaviors, you can set the shaping order for overlapping trace datasets. The shaping order determines the priority order to apply behaviors when traces in one dataset overlap with traces in another dataset. For example, if a trace belongs to more than one dataset with an assigned behavior, Observability Platform uses the behavior assigned to the dataset that’s first in the shaping order. The shaping order applies only when the selected behavior is active.
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.
Select from the following methods to assign behaviors to a dataset.
To assign behaviors to a dataset:
You can also manage assigned behaviors from the Behaviors tab of Trace Control Plane.
  1. In the navigation menu, click Go to Admin and then select Control > Trace Control Plane.
  2. From the list of datasets, click the dataset you want to manage behaviors for.
  3. 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.
  4. In the Main layer pane, select a main behavior from the dropdown.
  5. 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.
  6. 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.
  7. Click Save to save the behavior definition for your dataset.

Chronoctl behavior example

The following YAML definition consists of one behavior named Traces 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.
  1. In the navigation menu, click Go to Admin and then select Control > Trace Control Plane.
  2. From the list of datasets, click the dataset you want to edit.
  3. On the selected dataset page, click Edit dataset.
  4. Make changes to your dataset, and then click Save.
Observability Platform saves changes to your dataset.

Delete datasets

Select from the following methods to delete trace datasets.
Users can modify Terraform-managed resources only by using Terraform. Learn more.
Complete the following steps before you delete a dataset:
  1. Remove any assigned behaviors.
  2. Stop any active preview behaviors.
After removing any assigned behaviors and stopping active preview behaviors, delete the dataset:
  1. In the navigation menu, click Go to Admin and then select Control > Trace Control Plane.
  2. From the list of datasets, click the dataset you want to delete.
  3. On the selected dataset page, click Delete dataset.
  4. In the confirmation dialog, click Delete to delete the dataset.