Class FileIncubatingAttributes
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final io.opentelemetry.api.common.AttributeKey<String>Time when the file was last accessed, in ISO 8601 format.Array of file attributes.static final io.opentelemetry.api.common.AttributeKey<String>Time when the file attributes or metadata was last changed, in ISO 8601 format.static final io.opentelemetry.api.common.AttributeKey<String>Time when the file was created, in ISO 8601 format.static final io.opentelemetry.api.common.AttributeKey<String>Directory where the file is located.static final io.opentelemetry.api.common.AttributeKey<String>File extension, excluding the leading dot.static final io.opentelemetry.api.common.AttributeKey<String>Name of the fork.static final io.opentelemetry.api.common.AttributeKey<String>Primary Group ID (GID) of the file.static final io.opentelemetry.api.common.AttributeKey<String>Primary group name of the file.static final io.opentelemetry.api.common.AttributeKey<String>Inode representing the file in the filesystem.static final io.opentelemetry.api.common.AttributeKey<String>Mode of the file in octal representation.static final io.opentelemetry.api.common.AttributeKey<String>Time when the file content was last modified, in ISO 8601 format.static final io.opentelemetry.api.common.AttributeKey<String>Name of the file including the extension, without the directory.static final io.opentelemetry.api.common.AttributeKey<String>The user ID (UID) or security identifier (SID) of the file owner.static final io.opentelemetry.api.common.AttributeKey<String>Username of the file owner.static final io.opentelemetry.api.common.AttributeKey<String>Full path to the file, including the file name.static final io.opentelemetry.api.common.AttributeKey<Long>File size in bytes.static final io.opentelemetry.api.common.AttributeKey<String>Path to the target of a symbolic link. -
Method Summary
-
Field Details
-
FILE_ACCESSED
Time when the file was last accessed, in ISO 8601 format.Notes:
This attribute might not be supported by some file systems — NFS, FAT32, in embedded OS, etc.
-
FILE_ATTRIBUTES
Array of file attributes.Notes:
Attributes names depend on the OS or file system. Here’s a non-exhaustive list of values expected for this attribute:
archive,compressed,directory,encrypted,execute,hidden,immutable,journaled,read,readonly,symbolic link,system,temporary,write. -
FILE_CHANGED
Time when the file attributes or metadata was last changed, in ISO 8601 format.Notes:
file.changedcaptures the time when any of the file's properties or attributes (including the content) are changed, whilefile.modifiedcaptures the timestamp when the file content is modified. -
FILE_CREATED
Time when the file was created, in ISO 8601 format.Notes:
This attribute might not be supported by some file systems — NFS, FAT32, in embedded OS, etc.
-
FILE_DIRECTORY
Directory where the file is located. It should include the drive letter, when appropriate. -
FILE_EXTENSION
File extension, excluding the leading dot.Notes:
When the file name has multiple extensions (example.tar.gz), only the last one should be captured ("gz", not "tar.gz").
-
FILE_FORK_NAME
Name of the fork. A fork is additional data associated with a filesystem object.Notes:
On Linux, a resource fork is used to store additional data with a filesystem object. A file always has at least one fork for the data portion, and additional forks may exist. 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.extensionshould populatefile.name, andextensionshould populatefile.extension. The full path,file.path, will include the fork name. -
FILE_GROUP_ID
Primary Group ID (GID) of the file. -
FILE_GROUP_NAME
Primary group name of the file. -
FILE_INODE
Inode representing the file in the filesystem. -
FILE_MODE
Mode of the file in octal representation. -
FILE_MODIFIED
Time when the file content was last modified, in ISO 8601 format. -
FILE_NAME
Name of the file including the extension, without the directory. -
FILE_OWNER_ID
The user ID (UID) or security identifier (SID) of the file owner. -
FILE_OWNER_NAME
Username of the file owner. -
FILE_PATH
Full path to the file, including the file name. It should include the drive letter, when appropriate. -
FILE_SIZE
File size in bytes. -
FILE_SYMBOLIC_LINK_TARGET_PATH
Path to the target of a symbolic link.Notes:
This attribute is only applicable to symbolic links.
-