set sourceTags()

in glean/src/core/config.ts [139:165]


  set sourceTags(tags: string[] | undefined) {
    if (!tags || tags.length < 1 || tags.length > GLEAN_MAX_SOURCE_TAGS) {
      log(
        LOG_TAG,
        `A list of tags cannot contain more than ${GLEAN_MAX_SOURCE_TAGS} elements or less than one.`,
        LoggingLevel.Error
      );
      return;
    }

    for (const tag of tags) {
      if (tag.startsWith("glean")) {
        log(
          LOG_TAG,
          "Tags starting with `glean` are reserved and must not be used.",
          LoggingLevel.Error
        );
        return;
      }

      if (!validateHeader(tag)) {
        return;
      }
    }

    this.debug.sourceTags = tags;
  }