|
|
NVIDIA DeepStream SDK API Reference
|
9.2 Release
|
Go to the documentation of this file.
9 #include "opentelemetry/nostd/string_view.h"
10 #include "opentelemetry/sdk/instrumentationscope/instrumentation_scope.h"
11 #include "opentelemetry/sdk/metrics/data/metric_data.h"
12 #include "opentelemetry/sdk/metrics/instruments.h"
52 const opentelemetry::sdk::instrumentationscope::InstrumentationScope &scope,
58 const opentelemetry::sdk::instrumentationscope::InstrumentationScope &scope,
68 return std::make_unique<MetricFilter>(test_metric_fn, test_attributes_fn);
72 : test_metric_fn_(test_metric_fn), test_attributes_fn_(test_attributes_fn)
80 const opentelemetry::sdk::instrumentationscope::InstrumentationScope &scope,
85 return test_metric_fn_(scope, name, type, unit);
96 const opentelemetry::sdk::instrumentationscope::InstrumentationScope &scope,
102 return test_attributes_fn_(scope, name, type, unit, attributes);
static std::unique_ptr< MetricFilter > Create(TestMetricFn test_metric_fn, TestAttributesFn test_attributes_fn)
opentelemetry::sdk::common::OrderedAttributeMap PointAttributes
std::function< MetricFilterResult(const opentelemetry::sdk::instrumentationscope::InstrumentationScope &scope, opentelemetry::nostd::string_view name, const InstrumentType &type, opentelemetry::nostd::string_view unit)> TestMetricFn
AttributesFilterResult TestAttributes(const opentelemetry::sdk::instrumentationscope::InstrumentationScope &scope, opentelemetry::nostd::string_view name, const InstrumentType &type, opentelemetry::nostd::string_view unit, const PointAttributes &attributes)
TestAttributes determines for a given metric stream and attribute set if it should be allowed or filt...
#define OPENTELEMETRY_BEGIN_NAMESPACE
#define OPENTELEMETRY_END_NAMESPACE
std::function< AttributesFilterResult(const opentelemetry::sdk::instrumentationscope::InstrumentationScope &scope, opentelemetry::nostd::string_view name, const InstrumentType &type, opentelemetry::nostd::string_view unit, const PointAttributes &attributes)> TestAttributesFn
MetricFilter(TestMetricFn test_metric_fn, TestAttributesFn test_attributes_fn)
MetricFilterResult TestMetric(const opentelemetry::sdk::instrumentationscope::InstrumentationScope &scope, opentelemetry::nostd::string_view name, const InstrumentType &type, opentelemetry::nostd::string_view unit)
TestMetric is called once for every metric stream, in each MetricProducer Produce operation.
std::string_view string_view