diff --git a/docs/examples/logs/example.py b/docs/examples/logs/example.py index b2b15932625..2505aacea7a 100644 --- a/docs/examples/logs/example.py +++ b/docs/examples/logs/example.py @@ -1,14 +1,11 @@ import logging from opentelemetry import trace +from opentelemetry._logs import set_logger_provider from opentelemetry.exporter.otlp.proto.grpc._log_exporter import ( OTLPLogExporter, ) -from opentelemetry.sdk._logs import ( - LoggerProvider, - LoggingHandler, - set_logger_provider, -) +from opentelemetry.sdk._logs import LoggerProvider, LoggingHandler from opentelemetry.sdk._logs.export import BatchLogRecordProcessor from opentelemetry.sdk.resources import Resource from opentelemetry.sdk.trace import TracerProvider