Skip to main content
Span metrics is a processor that turns tracing spans into aggregated metrics (e.g., request counts, latency histograms), reducing export volume and making it easier to build dashboards and alerts. There are two ways to add a span metrics action: using odictl or using YAML files.
1

Launch odictl

odictl
2

Select the actions menu

Use Tab to focus on the Actions pane or press a, then press Enter or click + Add Action with your mouse.Select Actions menu
3

Select Span metrics

Use the arrow keys to move through the list of action types. When Span metrics is highlighted, press Enter.Select Span metrics action
4

Configure span metrics

  1. Press i to enter INSERT mode.
  2. Adjust options such as interval, metricsExpiration, and histogram settings as needed.
  3. When finished, press Esc, then type :wq to save and exit.
Configure Span metrics action
To cancel creating the action, press Esc if you are in INSERT mode, then type :q! to exit without saving.
5

Complete adding the action

Select OK. The action appears in the Actions section in odictl.Complete adding the action
6

Verify the action has been created

Verify the action has been created