Skip to content
This repository was archived by the owner on Jun 16, 2025. It is now read-only.

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant