NVIDIA DeepStream SDK API Reference
9.2 Release
includes/opentelemetry/logs/event_id.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 <algorithm>
7
8
#include "opentelemetry/nostd/string_view.h"
9
#include "opentelemetry/nostd/unique_ptr.h"
10
#include "opentelemetry/version.h"
11
12
OPENTELEMETRY_BEGIN_NAMESPACE
13
namespace
logs
14
{
15
19
class
EventId
20
{
21
public
:
22
EventId
(int64_t
id
,
nostd::string_view
name) noexcept
23
:
id_
{
id
},
name_
{
nostd::unique_ptr<char[]>
{
new
char
[name.length() + 1]}}
24
{
25
std::copy(name.begin(), name.end(),
name_
.
get
());
26
name_
.
get
()[name.length()] = 0;
27
}
28
29
EventId
(int64_t
id
) noexcept :
id_
{
id
},
name_
{
nullptr
} {}
30
31
public
:
32
int64_t
id_
;
33
nostd::unique_ptr<char[]>
name_
;
34
};
35
36
}
// namespace logs
37
OPENTELEMETRY_END_NAMESPACE
logs::EventId::EventId
EventId(int64_t id) noexcept
Definition:
includes/opentelemetry/logs/event_id.h:29
logs::EventId::id_
int64_t id_
Definition:
includes/opentelemetry/logs/event_id.h:32
logs::EventId::EventId
EventId(int64_t id, nostd::string_view name) noexcept
Definition:
includes/opentelemetry/logs/event_id.h:22
logs::EventId
EventId class which acts the Id of the event with an optional name.
Definition:
includes/opentelemetry/logs/event_id.h:19
nostd::unique_ptr< char[]>
logs
Definition:
includes/opentelemetry/logs/event_id.h:13
nostd::unique_ptr::get
pointer get() const noexcept
Definition:
includes/opentelemetry/nostd/unique_ptr.h:107
OPENTELEMETRY_BEGIN_NAMESPACE
#define OPENTELEMETRY_BEGIN_NAMESPACE
Definition:
includes/opentelemetry/version.h:21
OPENTELEMETRY_END_NAMESPACE
#define OPENTELEMETRY_END_NAMESPACE
Definition:
includes/opentelemetry/version.h:24
logs::EventId::name_
nostd::unique_ptr< char[]> name_
Definition:
includes/opentelemetry/logs/event_id.h:33
nostd::string_view
Back port of std::string_view to work with pre-cpp-17 compilers.
Definition:
includes/opentelemetry/nostd/string_view.h:37
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:02 | PR-09318-R32