diff --git a/dataactcore/broker_logging.py b/dataactcore/broker_logging.py index d6dfa90c3..fd685aad2 100644 --- a/dataactcore/broker_logging.py +++ b/dataactcore/broker_logging.py @@ -83,13 +83,16 @@ def configure_logging(service_name='broker'): # if local, print the traces to the console trace.get_tracer_provider().add_span_processor(SimpleSpanProcessor(ConsoleSpanExporter())) else: + # TODO: Uncomment below to re-activate the OTEL exporter + pass + # Set up the OTLP exporter # Check out https://opentelemetry.io/docs/languages/sdk-configuration/otlp-exporter/ # for more exporter configuration - otel_endpoint = os.getenv("OTEL_EXPORTER_OTLP_TRACES_ENDPOINT") - if otel_endpoint: - exporter = OTLPSpanExporter(endpoint=otel_endpoint) - trace.get_tracer_provider().add_span_processor(SimpleSpanProcessor(exporter)) + # otel_endpoint = os.getenv("OTEL_EXPORTER_OTLP_TRACES_ENDPOINT") + # if otel_endpoint: + # exporter = OTLPSpanExporter(endpoint=otel_endpoint) + # trace.get_tracer_provider().add_span_processor(SimpleSpanProcessor(exporter)) LoggingInstrumentor(logging_format="%(asctime)s %(levelname)s:%(name)s:%(message)s") LoggingInstrumentor().instrument(tracer_provider=trace.get_tracer_provider(), set_logging_format=False)