Class CodeIncubatingAttributes
java.lang.Object
io.opentelemetry.semconv.incubating.CodeIncubatingAttributes
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final io.opentelemetry.api.common.AttributeKey<Long>Deprecated.static final io.opentelemetry.api.common.AttributeKey<Long>Deprecated.deprecated in favor of stableCodeAttributes.CODE_COLUMN_NUMBERattribute.static final io.opentelemetry.api.common.AttributeKey<String>Deprecated.deprecated in favor of stableCodeAttributes.CODE_FILE_PATHattribute.static final io.opentelemetry.api.common.AttributeKey<String>Deprecated.Replaced bycode.file.path.static final io.opentelemetry.api.common.AttributeKey<String>Deprecated.Value should be included incode.function.namewhich is expected to be a fully-qualified name.static final io.opentelemetry.api.common.AttributeKey<String>Deprecated.deprecated in favor of stableCodeAttributes.CODE_FUNCTION_NAMEattribute.static final io.opentelemetry.api.common.AttributeKey<Long>Deprecated.deprecated in favor of stableCodeAttributes.CODE_LINE_NUMBERattribute.static final io.opentelemetry.api.common.AttributeKey<Long>Deprecated.Replaced bycode.line.number.static final io.opentelemetry.api.common.AttributeKey<String>Deprecated.Value should be included incode.function.namewhich is expected to be a fully-qualified name.static final io.opentelemetry.api.common.AttributeKey<String>Deprecated.deprecated in favor of stableCodeAttributes.CODE_STACKTRACEattribute. -
Method Summary
-
Field Details
-
CODE_COLUMN
Deprecated.Replaced bycode.column.number.Deprecated, usecode.column.number -
CODE_COLUMN_NUMBER
Deprecated.deprecated in favor of stableCodeAttributes.CODE_COLUMN_NUMBERattribute.The column number incode.file.pathbest representing the operation. It SHOULD point within the code unit named incode.function.name. 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. -
CODE_FILE_PATH
Deprecated.deprecated in favor of stableCodeAttributes.CODE_FILE_PATHattribute.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. -
CODE_FILEPATH
Deprecated.Replaced bycode.file.path.Deprecated, usecode.file.pathinstead -
CODE_FUNCTION
Deprecated.Value should be included incode.function.namewhich is expected to be a fully-qualified name.Deprecated, usecode.function.nameinstead -
CODE_FUNCTION_NAME
Deprecated.deprecated in favor of stableCodeAttributes.CODE_FUNCTION_NAMEattribute.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 withincode.stacktraceattribute 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.Notes:
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.stacktracewithout information on arguments.Examples:
- Java method:
com.example.MyHttpService.serveRequest - Java anonymous class method:
com.mycompany.Main$1.myMethod - Java lambda method:
com.mycompany.Main$$Lambda/0x0000748ae4149c00.myMethod - PHP function:
GuzzleHttp\Client::transfer - Go function:
github.com/my/repo/pkg.foo.func5 - Elixir:
OpenTelemetry.Ctx.new - Erlang:
opentelemetry_ctx:new - Rust:
playground::my_module::my_cool_func - C function:
fopen
- Java method:
-
CODE_LINE_NUMBER
Deprecated.deprecated in favor of stableCodeAttributes.CODE_LINE_NUMBERattribute.The line number incode.file.pathbest representing the operation. It SHOULD point within the code unit named incode.function.name. 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. -
CODE_LINENO
Deprecated.Replaced bycode.line.number.Deprecated, usecode.line.numberinstead -
CODE_NAMESPACE
Deprecated.Value should be included incode.function.namewhich is expected to be a fully-qualified name.Deprecated, namespace is now included intocode.function.name -
CODE_STACKTRACE
Deprecated.deprecated in favor of stableCodeAttributes.CODE_STACKTRACEattribute.A stacktrace as a string in the natural representation for the language runtime. The representation is identical toexception.stacktrace. 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.
-
code.column.number.