This commit is contained in:
Родитель
db89bdbb8b
Коммит
7d3f090ea0
|
@ -35,7 +35,6 @@ class BaseDistro(ABC):
|
|||
_instance = None
|
||||
|
||||
def __new__(cls, *args, **kwargs):
|
||||
|
||||
if cls._instance is None:
|
||||
cls._instance = object.__new__(cls, *args, **kwargs)
|
||||
|
||||
|
|
|
@ -17,7 +17,9 @@ from opentelemetry.environment_variables import (
|
|||
OTEL_METRICS_EXPORTER,
|
||||
OTEL_TRACES_EXPORTER,
|
||||
)
|
||||
from azure.monitor.opentelemetry._vendor.opentelemetry.instrumentation.distro import BaseDistro
|
||||
from azure.monitor.opentelemetry._vendor.opentelemetry.instrumentation.distro import (
|
||||
BaseDistro,
|
||||
)
|
||||
from opentelemetry.sdk.environment_variables import (
|
||||
_OTEL_PYTHON_LOGGING_AUTO_INSTRUMENTATION_ENABLED,
|
||||
)
|
||||
|
|
|
@ -4,7 +4,9 @@
|
|||
# license information.
|
||||
# --------------------------------------------------------------------------
|
||||
from azure.monitor.opentelemetry import configure_azure_monitor
|
||||
from azure.monitor.opentelemetry._vendor.opentelemetry.instrumentation.sqlalchemy import SQLAlchemyInstrumentor
|
||||
from azure.monitor.opentelemetry._vendor.opentelemetry.instrumentation.sqlalchemy import (
|
||||
SQLAlchemyInstrumentor,
|
||||
)
|
||||
from sqlalchemy import create_engine, text
|
||||
|
||||
configure_azure_monitor()
|
||||
|
|
Загрузка…
Ссылка в новой задаче