opentelemetry_semantic_conventions::attribute

Constant URL_EXTENSION

source
pub const URL_EXTENSION: &str = "url.extension";
Expand description

The file extension extracted from the url.full, excluding the leading dot.

§Notes

The file extension is only set if it exists, as not every url has a file extension. When the file name has multiple extensions example.tar.gz, only the last one should be captured gz, not tar.gz.

§Examples

  • "png"
  • "gz"