This commit is contained in:
Leighton Chen 2023-01-05 16:13:33 -08:00
Родитель 285ba7191a
Коммит 905066c4aa
4 изменённых файлов: 5 добавлений и 8 удалений

Просмотреть файл

@ -5,15 +5,14 @@
# --------------------------------------------------------------------------
import logging
from azure.monitor.opentelemetry.distro.util import get_configurations
from azure.monitor.opentelemetry.exporter import AzureMonitorTraceExporter
from opentelemetry import trace
from opentelemetry.sdk.resources import Resource
from opentelemetry.sdk.trace import TracerProvider
from opentelemetry.sdk.trace.export import BatchSpanProcessor
from opentelemetry.semconv.resource import ResourceAttributes
from azure.monitor.opentelemetry.distro.util import get_configurations
from azure.monitor.opentelemetry.exporter import AzureMonitorTraceExporter
def configure_opentelemetry(**kwargs):
"""

Просмотреть файл

@ -12,7 +12,6 @@ from opentelemetry.environment_variables import (
)
from opentelemetry.instrumentation.distro import BaseDistro
_logger = logging.getLogger(__name__)

Просмотреть файл

@ -4,8 +4,8 @@
# license information.
# --------------------------------------------------------------------------
from opentelemetry import trace
from azure.monitor.opentelemetry.distro import configure_opentelemetry
from opentelemetry import trace
configure_opentelemetry()

Просмотреть файл

@ -13,11 +13,10 @@
# limitations under the License.
import unittest
from unittest.mock import patch, Mock
from opentelemetry.semconv.resource import ResourceAttributes
from unittest.mock import Mock, patch
from azure.monitor.opentelemetry.distro import configure_opentelemetry
from opentelemetry.semconv.resource import ResourceAttributes
class TestConfigure(unittest.TestCase):