| 441 | } |
| 442 | |
| 443 | func pushVultureMetrics(metrics traceMetrics) { |
| 444 | metricTracesInspected.Add(float64(metrics.requested)) |
| 445 | metricTracesErrors.WithLabelValues("incorrectresult").Add(float64(metrics.incorrectResult)) |
| 446 | metricTracesErrors.WithLabelValues("incorrect_metrics_result").Add(float64(metrics.incorrectMetricsResult)) |
| 447 | metricTracesErrors.WithLabelValues("missingspans").Add(float64(metrics.missingSpans)) |
| 448 | metricTracesErrors.WithLabelValues("notfound_search").Add(float64(metrics.notFoundSearch)) |
| 449 | metricTracesErrors.WithLabelValues("notfound_traceql").Add(float64(metrics.notFoundTraceQL)) |
| 450 | metricTracesErrors.WithLabelValues("notfound_byid").Add(float64(metrics.notFoundByID)) |
| 451 | metricTracesErrors.WithLabelValues("notfound_metrics").Add(float64(metrics.notFoundByMetrics)) |
| 452 | metricTracesErrors.WithLabelValues("inaccurate_metrics").Add(float64(metrics.inaccurateMetrics)) |
| 453 | metricTracesErrors.WithLabelValues("requestfailed").Add(float64(metrics.requestFailed)) |
| 454 | metricTracesErrors.WithLabelValues("notfound_search_attribute").Add(float64(metrics.notFoundSearchAttribute)) |
| 455 | } |
| 456 | |
| 457 | func selectPastTimestamp(start, stop time.Time, interval, retention time.Duration, r *rand.Rand) (newStart, ts time.Time) { |
| 458 | oldest := stop.Add(-retention) |