Skip to content
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

Keep extra log attributes (fixes #276) #280

Merged
merged 2 commits into from
Feb 17, 2023
Merged

Conversation

jmdacruz
Copy link
Contributor

What was changed

Fix for #276, removing the calls to super().process(...) so that we do not overwrite the extra attributes for the log record.

Why?

So that we can properly support structured logging with extra attributes

Checklist

  1. Closes [Bug] logging adapter does not include extra attributes? #276
  2. How was this tested: Tested against the patched "hello_activity.py" described in [Bug] logging adapter does not include extra attributes? #276

@CLAassistant
Copy link

CLAassistant commented Feb 15, 2023

CLA assistant check
All committers have signed the CLA.

Copy link
Member

@cretz cretz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great. Will merge when CI passes.

@cretz
Copy link
Member

cretz commented Feb 15, 2023

There is an issue w/ latest Python static linking. Unrelated to this PR, but I will have to fix it first then I'll get back to this.

@cretz cretz merged commit 852ff2f into temporalio:main Feb 17, 2023
@jmdacruz
Copy link
Contributor Author

Thanks for merging @cretz! When can we expect a release with these fixes?

@cretz
Copy link
Member

cretz commented Feb 17, 2023

After scheduling and a few other fixes. No exact timeline but hopefully soon. You can build any time or just download the built wheel artifacts off the latest main build at https://github.com/temporalio/sdk-python/actions/runs/4199650110.

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.

[Bug] logging adapter does not include extra attributes?
3 participants