]> git.proxmox.com Git - ceph.git/blob - ceph/src/jaegertracing/opentelemetry-cpp/api/include/opentelemetry/trace/span_metadata.h
update ceph source to reef 18.1.2
[ceph.git] / ceph / src / jaegertracing / opentelemetry-cpp / api / include / opentelemetry / trace / span_metadata.h
1 // Copyright The OpenTelemetry Authors
2 // SPDX-License-Identifier: Apache-2.0
3
4 #pragma once
5
6 #include "opentelemetry/common/timestamp.h"
7
8 OPENTELEMETRY_BEGIN_NAMESPACE
9 namespace trace
10 {
11
12 enum class SpanKind
13 {
14 kInternal,
15 kServer,
16 kClient,
17 kProducer,
18 kConsumer,
19 };
20
21 // The key identifies the active span in the current context.
22 constexpr char kSpanKey[] = "active_span";
23
24 // StatusCode - Represents the canonical set of status codes of a finished Span.
25 enum class StatusCode
26 {
27 kUnset, // default status
28 kOk, // Operation has completed successfully.
29 kError // The operation contains an error
30 };
31
32 /**
33 * EndSpanOptions provides options to set properties of a Span when it is
34 * ended.
35 */
36 struct EndSpanOptions
37 {
38 // Optionally sets the end time of a Span.
39 common::SteadyTimestamp end_steady_time;
40 };
41
42 } // namespace trace
43 OPENTELEMETRY_END_NAMESPACE