-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Convert messages to struct logs #6064
Merged
Merged
Changes from all commits
Commits
Show all changes
37 commits
Select commit
Hold shift + click to select a range
03622d0
Initial structured logging changes
gshank d3b30f2
remove "this" from core/dbt/events/functions.py
gshank 639404a
CT-1047: Fix execution_time definitions to use float
peterallenwebb f1907ea
CT-1047: Revert unintended checking of changes to functions.py
peterallenwebb 1abcec1
WIP
emmyoop a703a0f
first pass to resolve circular deps
emmyoop a6dba2e
more circular dep resolution
emmyoop 83fbf84
remove a bunch of duplication
emmyoop 868015d
move message into log line
emmyoop fef1ab0
update comments
emmyoop d05bb51
fix field that wen missing during rebase
emmyoop 8860ffd
remove double import
emmyoop f05948b
remove some comments and extra code
emmyoop be2bf3a
fix pre-commit
emmyoop d3f2e99
rework deprecations
emmyoop 4dcd196
WIP converting messages
emmyoop afa40e6
WIP converting messages
emmyoop 696f55b
remove stray comment
emmyoop 781c000
WIP more message conversion
emmyoop 88798fa
WIP more message conversion
emmyoop 8166602
tweak the messages
emmyoop 79125b4
convert last message
emmyoop 8449d06
rename
emmyoop f8c2ce4
remove warn_or_raise as never used
emmyoop 3360124
add fake calls to all new events
emmyoop 358592c
fix some tests
emmyoop 57f0e0b
put back deprecation
emmyoop 8a1a626
restore deprecation fully
emmyoop f104a93
fix unit test
emmyoop 3c2ed95
fix log levels
emmyoop dff8e95
remove some skipped ids
emmyoop 32e9590
fix macro log function
emmyoop f944627
fix how messages are built to match expected outcome
emmyoop c1152e2
fix expected test message
emmyoop 4ff802b
small fixes from reviews
emmyoop 4aa91e3
Merge branch 'main' into er/ct-1267-convert-msg
emmyoop 64cc12d
fix conmflict resolution in UI
emmyoop File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,10 @@ | ||
SECRET_ENV_PREFIX = "DBT_ENV_SECRET_" | ||
DEFAULT_ENV_PLACEHOLDER = "DBT_DEFAULT_PLACEHOLDER" | ||
METADATA_ENV_PREFIX = "DBT_ENV_CUSTOM_ENV_" | ||
|
||
MAXIMUM_SEED_SIZE = 1 * 1024 * 1024 | ||
MAXIMUM_SEED_SIZE_NAME = "1MB" | ||
|
||
PIN_PACKAGE_URL = ( | ||
"https://docs.getdbt.com/docs/package-management#section-specifying-package-versions" | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: this paradigm of stringifying arguments to event types now has the option of adding this class as a subclass to the event class definition.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That class is super cool. However, it is causing some issues because protobuf requires us to define the type of each field being passed in in a very narrow scope (types cannot be classes ie Exception). So
exc
comes in as anException
and then does become a string in the message but that's not enough since proto expects the field itself to be a string already.