The Simplest Way to Make Honeycomb and dbt Work Like They Should
Honeycomb and dbt work together by sending model run data as structured trace events. Teams use this setup to spot slow queries and broken data builds fast. Data teams run many models every hour to keep tables fresh. When a build fails, engineers need to find the slow step right away. Linking your transform tool with your trace tool makes this hunt fast. You can see every model, test, and query as a span in a trace. How Honeycomb and dbt share data and permissions The link between Honeycomb
Your coding agents run with your access.
Claude Code reaches prod with a developer's credentials, and approval prompts get clicked through. hoop.dev checks every query, masks sensitive data, and holds risky changes for a human.
Honeycomb and dbt work together by sending model run data as structured trace events. Teams use this setup to spot slow queries and broken data builds fast.
Data teams run many models every hour to keep tables fresh. When a build fails, engineers need to find the slow step right away. Linking your transform tool with your trace tool makes this hunt fast. You can see every model, test, and query as a span in a trace.
How Honeycomb and dbt share data and permissions
The link between Honeycomb and dbt starts when a data build finishes. After dbt runs its models, it creates files with run times and test results. A small script or job runner reads those result files after each build. It formats each model step into a trace span and sends it to Honeycomb.
To send these events, the runner uses a write key for the trace API. Meanwhile, dbt uses a separate database role to run SQL inside the warehouse. The two tools do not talk to each other inside the database. Instead, the job runner sits in the middle and coordinates both tools.
Each span holds key facts like model name, row count, and run time. Engineers can group these spans by tag, schema, or build number. When a model takes too long, you can see which parent model caused it. This clear view helps data teams fix bottlenecks before morning reports break.
Common failure modes in data trace setups
Many teams set up this workflow fast and leave big security gaps behind. The most common mistake is using one shared database account for all runs. When every job and user shares one login, audit logs lose their value. You cannot tell if a slow query came from a build or a user.
Another common issue is using a broad API key that can edit settings. If a job runner only sends trace events, it only needs ingest permissions. Giving that key full admin rights puts your trace data at risk. Teams also store these keys in plain text inside repo settings.
End-to-End Encryption: architecture patterns and best practices
Continue reading? Get the full guide.
Free. No spam. Unsubscribe anytime.
Unlogged ad-hoc runs cause trouble for data teams too. Engineers often run dbt from their laptops to test a fix in production. These local runs often skip the trace script and use broad personal database roles. If a local run locks a table, nobody sees it in the trace view.
Scoping roles and network paths for safer builds
To fix these issues, split your database roles by job type and user. Give your automated runner a dedicated role that only writes to target schemas. Give human engineers read roles for checks, and require approvals for production writes. Rotate your trace ingest keys often and restrict them to single datasets.
Lock down the network path between your job runner, warehouse, and trace tool. The runner should only talk to the warehouse and the trace ingest endpoint. Do not let local laptops run production transforms without clear identity checks. Also, make sure your query logs mask sensitive fields like emails or phone numbers. Masking rewrites matched fields in results so raw card numbers do not leak.
When you pair scoped roles with trace spans, every data change stays clear. You know who ran the build, how long it took, and what it touched. Your data team spends less time guessing and more time building clean models.
Add runtime guardrails and masking beside your databases and APIs
Login rules, role grants, and CI checks govern who connects to your stack. Yet any allowed script, engineer, or AI agent still runs commands with the full scope of its role. For workloads on Postgres, MySQL, SQL Server, MongoDB, ClickHouse, Kubernetes, SSH, or internal HTTP services, hoop.dev sits beside the service as an open-source proxy, a sidecar for your database or API.
Before a query runs, hoop.dev guardrails check the statement against your rules. An AI Analyzer you configure can score intent or hold risky calls for human review. Next, hoop.dev data masking rewrites sensitive fields in responses, and each verdict is logged per listener. Explore the MIT-licensed project on GitHub.
Frequently asked questions
Does Honeycomb connect directly to my data warehouse during a dbt run?
No, the trace tool never queries your warehouse directly. A job script reads dbt run results and sends trace events out over HTTPS.
What data should we leave out of dbt trace spans?
Never send raw query results, emails, phone numbers, or national IDs in spans. Only send metadata like model names, run durations, status codes, and row counts.
How do we tell human dbt runs apart from scheduled jobs?
Use distinct database roles for each engineer and a separate role for scheduled jobs. Add a user or job tag to every trace span before sending it.
Related guides
In this post