-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Log test node metadata: depends_on_nodes #2316
Comments
I'd be happy to help with this if you think it's worth it. |
Sure, I think this is a good idea! I would just call it We'd love a PR for this one - let us know if there's anything we can help out with when you get to implementing :) |
Hey! I saw the {"timestamp":"2020-04-18T07:54:45.832149Z","message":"Began running node test.pmt_curated.unique_request_ref_id","channel":"dbt","level":10,"levelname":"DEBUG","thread_name":"Thread-1","process":58947,"extra":{"node_alias":"unique_request_ref_id","node_schema":"None","node_database":"dwh","node_path":"models/marts/pmt_analytics/request/request.yml","node_name":"unique_request_ref_id","resource_type":"test","depends_on":["model.pmt_curated.request"],"node_index":28,"node_materialized":"view","node_started_at":"2020-04-18T07:54:45.832192","unique_id":"test.pmt_curated.unique_request_ref_id","run_state":"running"}} I am wondering if I should leave it like this or I should add the |
I think we'd probably want to make a new log context manager (similar to this one called
So, pretty similar to what you've implemented in #2341 Once the I think we could alternatively just use @beckjake do you have any further thoughts / preferences / ideas on this one? |
I don't really have strong feelings about it. That ModelMetadata is only used once, at the beginning of running a model (rather than the end), which seems acceptable to me. I was pretty satisfied with #2341. Is the concern around logging this information when we're not running a test? Because that doesn't seem so awful to me. |
I think the goal here is to get |
If it helps with the discussion around the scope, logging at the beginning of running a model already solves my use case. If logging at the test report line as well is preferable, I have no problem to add the change there too. Using the |
Describe the feature
Currently the
extra
field from the structured log record is providingunique_id
andrun_state
for test nodes.Include additional metadata field
depends_on_nodes
from the test nodeWho will this benefit?
People analyzing the logs for getting pipeline metrics can relate a failed test to a model or set of models.
Also asked in in Slack.
The text was updated successfully, but these errors were encountered: