variance - Calculate the variance of an expression
The variance
command computes the variance of a given value. This is especially useful for answering the question "Is this value normal?".
Syntax
Arguments
Name | Type | Required | Description |
---|---|---|---|
expression | number | true | The expression whose variance we seek |
Example - Computing variance of duration in traces
We can calculate the variance of the duration
metadata field for a collection of traces, and group the results by operationName
in the following way:
This will let us know how much the duration of a given operationName
varies over the specified timerange.
Theme
Light