Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -326,6 +326,10 @@ def _init_logging(
set_event_logger_provider(event_logger_provider)

if setup_logging_handler:
warnings.deprecated(
"Setting the OTel Logging handler from the SDK and the `OTEL_PYTHON_LOGGING_AUTO_INSTRUMENTATION_ENABLED` are deprecated. You should install the opentelemetry-instrumentation-logging"
)

# Add OTel handler
handler = LoggingHandler(
level=logging.NOTSET, logger_provider=provider
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -496,6 +496,10 @@ def __init__(
super().__init__(level=level)
self._logger_provider = logger_provider or get_logger_provider()

warnings.deprecated(
"This is deprecated you should use the one in opentelemetry-instrumentation-logging"
)

@staticmethod
def _get_attributes(record: logging.LogRecord) -> _ExtendedAttributes:
attributes = {
Expand Down
Loading