From 2291259662d7e7eabddbeeb88f5a850d98ffbef5 Mon Sep 17 00:00:00 2001 From: Drew Banin Date: Fri, 2 Mar 2018 14:02:37 -0500 Subject: [PATCH] use fishtown's snowplow collector --- dbt/tracking.py | 21 ++++++--------------- 1 file changed, 6 insertions(+), 15 deletions(-) diff --git a/dbt/tracking.py b/dbt/tracking.py index 0a724e878a9..5ae08647ec6 100644 --- a/dbt/tracking.py +++ b/dbt/tracking.py @@ -17,18 +17,15 @@ disable_contracts() sp_logger.setLevel(100) -COLLECTOR_URL = "events.fivetran.com/snowplow/forgiving_ain" +COLLECTOR_URL = "fishtownanalytics.sinter-collect.com" COLLECTOR_PROTOCOL = "https" COOKIE_PATH = os.path.join(os.path.expanduser('~'), '.dbt/.user.yml') -BASE_URL = 'https://raw.githubusercontent.com/fishtown-analytics/'\ - 'dbt/master/events/schemas/com.fishtownanalytics/' - -INVOCATION_SPEC = BASE_URL + "invocation_event.json" -PLATFORM_SPEC = BASE_URL + "platform_context.json" -RUN_MODEL_SPEC = BASE_URL + "run_model_context.json" -INVOCATION_ENV_SPEC = BASE_URL + "invocation_env_context.json" +INVOCATION_SPEC = 'iglu:com.dbt/invocation/jsonschema/1-0-0' +PLATFORM_SPEC = 'iglu:com.dbt/platform/jsonschema/1-0-0' +RUN_MODEL_SPEC = 'iglu:com.dbt/run_model/jsonschema/1-0-0' +INVOCATION_ENV_SPEC = 'iglu:com.dbt/invocation_env/jsonschema/1-0-0' DBT_INVOCATION_ENV = 'DBT_INVOCATION_ENV' @@ -85,12 +82,6 @@ def get_cookie(self): return user -def get_options(args): - exclude = ['cls', 'target', 'profile'] - options = {k: v for (k, v) in args.__dict__.items() if k not in exclude} - return json.dumps(options) - - def get_run_type(args): return 'regular' @@ -102,7 +93,7 @@ def get_invocation_context(user, project, args): "invocation_id": user.invocation_id, "command": args.which, - "options": get_options(args), + "options": None, "version": dbt_version.installed, "run_type": get_run_type(args),