NVIDIA DeepStream SDK API Reference
9.2 Release
includes/opentelemetry/trace/span_metadata.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/timestamp.h"
7
#include "opentelemetry/version.h"
8
9
OPENTELEMETRY_BEGIN_NAMESPACE
10
namespace
trace
11
{
12
13
enum class
SpanKind
14
{
15
kInternal
,
16
kServer
,
17
kClient
,
18
kProducer
,
19
kConsumer
,
20
};
21
22
// The key identifies the active span in the current context.
23
constexpr
char
kSpanKey
[] =
"active_span"
;
24
constexpr
char
kIsRootSpanKey
[] =
"is_root_span"
;
25
26
// StatusCode - Represents the canonical set of status codes of a finished Span.
27
enum class
StatusCode
28
{
29
kUnset
,
// default status
30
kOk
,
// Operation has completed successfully.
31
kError
// The operation contains an error
32
};
33
38
struct
EndSpanOptions
39
{
40
// Optionally sets the end time of a Span.
41
common::SteadyTimestamp
end_steady_time
;
42
};
43
44
}
// namespace trace
45
OPENTELEMETRY_END_NAMESPACE
trace::EndSpanOptions
EndSpanOptions provides options to set properties of a Span when it is ended.
Definition:
includes/opentelemetry/trace/span_metadata.h:38
trace
Definition:
includes/opentelemetry/context/context_value.h:18
trace::SpanKind::kInternal
@ kInternal
trace::StatusCode::kError
@ kError
trace::SpanKind
SpanKind
Definition:
includes/opentelemetry/trace/span_metadata.h:13
trace::SpanKind::kConsumer
@ kConsumer
trace::SpanKind::kClient
@ kClient
OPENTELEMETRY_BEGIN_NAMESPACE
#define OPENTELEMETRY_BEGIN_NAMESPACE
Definition:
includes/opentelemetry/version.h:21
trace::SpanKind::kProducer
@ kProducer
OPENTELEMETRY_END_NAMESPACE
#define OPENTELEMETRY_END_NAMESPACE
Definition:
includes/opentelemetry/version.h:24
trace::StatusCode::kOk
@ kOk
trace::StatusCode::kUnset
@ kUnset
common::SteadyTimestamp
A timepoint relative to the monotonic clock epoch.
Definition:
includes/opentelemetry/common/timestamp.h:98
trace::StatusCode
StatusCode
Definition:
includes/opentelemetry/trace/span_metadata.h:27
trace::SpanKind::kServer
@ kServer
trace::kSpanKey
constexpr char kSpanKey[]
Definition:
includes/opentelemetry/trace/span_metadata.h:23
trace::kIsRootSpanKey
constexpr char kIsRootSpanKey[]
Definition:
includes/opentelemetry/trace/span_metadata.h:24
trace::EndSpanOptions::end_steady_time
common::SteadyTimestamp end_steady_time
Definition:
includes/opentelemetry/trace/span_metadata.h:41
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:50 | PR-09318-R32