# Code
- [Code Attributes](#code-attributes)
- [Deprecated Code Attributes](#deprecated-code-attributes)
## 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` |  |
| `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` |  |
| `code.function.name` | string | The method or function name, or equivalent (usually rightmost part of the code unit's name). | `serveRequest` |  |
| `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` |  |
| `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` |  |
| `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)` |  |
## 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` | 
Replaced by `code.column.number` |
| `code.filepath` | string | Deprecated, use `code.file.path` instead | `/usr/local/MyApplication/content_root/app/index.php` |  |
| `code.function` | string | Deprecated, use `code.function.name` instead | `serveRequest` | 
Replaced by `code.function.name` |
| `code.lineno` | int | Deprecated, use `code.line.number` instead | `42` | 
Replaced by `code.line.number` |