utils: update telemetry.initialize to accept config_file and opts

Update the initialize method to accept config file and opts as args.
This decouple the telemetry lib from chromite_config and allows the
initialization to take commandline arguments into account like enabling
console exports for --debug.

BUG=b:285374846
TEST=Run Unit Tests
TEST=./scripts/telemetry_poc
TEST=./bin/build_packages

Change-Id: I483160e81307318227fd8668bfc69676d2fd5e5e
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/chromite/+/4595281
Reviewed-by: Alex Klein <saklein@chromium.org>
Auto-Submit: Anuj Jamwal <anujjamwal@google.com>
Commit-Queue: Anuj Jamwal <anujjamwal@google.com>
Tested-by: Anuj Jamwal <anujjamwal@google.com>
diff --git a/scripts/telemetry_poc.py b/scripts/telemetry_poc.py
index f9c52a1..60c027c 100644
--- a/scripts/telemetry_poc.py
+++ b/scripts/telemetry_poc.py
@@ -47,10 +47,7 @@
     opts = parse_arguments(argv)
 
     chromite_config.initialize()
-    telemetry.initialize(chromite_config.TELEMETRY_CONFIG)
-
-    if opts.debug:
-        telemetry.export_to_console(chromite_config.TELEMETRY_CONFIG)
+    telemetry.initialize(chromite_config.TELEMETRY_CONFIG, opts.debug)
 
     with tracer.start_as_current_span("test") as span:
         time.sleep(opts.time / 2)