You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've defined a subclass of the API LoggerProvider. A subclass of the SDK provider class wouldn't make sense in my case. I'd like to pass instances of my subclass to EventLoggerProvider. In addition the logger provider defaults to get_logger_provider() which might not be an SDK provider, so the types are buggy.
Most of the logic isn't tied to the SDK LoggerProvider. Where it is, it could do something like:
Here:
opentelemetry-python/opentelemetry-sdk/src/opentelemetry/sdk/_events/__init__.py
Lines 68 to 70 in a7fe4f8
LoggerProvider
is fromopentelemetry.sdk._logs
, not the APIopentelemetry._logs
. This is needed for things like this:opentelemetry-python/opentelemetry-sdk/src/opentelemetry/sdk/_events/__init__.py
Lines 85 to 86 in a7fe4f8
I've defined a subclass of the API
LoggerProvider
. A subclass of the SDK provider class wouldn't make sense in my case. I'd like to pass instances of my subclass toEventLoggerProvider
. In addition the logger provider defaults toget_logger_provider()
which might not be an SDK provider, so the types are buggy.Most of the logic isn't tied to the SDK
LoggerProvider
. Where it is, it could do something like:or just:
The text was updated successfully, but these errors were encountered: