mirror of
https://github.com/zeek/zeek.git
synced 2025-10-09 18:18:19 +00:00
Remove zeek::Span and use std::span instead
This commit is contained in:
parent
941ea4282b
commit
690a2a1122
33 changed files with 125 additions and 238 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue