Skip to content

Latest commit

 

History

History
34 lines (25 loc) · 3.55 KB

File metadata and controls

34 lines (25 loc) · 3.55 KB

Code

Code Attributes

These attributes provide context about source code

Attribute Type Description Examples Stability
code.column.number int The column number in code.file.path best representing the operation. It SHOULD point within the code unit named in code.function.name. 16 Experimental
code.file.path string The source code file name that identifies the code unit as uniquely as possible (preferably an absolute file path). /usr/local/MyApplication/content_root/app/index.php Experimental
code.function.name string The method or function name, or equivalent (usually rightmost part of the code unit's name). serveRequest Experimental
code.line.number int The line number in code.file.path best representing the operation. It SHOULD point within the code unit named in code.function.name. 42 Experimental
code.namespace string The "namespace" within which code.function.name is defined. Usually the qualified class or module name, such that code.namespace + some separator + code.function.name form a unique identifier for the code unit. com.example.MyHttpService Experimental
code.stacktrace string 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. at com.example.GenerateTrace.methodB(GenerateTrace.java:13)\n at com.example.GenerateTrace.methodA(GenerateTrace.java:9)\n at com.example.GenerateTrace.main(GenerateTrace.java:5) Experimental

Deprecated Code Attributes

These deprecated attributes provide context about source code

Attribute Type Description Examples Stability
code.column int Deprecated, use code.column.number 16 Deprecated
Replaced by code.column.number
code.filepath string Deprecated, use code.file.path instead /usr/local/MyApplication/content_root/app/index.php Experimental
code.function string Deprecated, use code.function.name instead serveRequest Deprecated
Replaced by code.function.name
code.lineno int Deprecated, use code.line.number instead 42 Deprecated
Replaced by code.line.number