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)