semantic-conventions/model/registry/file.yaml

40 lines
1.3 KiB
YAML

groups:
- id: registry.file
prefix: file
type: attribute_group
display_name: File Attributes
brief: "Describes file attributes."
attributes:
- id: directory
type: string
brief: >
Directory where the file is located. It should include the drive letter, when appropriate.
stability: experimental
examples: ['/home/user', 'C:\Program Files\MyApp']
- id: extension
type: string
brief: >
File extension, excluding the leading dot.
stability: experimental
examples: ['png', 'gz']
note: >
When the file name has multiple extensions (example.tar.gz), only the last one should
be captured ("gz", not "tar.gz").
- id: name
type: string
brief: >
Name of the file including the extension, without the directory.
stability: experimental
examples: ['example.png']
- id: path
type: string
brief: >
Full path to the file, including the file name. It should include the drive letter, when appropriate.
stability: experimental
examples: ['/home/alice/example.png', 'C:\Program Files\MyApp\myapp.exe']
- id: size
type: int
brief: >
File size in bytes.
stability: experimental