NVIDIA DeepStream SDK API Reference

9.2 Release
9.2/includes/opentelemetry/exporters/otlp/otlp_populate_attribute_utils.h
Go to the documentation of this file.
1 // Copyright The OpenTelemetry Authors
2 // SPDX-License-Identifier: Apache-2.0
3 
4 #pragma once
5 
6 #include "opentelemetry/common/attribute_value.h"
7 #include "opentelemetry/nostd/string_view.h"
8 #include "opentelemetry/sdk/common/attribute_utils.h"
9 #include "opentelemetry/sdk/instrumentationscope/instrumentation_scope.h"
10 #include "opentelemetry/sdk/resource/resource.h"
11 #include "opentelemetry/version.h"
12 
13 namespace opentelemetry
14 {
15 namespace proto
16 {
17 
18 namespace common
19 {
20 namespace v1
21 {
22 class AnyValue;
23 class KeyValue;
24 class InstrumentationScope;
25 } // namespace v1
26 } // namespace common
27 
28 namespace resource
29 {
30 namespace v1
31 {
32 class Resource;
33 }
34 } // namespace resource
35 
36 } // namespace proto
37 } // namespace opentelemetry
38 
40 namespace exporter
41 {
42 namespace otlp
43 {
47 class OtlpPopulateAttributeUtils
48 {
49 
50 public:
52  const opentelemetry::sdk::resource::Resource &resource) noexcept;
53 
55  const opentelemetry::sdk::instrumentationscope::InstrumentationScope
56  &instrumentation_scope) noexcept;
57 
60  bool allow_bytes) noexcept;
61 
64  bool allow_bytes) noexcept;
65 
69  bool allow_bytes) noexcept;
70 
74  bool allow_bytes) noexcept;
75 };
76 
77 } // namespace otlp
78 } // namespace exporter
exporter::otlp::OtlpPopulateAttributeUtils::PopulateAnyValue
static void PopulateAnyValue(opentelemetry::proto::common::v1::AnyValue *proto_value, const opentelemetry::common::AttributeValue &value, bool allow_bytes) noexcept
opentelemetry::proto::common::v1::AnyValue
Definition: includes/opentelemetry/proto/common/v1/common.pb.h:88
exporter
Definition: includes/opentelemetry/exporters/memory/in_memory_data.h:11
OPENTELEMETRY_BEGIN_NAMESPACE
#define OPENTELEMETRY_BEGIN_NAMESPACE
Definition: includes/opentelemetry/version.h:21
opentelemetry::proto::common::v1::KeyValue
Definition: includes/opentelemetry/proto/common/v1/common.pb.h:693
common::AttributeValue
nostd::variant< bool, int32_t, int64_t, uint32_t, double, const char *, nostd::string_view, nostd::span< const bool >, nostd::span< const int32_t >, nostd::span< const int64_t >, nostd::span< const uint32_t >, nostd::span< const double >, nostd::span< const nostd::string_view >, uint64_t, nostd::span< const uint64_t >, nostd::span< const uint8_t > > AttributeValue
OpenTelemetry signals can be enriched by adding attributes.
Definition: includes/opentelemetry/common/attribute_value.h:58
OPENTELEMETRY_END_NAMESPACE
#define OPENTELEMETRY_END_NAMESPACE
Definition: includes/opentelemetry/version.h:24
opentelemetry::proto::resource::v1::Resource
Definition: includes/opentelemetry/proto/resource/v1/resource.pb.h:69
exporter::otlp::OtlpPopulateAttributeUtils::PopulateAttribute
static void PopulateAttribute(opentelemetry::proto::resource::v1::Resource *proto, const opentelemetry::sdk::resource::Resource &resource) noexcept
sdk::common::OwnedAttributeValue
nostd::variant< bool, int32_t, uint32_t, int64_t, double, std::string, std::vector< bool >, std::vector< int32_t >, std::vector< uint32_t >, std::vector< int64_t >, std::vector< double >, std::vector< std::string >, uint64_t, std::vector< uint64_t >, std::vector< uint8_t > > OwnedAttributeValue
A counterpart to AttributeValue that makes sure a value is owned.
Definition: includes/opentelemetry/sdk/common/attribute_utils.h:50
opentelemetry::proto::common::v1::InstrumentationScope
Definition: includes/opentelemetry/proto/common/v1/common.pb.h:866
opentelemetry
Definition: includes/opentelemetry/exporters/otlp/otlp_grpc_client.h:38
common
Definition: includes/opentelemetry/common/attribute_value.h:14
nostd::string_view
Back port of std::string_view to work with pre-cpp-17 compilers.
Definition: includes/opentelemetry/nostd/string_view.h:37