newrelic/newrelic-python-agent

AttributeError: module 'newrelic.agent' has no attribute 'NewRelicContextFormatter'

jfurton opened this issue · 1 comments

Description

getting this error:

AttributeError: 'newrelic.agent' has no attribute 'NewRelicContextFormatter' not visible anymore

with #655 seems like NewRelicContextFormatter was commented out.

# from newrelic.api.log import NewRelicContextFormatter

https://docs.newrelic.com/docs/logs/logs-context/configure-logs-context-python/ still shows

from newrelic.agent import NewRelicContextFormatter

as the way to use it, not sure if I missed some deprecation / removal.

Your Environment
python3.11

Sorry about that, looks like it was commented out by mistake and slipped through. We're running a release today so we'll get that fixed in the latest version.