Try it free

Measure an important code path with histograms in OpenPipeline

  • Latest Dynatrace
  • How-to guide
  • 2-min read

Use OpenPipeline to measure important parts of your application code and analyze outliers. For example, you can capture response times for a specific method and visualize the resulting data as a histogram to identify unusually slow executions.

How-to

To measure an important code path with a sampling-aware histogram metric:

  1. Go to Distributed Tracing Distributed Tracing and identify the method name that you want to measure.

    Identify important methods
    Identify important methods
  2. Go to Settings Settings > Process and contextualize > OpenPipeline > Spans.

  3. Select Pipelines and choose the pipeline you want to use or create a new pipeline (:PlusIcon: Pipeline).

  4. Select Metric extraction > Processor > Sampling Aware Histogram Metric.

  5. Define the processor:

    • Enter a metric name and metric key—for example, my-span-histogram-metric.
    • In Matching condition, define the method that you want to measure, for example span.name == "GetProduct".
  6. Select Save and close.

  7. Make sure data is routed to the pipeline.

You created a new pipeline that extracts sampling aware histogram metrics from spans with the name GetProduct. You can now analyze data with your new metric.

  1. Go to Notebooks Notebooks.
  2. Choose an existing notebook or create a new one.
  3. Add a new Metrics section.
  4. Select Histogram and then choose the metric that you configured (my-span-histogram-metric).
Related tags
Dynatrace Platform