blob: 97d3c310a5762d83785b7b10f11edca6143f1723 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
|
/*
* Copyright The OpenTelemetry Authors
* SPDX-License-Identifier: Apache-2.0
*/
/*
* DO NOT EDIT, this is an Auto-generated file from:
* buildscripts/semantic-convention/templates/registry/semantic_attributes-h.j2
*/
#pragma once
#include "opentelemetry/common/macros.h"
#include "opentelemetry/version.h"
OPENTELEMETRY_BEGIN_NAMESPACE
namespace semconv
{
namespace otel
{
/**
Identifies the class / type of event.
<p>
This attribute SHOULD be used by non-OTLP exporters when destination does not support @code
EventName @endcode or equivalent field. This attribute MAY be used by applications using existing
logging libraries so that it can be used to set the @code EventName @endcode field by Collector or
SDK components.
*/
static constexpr const char *kOtelEventName = "otel.event.name";
/**
The name of the instrumentation scope - (@code InstrumentationScope.Name @endcode in OTLP).
*/
static constexpr const char *kOtelScopeName = "otel.scope.name";
/**
The version of the instrumentation scope - (@code InstrumentationScope.Version @endcode in OTLP).
*/
static constexpr const char *kOtelScopeVersion = "otel.scope.version";
/**
Name of the code, either "OK" or "ERROR". MUST NOT be set if the status code is UNSET.
*/
static constexpr const char *kOtelStatusCode = "otel.status_code";
/**
Description of the Status if it has a value, otherwise not set.
*/
static constexpr const char *kOtelStatusDescription = "otel.status_description";
namespace OtelStatusCodeValues
{
/**
The operation has been validated by an Application developer or Operator to have completed
successfully.
*/
static constexpr const char *kOk = "OK";
/**
The operation contains an error.
*/
static constexpr const char *kError = "ERROR";
} // namespace OtelStatusCodeValues
} // namespace otel
} // namespace semconv
OPENTELEMETRY_END_NAMESPACE
|