xBis7 commented on code in PR #56187:
URL: https://github.com/apache/airflow/pull/56187#discussion_r2567936030
##########
shared/observability/src/airflow_shared/observability/traces/otel_tracer.py:
##########
@@ -26,22 +26,20 @@
from opentelemetry import trace
from opentelemetry.context import attach, create_key
from opentelemetry.exporter.otlp.proto.http.trace_exporter import
OTLPSpanExporter
-from opentelemetry.sdk.resources import HOST_NAME, SERVICE_NAME, Resource
+from opentelemetry.sdk.resources import SERVICE_NAME, Resource
from opentelemetry.sdk.trace import Span, SpanProcessor, Tracer as
OpenTelemetryTracer, TracerProvider
from opentelemetry.sdk.trace.export import BatchSpanProcessor,
ConsoleSpanExporter, SimpleSpanProcessor
from opentelemetry.sdk.trace.id_generator import IdGenerator
from opentelemetry.trace import Link, NonRecordingSpan, SpanContext,
TraceFlags, Tracer
from opentelemetry.trace.propagation.tracecontext import
TraceContextTextMapPropagator
from opentelemetry.trace.span import INVALID_SPAN_ID, INVALID_TRACE_ID
-from airflow._shared.timezones import timezone
-from airflow.configuration import conf
-from airflow.traces.utils import (
+from airflow._shared.observability.traces.utils import (
+ datetime_to_nano,
parse_traceparent,
parse_tracestate,
)
-from airflow.utils.dates import datetime_to_nano
-from airflow.utils.net import get_hostname
+from airflow._shared.timezones import timezone
Review Comment:
Fixed.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]