opentelemetry_semantic_conventions::attribute

Constant URL_REGISTERED_DOMAIN

source
pub const URL_REGISTERED_DOMAIN: &str = "url.registered_domain";
Expand description

The highest registered url domain, stripped of the subdomain.

§Notes

This value can be determined precisely with the public suffix list. For example, the registered domain for foo.example.com is example.com. Trying to approximate this by simply taking the last two labels will not work well for TLDs such as co.uk.

§Examples

  • "example.com"
  • "foo.co.uk"