mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-15 02:59:33 +07:00
Refactoring: move FUS collectors checks from CheckFusEventsBaseTest to make them reusable
GitOrigin-RevId: b30f55005e8b1d7047f4b370fb48d3c5ba6fc839
This commit is contained in:
committed by
intellij-monorepo-bot
parent
686ad64d53
commit
162e36c8b8
@@ -188,3 +188,7 @@ private fun getAttributes(spanName: String, metric: MetricWithAttributes): Colle
|
||||
Metric.newCounter("$spanName#" + attributeMetric.id.name, attributeMetric.value)
|
||||
}
|
||||
}
|
||||
|
||||
fun getOrderedSpans(openTelemetryFile: Path, spanName: String): List<SpanElement> =
|
||||
OpentelemetrySpanJsonParser(SpanFilter.nameEquals(spanName)).getSpanElements(openTelemetryFile)
|
||||
.filter { it.name == spanName }.toList().sortedBy { it.startTimestamp }
|
||||
|
||||
Reference in New Issue
Block a user