fal-ai / dbt-fal

do more with dbt. dbt-fal helps you run Python alongside dbt, so you can send Slack alerts, detect anomalies and build machine learning models.
https://fal.ai/dbt-fal
Apache License 2.0
853 stars 72 forks source link

feat: add adapter_type to telemetry #743

Closed drochetti closed 1 year ago

drochetti commented 1 year ago

Description

Adds a new property to telemetry, the adapter_type.

After a bit of trial and error, it seems like the correct (i.e. runtime resolved) field comes from config.to_target_dict()["type"]. The more obvious config.get_metadata().adapter_type returns the static value from the configuration.


Note: this PR replaces https://github.com/fal-ai/fal/pull/737