mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-01-10 00:28:31 +00:00
Fix import sorting issues in test file
Co-Authored-By: Joe Moura <joao@crewai.com>
This commit is contained in:
@@ -13,7 +13,9 @@ def test_opentelemetry_imports():
|
||||
try:
|
||||
# Test basic imports
|
||||
from opentelemetry import trace
|
||||
from opentelemetry.exporter.otlp.proto.http.trace_exporter import OTLPSpanExporter
|
||||
from opentelemetry.exporter.otlp.proto.http.trace_exporter import (
|
||||
OTLPSpanExporter,
|
||||
)
|
||||
from opentelemetry.sdk.resources import SERVICE_NAME, Resource
|
||||
from opentelemetry.sdk.trace import TracerProvider
|
||||
from opentelemetry.sdk.trace.export import BatchSpanProcessor
|
||||
@@ -67,6 +69,7 @@ def test_telemetry_configuration():
|
||||
for disabling telemetry collection.
|
||||
"""
|
||||
import os
|
||||
|
||||
from src.crewai.telemetry.telemetry import Telemetry
|
||||
|
||||
# Test with telemetry disabled via environment variable
|
||||
|
||||
Reference in New Issue
Block a user