|
| 1 | +<!-- THIS FILE IS AUTO-GENERATED. DO NOT EDIT DIRECTLY. --> |
| 2 | + |
| 3 | +# Code Attributes |
| 4 | + |
| 5 | +## code.file.path |
| 6 | + |
| 7 | +The source code file name that identifies the code unit as uniquely as possible (preferably an absolute file path). |
| 8 | + |
| 9 | +| Property | Value | |
| 10 | +| --- | --- | |
| 11 | +| Type | `string` | |
| 12 | +| Has PII | maybe | |
| 13 | +| Exists in OpenTelemetry | Yes | |
| 14 | +| Example | `/app/myapplication/http/handler/server.py` | |
| 15 | +| Aliases | `code.filepath` | |
| 16 | + |
| 17 | +## code.filepath |
| 18 | + |
| 19 | +The source code file name that identifies the code unit as uniquely as possible (preferably an absolute file path). |
| 20 | + |
| 21 | +| Property | Value | |
| 22 | +| --- | --- | |
| 23 | +| Type | `string` | |
| 24 | +| Has PII | maybe | |
| 25 | +| Exists in OpenTelemetry | Yes | |
| 26 | +| Example | `/app/myapplication/http/handler/server.py` | |
| 27 | +| Deprecated | Yes, use `code.file.path` instead | |
| 28 | +| Aliases | `code.file.path` | |
| 29 | + |
| 30 | +## code.function |
| 31 | + |
| 32 | +The method or function name, or equivalent (usually rightmost part of the code unit's name). |
| 33 | + |
| 34 | +| Property | Value | |
| 35 | +| --- | --- | |
| 36 | +| Type | `string` | |
| 37 | +| Has PII | false | |
| 38 | +| Exists in OpenTelemetry | Yes | |
| 39 | +| Example | `server_request` | |
| 40 | +| Deprecated | Yes, use `code.function.name` instead | |
| 41 | +| Aliases | `code.function.name` | |
| 42 | + |
| 43 | +## code.function.name |
| 44 | + |
| 45 | +The method or function name, or equivalent (usually rightmost part of the code unit's name). |
| 46 | + |
| 47 | +| Property | Value | |
| 48 | +| --- | --- | |
| 49 | +| Type | `string` | |
| 50 | +| Has PII | false | |
| 51 | +| Exists in OpenTelemetry | Yes | |
| 52 | +| Example | `server_request` | |
| 53 | +| Aliases | `code.function` | |
| 54 | + |
| 55 | +## code.line.number |
| 56 | + |
| 57 | +The line number in code.filepath best representing the operation. It SHOULD point within the code unit named in code.function |
| 58 | + |
| 59 | +| Property | Value | |
| 60 | +| --- | --- | |
| 61 | +| Type | `integer` | |
| 62 | +| Has PII | false | |
| 63 | +| Exists in OpenTelemetry | Yes | |
| 64 | +| Example | `42` | |
| 65 | +| Aliases | `code.lineno` | |
| 66 | + |
| 67 | +## code.lineno |
| 68 | + |
| 69 | +The line number in code.filepath best representing the operation. It SHOULD point within the code unit named in code.function |
| 70 | + |
| 71 | +| Property | Value | |
| 72 | +| --- | --- | |
| 73 | +| Type | `integer` | |
| 74 | +| Has PII | false | |
| 75 | +| Exists in OpenTelemetry | Yes | |
| 76 | +| Example | `42` | |
| 77 | +| Deprecated | Yes, use `code.line.number` instead | |
| 78 | +| Aliases | `code.lineno` | |
| 79 | + |
| 80 | +## code.namespace |
| 81 | + |
| 82 | +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. |
| 83 | + |
| 84 | +| Property | Value | |
| 85 | +| --- | --- | |
| 86 | +| Type | `string` | |
| 87 | +| Has PII | false | |
| 88 | +| Exists in OpenTelemetry | Yes | |
| 89 | +| Example | `http.handler` | |
| 90 | +| Deprecated | Yes, use `code.function.name` instead | |
| 91 | +| Deprecation Reason | code.function.name should include the namespace. | |
| 92 | + |
0 commit comments