Function glean::set_debug_view_tag

source ·
pub fn set_debug_view_tag(tag: &str) -> bool
Expand description

Sets a debug view tag.

When the debug view tag is set, pings are sent with a X-Debug-ID header with the value of the tag and are sent to the “Ping Debug Viewer”.

§Arguments

  • tag - A valid HTTP header value. Must match the regex: “[a-zA-Z0-9-]{1,20}”.

§Returns

This will return false in case tag is not a valid tag and true otherwise. If called before Glean is initialized it will always return true.