userver
C++ Async Framework
Toggle main menu visibility
Loading...
Searching...
No Matches
tags.hpp
Go to the documentation of this file.
1
#
pragma
once
2
3
/// @file userver/tracing/tags.hpp
4
/// @brief Standard OpenTracing semantic tag name constants
5
6
#
include
<
string
>
7
8
USERVER_NAMESPACE_BEGIN
9
10
namespace
tracing
{
11
12
// The following tags are described in greater detail at the following url:
13
// https://github.com/opentracing/specification/blob/master/semantic_conventions.md
14
//
15
// Here we define standard names for tags that can be added to spans by the
16
// instrumentation code. The actual tracing systems are not required to
17
// retain these as tags in the stored spans if they have other means of
18
// representing the same data. For example, the SPAN_KIND='server' can be
19
// inferred from a Zipkin span by the presence of ss/sr annotations.
20
21
extern
const
std::string kType;
22
extern
const
std::string kSpanKind;
23
extern
const
std::string kSpanKindServer;
24
extern
const
std::string kSpanKindClient;
25
extern
const
std::string kSpanKindInternal;
26
extern
const
std::string kHttpUrl;
27
extern
const
std::string kUrlFull;
28
extern
const
std::string kHttpUrlTemplate;
29
extern
const
std::string kHttpMetaType;
30
extern
const
std::string kHttpMethod;
31
extern
const
std::string kHttpRequestMethod;
32
extern
const
std::string kHttpRoute;
33
extern
const
std::string kHttpStatusCode;
34
extern
const
std::string kHttpResponseStatusCode;
35
extern
const
std::string kAttempts;
36
extern
const
std::string kMaxAttempts;
37
extern
const
std::string kTimeoutMs;
38
extern
const
std::string kErrorFlag;
39
extern
const
std::string kErrorMessage;
40
41
extern
const
std::string kRpcSystem;
42
extern
const
std::string kRpcService;
43
extern
const
std::string kRpcMethod;
44
extern
const
std::string kGrpcCode;
45
46
extern
const
std::string kDatabaseType;
47
extern
const
std::string kDatabaseMongoType;
48
extern
const
std::string kDatabasePostgresType;
49
extern
const
std::string kDatabaseRedisType;
50
51
extern
const
std::string kDatabaseCollection;
52
extern
const
std::string kDatabaseInstance;
53
extern
const
std::string kDatabaseStatement;
54
extern
const
std::string kDatabaseStatementName;
55
extern
const
std::string kDatabaseStatementDescription;
56
57
extern
const
std::string kPeerAddress;
58
extern
const
std::string kServerAddress;
59
60
extern
const
std::string kUserAgent;
61
62
}
// namespace tracing
63
64
USERVER_NAMESPACE_END
userver
tracing
tags.hpp
Generated on
for userver by
Doxygen
1.17.0