Remove zeek::Span and use std::span instead

This commit is contained in:
Dominik Charousset 2025-07-24 20:25:51 +02:00
parent 941ea4282b
commit 690a2a1122
33 changed files with 125 additions and 238 deletions

View file

@ -4,10 +4,9 @@
#include <prometheus/family.h>
#include <prometheus/labels.h>
#include <span>
#include <string_view>
#include "zeek/Span.h"
namespace zeek::telemetry {
using LabelView = std::pair<std::string_view, std::string_view>;
@ -18,7 +17,7 @@ namespace detail {
* Builds a set of labels for prometheus based on a set of labels from
* Zeek. This adds an 'endpoint' label if it's missing from the set.
*/
prometheus::Labels BuildPrometheusLabels(Span<const LabelView> labels);
prometheus::Labels BuildPrometheusLabels(std::span<const LabelView> labels);
/**
* Builds a full metric name for Prometheus from prefix, name, and unit values.