Option 2: If running dbt < 1.2, create a folder named macros in your dbt project's top level directory (if it doesn't exist). Inside, make a new file called query_tags.sql with the following content:
{% macro set_query_tag()-%}{% do return(dbt_snowflake_query_tags.set_query_tag())%}{% endmacro %}{% macro unset_query_tag(original_query_tag)-%}{% do return(dbt_snowflake_query_tags.unset_query_tag(original_query_tag))%}{% endmacro %}
To configure the query comments, add the following config to dbt_project.yml.
That's it! All dbt-issued queries will now be tagged.
Once the dbt package to automatically tag dbt-issued queries with informative metadata has been added you can add more informative information such as Orchestration tools used to execute DBT queries.