/* * 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 code { /** The column number in @code code.file.path @endcode best representing the operation. It SHOULD point within the code unit named in @code code.function.name @endcode. This attribute MUST NOT be used on the Profile signal since the data is already captured in 'message Line'. This constraint is imposed to prevent redundancy and maintain data integrity. */ static constexpr const char *kCodeColumnNumber = "code.column.number"; /** The source code file name that identifies the code unit as uniquely as possible (preferably an absolute file path). This attribute MUST NOT be used on the Profile signal since the data is already captured in 'message Function'. This constraint is imposed to prevent redundancy and maintain data integrity. */ static constexpr const char *kCodeFilePath = "code.file.path"; /** The method or function fully-qualified name without arguments. The value should fit the natural representation of the language runtime, which is also likely the same used within @code code.stacktrace @endcode attribute value. This attribute MUST NOT be used on the Profile signal since the data is already captured in 'message Function'. This constraint is imposed to prevent redundancy and maintain data integrity.

Values and format depends on each language runtime, thus it is impossible to provide an exhaustive list of examples. The values are usually the same (or prefixes of) the ones found in native stack trace representation stored in @code code.stacktrace @endcode without information on arguments.

Examples:

*/ static constexpr const char *kCodeFunctionName = "code.function.name"; /** The line number in @code code.file.path @endcode best representing the operation. It SHOULD point within the code unit named in @code code.function.name @endcode. This attribute MUST NOT be used on the Profile signal since the data is already captured in 'message Line'. This constraint is imposed to prevent redundancy and maintain data integrity. */ static constexpr const char *kCodeLineNumber = "code.line.number"; /** A stacktrace as a string in the natural representation for the language runtime. The representation is identical to @code exception.stacktrace @endcode. This attribute MUST NOT be used on the Profile signal since the data is already captured in 'message Location'. This constraint is imposed to prevent redundancy and maintain data integrity. */ static constexpr const char *kCodeStacktrace = "code.stacktrace"; } // namespace code } // namespace semconv OPENTELEMETRY_END_NAMESPACE