Skip to content

Commit

Permalink
Update example to adhere to new LoggingHandler.__init__() signature
Browse files Browse the repository at this point in the history
  • Loading branch information
pranavmarla committed Aug 22, 2022
1 parent 5bc0f61 commit 64b9dea
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions docs/examples/logs/example.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 64b9dea

Please sign in to comment.