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

change the way for logging integration #1084

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

serjshevchenko
Copy link

Fix problem related to Note "Note that this only takes effect for loggers created after the integration."
Face with such issue when was trying to integrate opencensus-logging into uvicorn+FastAPI.
uvicorn starts application in new thread/process and creates uvicorn logger object in new thread/process before opencensus-logging-integration execution.
TraceLogger just overrides makeRecord, logging.setLogRecordFactory is a better approach because it has not drawback with time of logger object initialization.

@serjshevchenko
Copy link
Author

@aabmass @hectorhdzg @lzchen
hello may I get review on this PR ?
It is pending about 2 months.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant