The “Code Attributes” rule can be used to add semantic Code attributes to spans. Code attributes can help trace back an operation in a trace to the code that generated it.
code.stacktrace
can be large and may increase the size of your spans. This can impact the performance of your application and the cost of processing, storing and analyzing traces.column
boolean
: Indicates whether to record the code.column
attribute for the column number in the code.filepath
best representing the operation.false
filePath
boolean
: Indicates whether to record the code.filepath
attribute for the source code file name that identifies the code unit.false
function
boolean
: Indicates whether to record the code.function
attribute for the method or function name, or equivalent.false
lineNumber
boolean
: Indicates whether to record the code.lineno
attribute for the line number in the code.filepath
best representing the operation.false
namespace
boolean
: Indicates whether to record the code.namespace
attribute for the “namespace” within which code.function
is defined. Usually the qualified class or module name, such that code.namespace
+ some separator + code.function
form a unique identifier for the code unit.false
stackTrace
false
false
(not recorded).