diff options
Diffstat (limited to 'chromium/third_party/catapult/tracing/tracing/metrics/metric_map_function.html')
-rw-r--r-- | chromium/third_party/catapult/tracing/tracing/metrics/metric_map_function.html | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/chromium/third_party/catapult/tracing/tracing/metrics/metric_map_function.html b/chromium/third_party/catapult/tracing/tracing/metrics/metric_map_function.html index 1b9ac12e1cc..02f5dcf02b5 100644 --- a/chromium/third_party/catapult/tracing/tracing/metrics/metric_map_function.html +++ b/chromium/third_party/catapult/tracing/tracing/metrics/metric_map_function.html @@ -163,13 +163,6 @@ tr.exportTo('tr.metrics', function() { for (const metadata of model.metadata) { if (!metadata.value || !metadata.value.telemetry) continue; - const traceUrls = metadata.value.telemetry[ - tr.v.d.RESERVED_NAMES.TRACE_URLS]; - if (traceUrls && model.canonicalUrl !== traceUrls[0]) { - throw new Error(`canonicalUrl "${model.canonicalUrl}" != ` + - `traceUrl "${traceUrls[0]}"`); - } - for (const [name, value] of Object.entries(metadata.value.telemetry)) { const type = tr.v.d.RESERVED_NAMES_TO_TYPES.get(name); if (type === undefined) { @@ -191,6 +184,12 @@ tr.exportTo('tr.metrics', function() { model, options, result.addFailure.bind(result)); addTelemetryInfo(histograms, model); + if (model.canonicalUrl !== undefined) { + const info = tr.v.d.RESERVED_INFOS.TRACE_URLS; + histograms.addSharedDiagnosticToAllHistograms( + info.name, new info.type([model.canonicalUrl])); + } + result.addPair('histograms', histograms.asDicts()); const scalarDicts = []; |