opentelemetry_semantic_conventions::attribute

Constant FILE_EXTENSION

source
pub const FILE_EXTENSION: &str = "file.extension";
Expand description

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”).

§Examples

  • "png"
  • "gz"