Cotal TypeScript packages
    Preparing search index...

    Function telemetryLevelFromEnv

    • The level the environment forces, with the variable that forces it, or undefined when none is set. DO_NOT_TRACK and COTAL_TELEMETRY_DISABLED force off; COTAL_TELEMETRY names a level, and any other value refuses.

      Parameters

      • env: ProcessEnv

      Returns
          | {
              level: "off"
              | "minimal"
              | "regular";
              source: "COTAL_TELEMETRY" | "DO_NOT_TRACK" | "COTAL_TELEMETRY_DISABLED";
          }
          | undefined