Skip to content

feat: add opt-in POST_PARSE adapter telemetry - #1647

Open
saishreeeee wants to merge 6 commits into
databricks:1.13.latestfrom
saishreeeee:telemetry-post-parse
Open

feat: add opt-in POST_PARSE adapter telemetry#1647
saishreeeee wants to merge 6 commits into
databricks:1.13.latestfrom
saishreeeee:telemetry-post-parse

Conversation

@saishreeeee

@saishreeeee saishreeeee commented Aug 22, 2026

Copy link
Copy Markdown
Collaborator

Description

  • Adds default-off, opt-in POST_PARSE telemetry for build, run, test, seed, and snapshot.
  • Events contain aggregate invocation, manifest, compute/auth, and behavior-flag data.
  • Sending is asynchronous and best-effort, requires a successful SQL connection, and never affects dbt execution.
  • Stacked follow-up: POST_RUN (feat: add POST_RUN outcome telemetry #1648).

Testing

(will check whether telemetry logs land in the dbt telemetry table)

Ship the default-off send path and privacy-reduced parse event so reviewers can inspect transport, flag handling, and payload shape without run-outcome aggregation.
@github-actions

github-actions Bot commented Aug 22, 2026

Copy link
Copy Markdown

Coverage report

Click to see where and how coverage changed

FileStatementsMissingCoverageCoverage
(new stmts)
Lines missing
  dbt/adapters/databricks
  connections.py 530
  handle.py
  impl.py 910-911, 914-915
  dbt/adapters/databricks/telemetry
  __init__.py
  builder.py 107, 152-157, 161-163, 203-204, 213-220, 229-238, 242-245
  client.py 19, 30, 36, 56, 59-60, 62-63
  config.py 11, 17, 19, 30-31, 41
  coordinator.py 118, 131, 157, 206
  encoder.py 17
  hooks.py 18-24, 39, 51, 56-64, 83, 102, 105
  models.py
Project Total  

This report was generated by python-coverage-comment-action

@saishreeeee
saishreeeee marked this pull request as draft August 22, 2026 12:28
Do not join the daemon send at cleanup, coerce workspace identity before the HTTP header, and classify compute paths with or without a leading slash.
…d sends

Repeated dbtRunner invokes reset the process-global invocation ID before leftover adapter cleanup, and close() can drop a POST_PARSE event that was already scheduled.
@saishreeeee
saishreeeee marked this pull request as ready for review August 22, 2026 18:58
@saishreeeee saishreeeee self-assigned this Aug 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant