Function glean::set_source_tags[][src]

pub fn set_source_tags(tags: Vec<String>) -> bool

Sets source tags.

Overrides any existing source tags. Source tags will show in the destination datasets, after ingestion.

Arguments

  • tags - A vector of at most 5 valid HTTP header values. Individual tags must match the regex: "[a-zA-Z0-9-]{1,20}".

Returns

This will return false in case value contains invalid tags and true otherwise or if the tag is set before Glean is initialized.