:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.
Python ab-testingai-analyticsanalyticscdpdata-warehouseexperimentsfeature-flagsjavascriptproduct-analyticspythonreactsession-replaysurveystypescriptweb-analytics
feat(insights): add nanosecond duration formatting (#72193)
Paul D'Ambra8725467b9920
diff --git a/ee/hogai/tools/create_insight.py b/ee/hogai/tools/create_insight.pyindex f63d7a18999d..8aee6b446e4d 100644--- a/ee/hogai/tools/create_insight.py+++ b/ee/hogai/tools/create_insight.py@@ -307,7 +307,7 @@ Display type: (ActionsLineGraph/ActionsBar/ActionsAreaGraph/ActionsLineGraphCumuShow legend: yes/noShow values on series: yes/noY-axis scale: linear/log10-Axis format: numeric/duration/duration_ms/percentage/percentage_scaled/currency+Axis format: numeric/duration/duration_ms/duration_ns/percentage/percentage_scaled/currencyAxis prefix: (e.g., "$")Axis postfix: (e.g., " clicks")Decimal places: (number)diff --git a/frontend/src/queries/schema.json b/frontend/src/queries/schema.jsonindex dab9374b5581..e6a9355f40cd 100644--- a/frontend/src/queries/schema.json+++ b/frontend/src/queries/schema.json@@ -653,7 +653,16 @@"type": "object"},"AggregationAxisFormat": {- "enum": ["numeric", "duration", "duration_ms", "percentage", "percentage_scaled", "currency", "short"],+ "enum": [+ "numeric",+ "duration",+ "duration_ms",+ "duration_ns",+ "percentage",+ "percentage_scaled",+ "currency",+ "short"+ ],"type": "string"},"AlertCalculationInterval": {diff --git a/frontend/src/scenes/insights/aggregationAxisFormat.ts b/frontend/src/scenes/insights/aggregationAxisFormat.tsindex 7ca9e6d4171d..bf76ac4afbf3 100644--- a/frontend/src/scenes/insights/aggregationAxisFormat.ts+++ b/frontend/src/scenes/insights/aggregationAxisFormat.ts@@ -8,13 +8,23 @@ import { compactNumber, humanFriendlyCurrency, humanFriendlyNumber, percentage }import { CurrencyCode, TrendsFilter } from '~/queries/schema/schema-general'import { ChartDisplayType, TrendsFilterType } from '~/types'-const formats = ['numeric', 'duration', 'duration_ms', 'percentage', 'percentage_scaled', 'currency', 'short'] as const+const formats = [+ 'numeric',+ 'duration',+ 'duration_ms',+ 'duration_ns',+ 'percentage',+ 'percentage_scaled',+ 'currency',+ 'short',+] as constexport type AggregationAxisFormat = (typeof formats)[number]export const INSIGHT_UNIT_OPTIONS: LemonSelectOptionLeaf<AggregationAxisFormat>[] = [{ value: 'numeric', label: 'None' },{ value: 'duration', label: 'Duration (s)' },{ value: 'duration_ms', label: 'Duration (ms)' },+ { value: 'duration_ns', label: 'Duration (ns)' },{ value: 'percentage', label: 'Percent (0-100)' },{ value: 'percentage_scaled', label: 'Percent (0-1)' },{ value: 'currency', label: 'Currency ($)' },@@ -31,11 +41,27 @@ export const INSIGHT_UNIT_OPTIONS_SHORT: Record<AggregationAxisFormat, string> =numeric: '',duration: 's',duration_ms: 'ms',+ duration_ns: 'ns',percentage: '%',percentage_scaled: '%',currency: '$',short: 'Short',}++const formatNanoseconds = (value: number): string => {+ if (value < 0) {+ return `-${formatNanoseconds(-value)}`+ }+ const absoluteValue = Math.abs(value)+ if (absoluteValue < 1_000) {+ return `${humanFriendlyNumber(value)}ns`+ }+ if (absoluteValue < 1_000_000) {+ return `${humanFriendlyNumber(value / 1_000)}µs`+ }+ return humanFriendlyDuration(value / 1_000_000_000, { secondsFixed: 1 })+}+// this function needs to support a trendsFilter as part of an insight query and// legacy trend filters, as we still return these as part of a data responseexport const formatAggregationAxisValue = (@@ -67,6 +93,9 @@ export const formatAggregationAxisValue = (case 'duration_ms':formattedValue = humanFriendlyDuration(value / 1000, { secondsFixed: 1 })break+ case 'duration_ns':+ formattedValue = formatNanoseconds(value)+ breakcase 'percentage':formattedValue = percentage(value / 100, maxDecimalPlaces)breakdiff --git a/frontend/src/scenes/insights/aggregationAxisFormats.test.ts b/frontend/src/scenes/insights/aggregationAxisFormats.test.tsindex f645bb146bf4..66881aa68903 100644--- a/frontend/src/scenes/insights/aggregationAxisFormats.test.ts+++ b/frontend/src/scenes/insights/aggregationAxisFormats.test.ts@@ -13,6 +13,10 @@ describe('formatAggregationAxisValue', () => {{ candidate: 34, filters: { aggregation_axis_format: 'duration' }, expected: '34s' },{ candidate: 340, filters: { aggregation_axis_format: 'duration' }, expected: '5m 40s' },{ candidate: 3940, filters: { aggregation_axis_format: 'duration' }, expected: '1h 5m 40s' },+ { candidate: 500, filters: { aggregation_axis_format: 'duration_ns' }, expected: '500ns' },+ { candidate: 500_000, filters: { aggregation_axis_format: 'duration_ns' }, expected: '500µs' },+ { candidate: 1_000_000, filters: { aggregation_axis_format: 'duration_ns' }, expected: '1ms' },+ { candidate: 1_500_000_000, filters: { aggregation_axis_format: 'duration_ns' }, expected: '1.5s' },{ candidate: 3.944, filters: { aggregation_axis_format: 'percentage' }, expected: '3.94%' },{ candidate: 3.956, filters: { aggregation_axis_format: 'percentage' }, expected: '3.96%' },{ candidate: 3940, filters: { aggregation_axis_format: 'percentage' }, expected: '3,940%' },diff --git a/packages/quill/packages/charts/AGENTS.md b/packages/quill/packages/charts/AGENTS.mdindex e334846bcf21..cc3781367e82 100644--- a/packages/quill/packages/charts/AGENTS.md+++ b/packages/quill/packages/charts/AGENTS.md@@ -85,9 +85,9 @@ Charts fill their container and need a parent with real dimensions — a `0`-hei- `MetricCard` is a left-aligned tile. Pass `title={null}` to drop the title row — the header band collapses when there is no title and no change pill, and the subtitle row is omitted when there is no subtitle (and no `labels`), so a value-only card renders just the number. `changeSize="md"` renders a larger change pill (default `sm`); `changeInline` puts the pill beside the headline instead of in the header; `sparklineFill` makes the sparkline fill the card's remaining height instead of a fixed `sparklineHeight`; `sparklineDashedFromIndex` dashes the sparkline from that index onward (e.g. an in-progress trailing period). `subtitle` always wins (shown at rest and on hover); `restingSubtitle` (e.g. `'Avg'`) shows only at rest and yields to the hovered point's label on hover — pair it with a `value` that summarizes the series (average/total) so the headline reads as a summary until hovered. `hoverChangeFromPreviousPoint` keeps the supplied resting `change` pill at rest but, while hovering, swaps it for the hovered point's change vs the previous point (hidden at the first point). `changeTooltip` shows a styled hover tooltip (floating-ui, using the host's tooltip surface tokens with chart-surface fallbacks) on the change pill (e.g. to spell out what the resting comparison is).- The composable form of `MetricCard` lives one layer up as `Metric` in `@posthog/quill-components` (it needs `Card`/`Badge` from primitives, which charts can't depend on). It's built on `Sparkline` plus the headless metric helpers this package exports — `resolveDelta` / `computeFallbackChangePercent` (delta math), `useAnimatedNumber` (count-up headline), `useHoverIntent` (hover dwell) — and the `MetricChange` / `ResolvedDelta` types. Reach for `Metric` when you need a custom layout; use the monolithic `MetricCard` here for the default self-contained tile.- `TimeSeriesComboChart` wraps `ComboChart` the way `TimeSeriesLineChart`/`TimeSeriesBarChart` wrap their base charts: `config.xAxis`/`config.yAxis` (date tick formatter, y-format, scale, grid), `config.goalLines` (off-scale targets stretch the value axis via `ComboChart`'s `valueDomain`), `config.legend` (click-to-toggle), and `config.valueLabels`. Per-series `type` (`'bar' | 'line' | 'area'`) drives rendering; `barLayout` (`'stacked' | 'grouped' | 'percent'`), `divergingStack` (stacked only — negative bar values stack below the zero baseline instead of being clamped to 0, same semantics as `BarsConfig.divergingStack`), and right-axis series (`yAxisId: 'right'`) carry over from `ComboChart`. `ComboChart` itself now also honors `valueDomain` (primary axis only) and `showAxisLines`.-- y-axis `format`: `numeric | short | percentage | percentage_scaled | currency | duration | duration-ms`, plus `prefix`/`suffix`.+- y-axis `format`: `numeric | short | percentage | percentage_scaled | currency | duration | duration_ms | duration_ns`, plus `prefix`/`suffix`.- y-axis baseline: defaults to clamping a non-negative axis down to 0 (matching the classic insight axis). To float the axis to its data range instead — zooming in on the variation — set `yAxis.startAtZero: false` on `TimeSeriesLineChart`, or `config.floatBaseline: true` on the lower-level `LineChart`. Ignored on a log scale (no zero baseline) and applied to the primary axis only. Bar charts always draw from a zero baseline, so the flag is a no-op there.-- Dual / multi y-axis: give a series a `yAxisId` to scale it against a second axis. On `TimeSeriesLineChart`, pass `config.yAxis` as an **array** — one `YAxisConfig` per axis — to format/scale each axis independently: set `id` (matches `Series.yAxisId`; first entry defaults to `'left'`), `position` (`'left'`/`'right'`; first entry defaults to `'left'`, the rest to `'right'`), and the usual `scale`/`format`/`tickFormatter`/`label`/`showGrid` per entry. `hide` and `startAtZero` are honored per entry (bar-series axes keep their zero baseline). A single object stays single-axis (unchanged). The second axis only renders when a series actually targets it; the primary (left) axis owns the gridlines. More than two axes work too (trends `showMultipleYAxes`): they stack outward per side and alternate sides. Each entry's `label` renders that axis's title at its own gutter — every axis is titled the same way (a single-object `yAxis`/scalar `yAxisLabel` is just the one left axis), driven by the shared `computeYAxisGutters` layout that `AxisLabels` (ticks) and `AxisTitles` (titles) both read so the two can't drift. `TimeSeriesBarChart`/`TimeSeriesComboChart` take the same `yAxis` array; a sole axis pinned `right` renders on the right on every chart type.+- Dual / multi y-axis: give a series a `yAxisId` to scale it against a second axis. On `TimeSeriesLineChart`, pass `config.yAxis` as an **array** — one `YAxisConfig` per axis — to format/scale each axis independently: set `id` (matches `Series.yAxisId`; first entry defaults to `'left'`), `position` (`'left'`/`'right'`; first entry defaults to `'left'`, the rest to `'right'`), and the usual `scale`/`format`/`tickFormatter`/`label`/`showGrid` per entry. Duration formatters accept seconds (`duration`), milliseconds (`duration_ms`), or nanoseconds (`duration_ns`). `hide` and `startAtZero` are honored per entry (bar-series axes keep their zero baseline). A single object stays single-axis (unchanged). The second axis only renders when a series actually targets it; the primary (left) axis owns the gridlines. More than two axes work too (trends `showMultipleYAxes`): they stack outward per side and alternate sides. Each entry's `label` renders that axis's title at its own gutter — every axis is titled the same way (a single-object `yAxis`/scalar `yAxisLabel` is just the one left axis), driven by the shared `computeYAxisGutters` layout that `AxisLabels` (ticks) and `AxisTitles` (titles) both read so the two can't drift. `TimeSeriesBarChart`/`TimeSeriesComboChart` take the same `yAxis` array; a sole axis pinned `right` renders on the right on every chart type.- `onDateRangeZoom` (on `LineChart`/`TimeSeriesLineChart`/`BarChart`/`TimeSeriesBarChart`/base `Chart`) enables x-axis drag-to-zoom: the user drags horizontally and the callback fires once with `{ startLabel, endLabel, startIndex, endIndex }` for the spanned range. Despite the name it is label-generic — it resolves the drag against label positions, so it works the same on categorical labels (weekdays, duration buckets) as on dates. A drag whose edges both snap to the same label (common on sparse charts, e.g. a 3-bar monthly chart) selects that single bucket, provided the drag spans enough horizontal distance to read as intentional. The cursor switches to a crosshair when set. x-axis only — no effect on charts with a vertical interaction axis (`axisOrientation: 'horizontal'` bars, where the core disables the gesture).## Testingdiff --git a/packages/quill/packages/charts/src/utils/y-formatters.test.ts b/packages/quill/packages/charts/src/utils/y-formatters.test.tsindex 4e70480f5257..8c171d04ab13 100644--- a/packages/quill/packages/charts/src/utils/y-formatters.test.ts+++ b/packages/quill/packages/charts/src/utils/y-formatters.test.ts@@ -9,6 +9,9 @@ describe('buildYTickFormatter', () => {['percentage_scaled', { format: 'percentage_scaled' as const }, 0.5, '50%'],['duration', { format: 'duration' as const }, 90, `1m${NBSP}30s`],['duration_ms', { format: 'duration_ms' as const }, 1500, '1.5s'],+ ['duration_ns below one microsecond', { format: 'duration_ns' as const }, 500, '500ns'],+ ['duration_ns below one millisecond', { format: 'duration_ns' as const }, 500_000, '500µs'],+ ['duration_ns', { format: 'duration_ns' as const }, 1_500_000_000, '1.5s'],['short', { format: 'short' as const }, 1500, `1.5${NBSP}K`],['prefix and suffix', { format: 'numeric' as const, prefix: '~', suffix: '!' }, 7, '~7!'],['prefix preserved on negative', { format: 'numeric' as const, prefix: '$' }, -42, '$-42'],diff --git a/packages/quill/packages/charts/src/utils/y-formatters.ts b/packages/quill/packages/charts/src/utils/y-formatters.tsindex 392938c2a81b..5cf93b9a2131 100644--- a/packages/quill/packages/charts/src/utils/y-formatters.ts+++ b/packages/quill/packages/charts/src/utils/y-formatters.ts@@ -14,6 +14,7 @@ export type YAxisFormat =| 'currency'| 'duration'| 'duration_ms'+ | 'duration_ns'| 'short'export interface YFormatterConfig {@@ -27,6 +28,20 @@ export interface YFormatterConfig {currency?: string}+function formatNanoseconds(value: number): string {+ if (value < 0) {+ return `-${formatNanoseconds(-value)}`+ }+ const absoluteValue = Math.abs(value)+ if (absoluteValue < 1_000) {+ return `${humanFriendlyNumber(value)}ns`+ }+ if (absoluteValue < 1_000_000) {+ return `${humanFriendlyNumber(value / 1_000)}µs`+ }+ return humanFriendlyDuration(value / 1_000_000_000, { secondsFixed: 1 })+}+export function buildYTickFormatter(config: YFormatterConfig): (value: number) => string {const { format, prefix, suffix, decimalPlaces, minDecimalPlaces, currency } = configreturn (value: number): string => {@@ -38,6 +53,9 @@ export function buildYTickFormatter(config: YFormatterConfig): (value: number) =case 'duration_ms':formatted = humanFriendlyDuration(value / 1000, { secondsFixed: 1 })break+ case 'duration_ns':+ formatted = formatNanoseconds(value)+ breakcase 'percentage':formatted = percentage(value / 100, decimalPlaces)breakdiff --git a/posthog/schema_enums.py b/posthog/schema_enums.pyindex 2947986efe82..3d5edc7cc406 100644--- a/posthog/schema_enums.py+++ b/posthog/schema_enums.py@@ -58,6 +58,7 @@ class AggregationAxisFormat(StrEnum):NUMERIC = "numeric"DURATION = "duration"DURATION_MS = "duration_ms"+ DURATION_NS = "duration_ns"PERCENTAGE = "percentage"PERCENTAGE_SCALED = "percentage_scaled"CURRENCY = "currency"diff --git a/products/alerts/backend/evaluation/formatting.py b/products/alerts/backend/evaluation/formatting.pyindex 4709d8b730a1..fcae0dc8e00b 100644--- a/products/alerts/backend/evaluation/formatting.py+++ b/products/alerts/backend/evaluation/formatting.py@@ -96,6 +96,8 @@ def format_aggregation_value(formatted = _format_duration_seconds(value)case AggregationAxisFormat.DURATION_MS:formatted = _format_duration_seconds(value / 1000, seconds_fixed=1)+ case AggregationAxisFormat.DURATION_NS:+ formatted = _format_duration_nanoseconds(value)case AggregationAxisFormat.PERCENTAGE:formatted = _percentage(value / 100, decimal_places)case AggregationAxisFormat.PERCENTAGE_SCALED:@@ -198,6 +200,15 @@ def _format_duration_seconds(value: float, *, seconds_fixed: int | None = None)return " ".join(units)+def _format_duration_nanoseconds(value: float) -> str:+ absolute_value = abs(value)+ if absolute_value < 1_000:+ return f"{_human_friendly_number(value)}ns"+ if absolute_value < 1_000_000:+ return f"{_human_friendly_number(value / 1_000)}µs"+ return _format_duration_seconds(value / 1_000_000_000, seconds_fixed=1)++def _trim_float(formatted: str) -> str:"""Strip trailing zeros (and a bare trailing dot) from a fixed-point string, like JS parseFloat."""if "." in formatted:diff --git a/products/alerts/backend/evaluation/test/test_formatting.py b/products/alerts/backend/evaluation/test/test_formatting.pyindex e28bbf02319a..ad5882b0d56f 100644--- a/products/alerts/backend/evaluation/test/test_formatting.py+++ b/products/alerts/backend/evaluation/test/test_formatting.py@@ -38,6 +38,9 @@ A = AggregationAxisFormat(-72.0, {"axis_format": A.DURATION}, "-1m 12s"),(3660.0, {"axis_format": A.DURATION}, "1h 1m"),(1500.0, {"axis_format": A.DURATION_MS}, "1.5s"),+ (500.0, {"axis_format": A.DURATION_NS}, "500ns"),+ (500_000.0, {"axis_format": A.DURATION_NS}, "500µs"),+ (1_500_000_000.0, {"axis_format": A.DURATION_NS}, "1.5s"),# percentage variants (axis %, distinct from a PERCENTAGE threshold's own rendering)(50.0, {"axis_format": A.PERCENTAGE}, "50%"),(0.5, {"axis_format": A.PERCENTAGE_SCALED}, "50%"),diff --git a/products/dashboards/frontend/generated/api.schemas.ts b/products/dashboards/frontend/generated/api.schemas.tsindex 2d65fd7aebe9..86b5ab126d29 100644--- a/products/dashboards/frontend/generated/api.schemas.ts+++ b/products/dashboards/frontend/generated/api.schemas.ts@@ -2191,6 +2191,7 @@ export const AggregationAxisFormatApi = {Numeric: 'numeric',Duration: 'duration',DurationMs: 'duration_ms',+ DurationNs: 'duration_ns',Percentage: 'percentage',PercentageScaled: 'percentage_scaled',Currency: 'currency',diff --git a/products/exports/backend/temporal/subscriptions/results_summarizer.py b/products/exports/backend/temporal/subscriptions/results_summarizer.pyindex 9ef3102ee3d2..e4b519ee8316 100644--- a/products/exports/backend/temporal/subscriptions/results_summarizer.py+++ b/products/exports/backend/temporal/subscriptions/results_summarizer.py@@ -230,15 +230,17 @@ def _fmt(value: float | int | None) -> str:return f"{value:,}"-def _format_duration(seconds: float | int) -> str:+def _format_duration(seconds: float | int, *, seconds_fixed: int = 0) -> str:"""Human-readable duration matching the chart's Y-axis (humanFriendlyDuration):days+hours for >= 1 day, hours+minutes+seconds below that, e.g. "4d 4h" / "3h 45m 12s"."""if seconds < 0:- return f"-{_format_duration(-seconds)}"+ return f"-{_format_duration(-seconds, seconds_fixed=seconds_fixed)}"if seconds < 1:return f"{round(seconds * 1000)}ms" if seconds else "0s"if seconds < 60:+ if seconds_fixed:+ return f"{seconds:.{seconds_fixed}f}".rstrip("0").rstrip(".") + "s"return f"{int(seconds)}s"# Floor every unit to match the chart's humanFriendlyDuration; rounding the@@ -257,6 +259,15 @@ def _format_duration(seconds: float | int) -> str:return " ".join(units) or "0s"+def _format_duration_nanoseconds(value: float | int) -> str:+ absolute_value = abs(value)+ if absolute_value < 1_000:+ return f"{_fmt(value)}ns"+ if absolute_value < 1_000_000:+ return f"{_fmt(value / 1_000)}µs"+ return _format_duration(value / 1_000_000_000, seconds_fixed=1)++def _sanitize_axis_affix(affix: str) -> str:"""Strip LLM-framing markers from a user-controlled axis prefix/postfix while keeping thesingle separating space a real affix uses (e.g. " reqs" stays " reqs" so the value reads@@ -302,6 +313,8 @@ def _fmt_value(value: float | int | None, value_format: dict[str, Any] | None) -formatted = _format_duration(value)elif axis_format == "duration_ms":formatted = _format_duration(value / 1000)+ elif axis_format == "duration_ns":+ formatted = _format_duration_nanoseconds(value)elif axis_format == "percentage":formatted = f"{_fmt(value)}%"elif axis_format == "percentage_scaled":diff --git a/products/exports/backend/temporal/subscriptions/test_results_summarizer.py b/products/exports/backend/temporal/subscriptions/test_results_summarizer.pyindex eb668695c24f..951caea86657 100644--- a/products/exports/backend/temporal/subscriptions/test_results_summarizer.py+++ b/products/exports/backend/temporal/subscriptions/test_results_summarizer.py@@ -192,6 +192,9 @@ class TestBuildResultsSummaryValueFormat:[({"format": "duration"}, [360000], ["latest=4d 4h"]),({"format": "duration_ms"}, [360000000], ["latest=4d 4h"]),+ ({"format": "duration_ns"}, [500000], ["latest=500µs"]),+ ({"format": "duration_ns"}, [1500000000], ["latest=1.5s"]),+ ({"format": "duration_ns"}, [360000000000000], ["latest=4d 4h"]),({"format": "percentage"}, [37], ["latest=37%"]),({"format": "percentage_scaled"}, [0.37], ["latest=37%"]),({"prefix": "$"}, [1200], ["latest=$1,200"]),diff --git a/products/product_analytics/frontend/generated/api.schemas.ts b/products/product_analytics/frontend/generated/api.schemas.tsindex 9fded72c09f6..ebae3d786576 100644--- a/products/product_analytics/frontend/generated/api.schemas.ts+++ b/products/product_analytics/frontend/generated/api.schemas.ts@@ -1522,6 +1522,7 @@ export const AggregationAxisFormatApi = {Numeric: 'numeric',Duration: 'duration',DurationMs: 'duration_ms',+ DurationNs: 'duration_ns',Percentage: 'percentage',PercentageScaled: 'percentage_scaled',Currency: 'currency',diff --git a/services/mcp/src/api/generated.ts b/services/mcp/src/api/generated.tsindex 90c84e4f3cbf..b6c6999d9e82 100644--- a/services/mcp/src/api/generated.ts+++ b/services/mcp/src/api/generated.ts@@ -2556,6 +2556,7 @@ export namespace Schemas {Numeric: 'numeric',Duration: 'duration',DurationMs: 'duration_ms',+ DurationNs: 'duration_ns',Percentage: 'percentage',PercentageScaled: 'percentage_scaled',Currency: 'currency',diff --git a/services/mcp/src/tools/generated/query-wrappers.ts b/services/mcp/src/tools/generated/query-wrappers.tsindex 31de4e9cf2d9..9fc893dde4a8 100644--- a/services/mcp/src/tools/generated/query-wrappers.ts+++ b/services/mcp/src/tools/generated/query-wrappers.ts@@ -458,6 +458,7 @@ const AggregationAxisFormat = z.enum(['numeric','duration','duration_ms',+ 'duration_ns','percentage','percentage_scaled','currency',diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/query-trends-actors.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/query-trends-actors.jsonindex 9acb57612e6a..4d0a87e386cd 100644--- a/services/mcp/tests/unit/__snapshots__/tool-schemas/query-trends-actors.json+++ b/services/mcp/tests/unit/__snapshots__/tool-schemas/query-trends-actors.json@@ -3774,6 +3774,7 @@"numeric","duration","duration_ms",+ "duration_ns","percentage","percentage_scaled","currency",diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/query-trends.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/query-trends.jsonindex d5ed819dc875..39e1b471ce63 100644--- a/services/mcp/tests/unit/__snapshots__/tool-schemas/query-trends.json+++ b/services/mcp/tests/unit/__snapshots__/tool-schemas/query-trends.json@@ -3585,6 +3585,7 @@"numeric","duration","duration_ms",+ "duration_ns","percentage","percentage_scaled","currency",