forked from open-telemetry/opentelemetry-cpp
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SEMANTIC CONVENTIONS] Migration to weaver (open-telemetry#3105)
- Loading branch information
Showing
108 changed files
with
13,511 additions
and
252 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
/* | ||
* 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 client | ||
{ | ||
|
||
/** | ||
* Client address - domain name if available without reverse DNS lookup; otherwise, IP address or | ||
* Unix domain socket name. <p> When observed from the server side, and when communicating through | ||
* an intermediary, @code client.address @endcode SHOULD represent the client address behind any | ||
* intermediaries, for example proxies, if it's available. | ||
*/ | ||
static constexpr const char *kClientAddress = "client.address"; | ||
|
||
/** | ||
* Client port number. | ||
* <p> | ||
* When observed from the server side, and when communicating through an intermediary, @code | ||
* client.port @endcode SHOULD represent the client port behind any intermediaries, for example | ||
* proxies, if it's available. | ||
*/ | ||
static constexpr const char *kClientPort = "client.port"; | ||
|
||
} // namespace client | ||
} // namespace semconv | ||
OPENTELEMETRY_END_NAMESPACE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
/* | ||
* 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 error | ||
{ | ||
|
||
/** | ||
* Describes a class of error the operation ended with. | ||
* <p> | ||
* The @code error.type @endcode SHOULD be predictable, and SHOULD have low cardinality. | ||
* <p> | ||
* When @code error.type @endcode is set to a type (e.g., an exception type), its | ||
* canonical class name identifying the type within the artifact SHOULD be used. | ||
* <p> | ||
* Instrumentations SHOULD document the list of errors they report. | ||
* <p> | ||
* The cardinality of @code error.type @endcode within one instrumentation library SHOULD be low. | ||
* Telemetry consumers that aggregate data from multiple instrumentation libraries and applications | ||
* should be prepared for @code error.type @endcode to have high cardinality at query time when no | ||
* additional filters are applied. | ||
* <p> | ||
* If the operation has completed successfully, instrumentations SHOULD NOT set @code error.type | ||
* @endcode. <p> If a specific domain defines its own set of error identifiers (such as HTTP or gRPC | ||
* status codes), it's RECOMMENDED to: <p> <ul> <li>Use a domain-specific attribute</li> <li>Set | ||
* @code error.type @endcode to capture all errors, regardless of whether they are defined within | ||
* the domain-specific set or not.</li> | ||
* </ul> | ||
*/ | ||
static constexpr const char *kErrorType = "error.type"; | ||
|
||
namespace ErrorTypeValues | ||
{ | ||
/** | ||
* A fallback error value to be used when the instrumentation doesn't define a custom value. | ||
*/ | ||
static constexpr const char *kOther = "_OTHER"; | ||
|
||
} // namespace ErrorTypeValues | ||
|
||
} // namespace error | ||
} // namespace semconv | ||
OPENTELEMETRY_END_NAMESPACE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
/* | ||
* 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 exception | ||
{ | ||
|
||
/** | ||
* SHOULD be set to true if the exception event is recorded at a point where it is known that the | ||
* exception is escaping the scope of the span. <p> An exception is considered to have escaped (or | ||
* left) the scope of a span, if that span is ended while the exception is still logically "in | ||
* flight". This may be actually "in flight" in some languages (e.g. if the exception is passed to a | ||
* Context manager's @code __exit__ @endcode method in Python) but will usually be caught at the | ||
* point of recording the exception in most languages. <p> It is usually not possible to determine | ||
* at the point where an exception is thrown whether it will escape the scope of a span. However, it | ||
* is trivial to know that an exception will escape, if one checks for an active exception just | ||
* before ending the span, as done in the <a | ||
* href="https://opentelemetry.io/docs/specs/semconv/exceptions/exceptions-spans/#recording-an-exception">example | ||
* for recording span exceptions</a>. <p> It follows that an exception may still escape the scope of | ||
* the span even if the @code exception.escaped @endcode attribute was not set or set to false, | ||
* since the event might have been recorded at a time where it was not | ||
* clear whether the exception will escape. | ||
*/ | ||
static constexpr const char *kExceptionEscaped = "exception.escaped"; | ||
|
||
/** | ||
* The exception message. | ||
*/ | ||
static constexpr const char *kExceptionMessage = "exception.message"; | ||
|
||
/** | ||
* A stacktrace as a string in the natural representation for the language runtime. The | ||
* representation is to be determined and documented by each language SIG. | ||
*/ | ||
static constexpr const char *kExceptionStacktrace = "exception.stacktrace"; | ||
|
||
/** | ||
* The type of the exception (its fully-qualified class name, if applicable). The dynamic type of | ||
* the exception should be preferred over the static type in languages that support it. | ||
*/ | ||
static constexpr const char *kExceptionType = "exception.type"; | ||
|
||
} // namespace exception | ||
} // namespace semconv | ||
OPENTELEMETRY_END_NAMESPACE |
Oops, something went wrong.
f7a9aea
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Possible performance regression was detected for benchmark 'OpenTelemetry-cpp api Benchmark'.
Benchmark result of this commit is worse than the previous benchmark result exceeding threshold
2
.BM_CreateBaggageFromTenEntries
12940.050873279895
ns/iter6281.387666758719
ns/iter2.06
BM_ExtractBaggageHavingTenEntries
2.9737296655799423
ns/iter1.392473333068365
ns/iter2.14
BM_CreateBaggageFrom180Entries
244105.74485105026
ns/iter113640.21501341066
ns/iter2.15
BM_ExtractBaggageWith180Entries
1.332994506905238
ns/iter0.6292016078010623
ns/iter2.12
This comment was automatically generated by workflow using github-action-benchmark.