userver: userver/tracing/tags.hpp Source File
Loading...
Searching...
No Matches
tags.hpp
1#pragma once
2
3#include <string>
4
5USERVER_NAMESPACE_BEGIN
6
7namespace tracing {
8
9// The following tags are described in greater detail at the following url:
10// https://github.com/opentracing/specification/blob/master/semantic_conventions.md
11//
12// Here we define standard names for tags that can be added to spans by the
13// instrumentation code. The actual tracing systems are not required to
14// retain these as tags in the stored spans if they have other means of
15// representing the same data. For example, the SPAN_KIND='server' can be
16// inferred from a Zipkin span by the presence of ss/sr annotations.
17
18extern const std::string kType;
19extern const std::string kHttpUrl;
20extern const std::string kHttpMetaType;
21extern const std::string kHttpMethod;
22extern const std::string kHttpStatusCode;
23extern const std::string kAttempts;
24extern const std::string kMaxAttempts;
25extern const std::string kTimeoutMs;
26extern const std::string kErrorFlag;
27extern const std::string kErrorMessage;
28
29extern const std::string kDatabaseType;
30extern const std::string kDatabaseMongoType;
31extern const std::string kDatabasePostgresType;
32extern const std::string kDatabaseRedisType;
33
34extern const std::string kDatabaseCollection;
35extern const std::string kDatabaseInstance;
36extern const std::string kDatabaseStatement;
37extern const std::string kDatabaseStatementName;
38extern const std::string kDatabaseStatementDescription;
39
40extern const std::string kPeerAddress;
41
42} // namespace tracing
43
44USERVER_NAMESPACE_END