You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/registry/attributes/file.md
+24Lines changed: 24 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,6 +3,9 @@
3
3
4
4
# File
5
5
6
+
-[File Attributes](#file-attributes)
7
+
-[File Lock Attributes](#file-lock-attributes)
8
+
6
9
## File Attributes
7
10
8
11
Describes file attributes.
@@ -44,3 +47,24 @@ Describes file attributes.
44
47
On NTFS, this is analogous to an Alternate Data Stream (ADS), and the default data stream for a file is just called $DATA. Zone.Identifier is commonly used by Windows to track contents downloaded from the Internet. An ADS is typically of the form: C:\path\to\filename.extension:some_fork_name, and some_fork_name is the value that should populate `fork_name`. `filename.extension` should populate `file.name`, and `extension` should populate `file.extension`. The full path, `file.path`, will include the fork name.
45
48
46
49
**[7]`file.symbolic_link.target_path`:** This attribute is only applicable to symbolic links.
50
+
51
+
## File Lock Attributes
52
+
53
+
These attributes may be used for any filesystem lock or related operation
54
+
55
+
**Attributes:**
56
+
57
+
| Key | Stability | Value Type | Description | Example Values |
58
+
| --- | --- | --- | --- | --- |
59
+
| <aid="file-lock-mechanism"href="#file-lock-mechanism">`file.lock.mechanism`</a> || string | The lock mechanism such as noted by [POSIX](https://pubs.opengroup.org/onlinepubs/9699919799/functions/fcntl.html)|`POSIX`; `FLOCK`; `DELEG`; `LEASE`|
60
+
| <aid="file-lock-mode"href="#file-lock-mode">`file.lock.mode`</a> || string | Mode of lock or operation such as documented by [POSIX](https://pubs.opengroup.org/onlinepubs/9699919799/functions/fcntl.html)|`ADVISORY`; `MANDATORY`; `BREAKING`; `ACTIVE`; `BREAKER`|
61
+
| <aid="file-lock-type"href="#file-lock-type">`file.lock.type`</a> || string | The lock type as represented by i.e. [POSIX](https://pubs.opengroup.org/onlinepubs/9699919799/functions/fcntl.html)'s l_type. |`read`|
62
+
63
+
---
64
+
65
+
`file.lock.type` has the following list of well-known values. If one of them applies, then the respective value MUST be used; otherwise, a custom value MAY be used.
| Key | Stability |[Requirement Level](https://opentelemetry.io/docs/specs/semconv/general/attribute-requirement-level/)| Value Type | Description | Example Values |
843
+
| --- | --- | --- | --- | --- | --- |
844
+
|[`file.lock.mechanism`](/docs/registry/attributes/file.md)||`Recommended`| string | The lock mechanism such as noted by [POSIX](https://pubs.opengroup.org/onlinepubs/9699919799/functions/fcntl.html)|`POSIX`; `FLOCK`; `DELEG`; `LEASE`|
845
+
|[`file.lock.mode`](/docs/registry/attributes/file.md)||`Recommended`| string | Mode of lock or operation such as documented by [POSIX](https://pubs.opengroup.org/onlinepubs/9699919799/functions/fcntl.html)|`ADVISORY`; `MANDATORY`; `BREAKING`; `ACTIVE`; `BREAKER`|
846
+
|[`file.lock.type`](/docs/registry/attributes/file.md)||`Recommended`| string | The lock type as represented by i.e. [POSIX](https://pubs.opengroup.org/onlinepubs/9699919799/functions/fcntl.html)'s l_type. |`read`|
847
+
|[`system.device`](/docs/registry/attributes/system.md)||`Recommended`| string | OS-specific identifier for the device where the file resides. |`08:01`|
848
+
849
+
---
850
+
851
+
`file.lock.type` has the following list of well-known values. If one of them applies, then the respective value MUST be used; otherwise, a custom value MAY be used.
0 commit comments