NVIDIA DeepStream SDK API Reference
9.2 Release
includes/opentelemetry/common/attribute_value.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 <cstdint>
7
8
#include "opentelemetry/nostd/span.h"
9
#include "opentelemetry/nostd/string_view.h"
10
#include "opentelemetry/nostd/variant.h"
11
#include "opentelemetry/version.h"
12
13
OPENTELEMETRY_BEGIN_NAMESPACE
14
namespace
common
15
{
38
using
AttributeValue
=
39
nostd::variant
<bool,
40
int32_t,
41
int64_t,
42
uint32_t,
43
double,
44
const
char
*,
45
nostd::string_view
,
46
nostd::span<const bool>
,
47
nostd::span<const int32_t>
,
48
nostd::span<const int64_t>
,
49
nostd::span<const uint32_t>
,
50
nostd::span<const double>
,
51
nostd::span<const nostd::string_view>
,
52
// Not currently supported by the specification, but reserved for future use.
53
// Added to provide support for all primitive C++ types.
54
uint64_t,
55
// Not currently supported by the specification, but reserved for future use.
56
// Added to provide support for all primitive C++ types.
57
nostd::span<const uint64_t>
,
58
nostd::span<const uint8_t>
>;
59
60
enum
AttributeType
61
{
62
kTypeBool
,
63
kTypeInt
,
64
kTypeInt64
,
65
kTypeUInt
,
66
kTypeDouble
,
67
kTypeCString
,
68
kTypeString
,
69
kTypeSpanBool
,
70
kTypeSpanInt
,
71
kTypeSpanInt64
,
72
kTypeSpanUInt
,
73
kTypeSpanDouble
,
74
kTypeSpanString
,
75
kTypeUInt64
,
76
kTypeSpanUInt64
,
77
kTypeSpanByte
78
};
79
80
}
// namespace common
81
OPENTELEMETRY_END_NAMESPACE
common::kTypeDouble
@ kTypeDouble
Definition:
includes/opentelemetry/common/attribute_value.h:66
common::kTypeSpanString
@ kTypeSpanString
Definition:
includes/opentelemetry/common/attribute_value.h:74
common::AttributeType
AttributeType
Definition:
includes/opentelemetry/common/attribute_value.h:60
absl::OTABSL_OPTION_NAMESPACE_NAME::variant
Definition:
includes/opentelemetry/nostd/variant.h:61
common::kTypeSpanUInt64
@ kTypeSpanUInt64
Definition:
includes/opentelemetry/common/attribute_value.h:76
common::kTypeSpanBool
@ kTypeSpanBool
Definition:
includes/opentelemetry/common/attribute_value.h:69
common::kTypeUInt64
@ kTypeUInt64
Definition:
includes/opentelemetry/common/attribute_value.h:75
OPENTELEMETRY_BEGIN_NAMESPACE
#define OPENTELEMETRY_BEGIN_NAMESPACE
Definition:
includes/opentelemetry/version.h:21
nostd::span
Back port of std::span.
Definition:
includes/opentelemetry/nostd/span.h:51
common::kTypeInt64
@ kTypeInt64
Definition:
includes/opentelemetry/common/attribute_value.h:64
common::kTypeString
@ kTypeString
Definition:
includes/opentelemetry/common/attribute_value.h:68
OPENTELEMETRY_END_NAMESPACE
#define OPENTELEMETRY_END_NAMESPACE
Definition:
includes/opentelemetry/version.h:24
common::kTypeSpanInt64
@ kTypeSpanInt64
Definition:
includes/opentelemetry/common/attribute_value.h:71
common::kTypeBool
@ kTypeBool
Definition:
includes/opentelemetry/common/attribute_value.h:62
common::kTypeInt
@ kTypeInt
Definition:
includes/opentelemetry/common/attribute_value.h:63
common::kTypeSpanByte
@ kTypeSpanByte
Definition:
includes/opentelemetry/common/attribute_value.h:77
common::kTypeCString
@ kTypeCString
Definition:
includes/opentelemetry/common/attribute_value.h:67
common::kTypeSpanDouble
@ kTypeSpanDouble
Definition:
includes/opentelemetry/common/attribute_value.h:73
common::kTypeSpanInt
@ kTypeSpanInt
Definition:
includes/opentelemetry/common/attribute_value.h:70
nostd::string_view
std::string_view string_view
Definition:
includes/opentelemetry/std/string_view.h:18
common::kTypeSpanUInt
@ kTypeSpanUInt
Definition:
includes/opentelemetry/common/attribute_value.h:72
common::kTypeUInt
@ kTypeUInt
Definition:
includes/opentelemetry/common/attribute_value.h:65
common
Definition:
includes/opentelemetry/common/attribute_value.h:14
Privacy Policy
|
Your Privacy Choices
|
Terms of Service
|
Accessibility
|
Corporate Policies
|
Product Security
|
Contact
© 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
NVIDIA Confidential | Subject to Change | For test and development only.
Wed Oct 28 2026 12:02:00 | PR-09318-R32