From 64b9dea05d5131129c42efead779f30dbb5ce7f7 Mon Sep 17 00:00:00 2001 From: Pranav Marla Date: Sun, 21 Aug 2022 21:03:40 -0400 Subject: [PATCH] Update example to adhere to new LoggingHandler.__init__() signature --- docs/examples/logs/example.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/docs/examples/logs/example.py b/docs/examples/logs/example.py index 28fca75e7c4..7b93705ce8d 100644 --- a/docs/examples/logs/example.py +++ b/docs/examples/logs/example.py @@ -34,8 +34,7 @@ exporter = OTLPLogExporter(insecure=True) log_emitter_provider.add_log_processor(BatchLogProcessor(exporter)) -log_emitter = log_emitter_provider.get_log_emitter(__name__, "0.1") -handler = LoggingHandler(level=logging.NOTSET, log_emitter=log_emitter) +handler = LoggingHandler(level=logging.NOTSET, log_emitter_provider=log_emitter_provider) # Attach OTLP handler to root logger logging.getLogger().addHandler(handler)