From ceb1a655d506578c8704ac5d1dc9cc5dc4df3d22 Mon Sep 17 00:00:00 2001 From: Marc Cataford Date: Fri, 18 Oct 2024 21:04:05 -0400 Subject: [PATCH] fix: ensure that loglevel is to INFO --- tracer.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tracer.py b/tracer.py index 75c057c..d17c5a7 100644 --- a/tracer.py +++ b/tracer.py @@ -10,7 +10,9 @@ from opentelemetry.sdk.trace import TracerProvider from opentelemetry.sdk.trace.export import BatchSpanProcessor from opentelemetry.exporter.otlp.proto.grpc.trace_exporter import OTLPSpanExporter -logger = logging.getLogger(__name__) +logger = logging.getLogger("opentelemetry-export") + +logging.basicConfig(level=logging.INFO) class JobMetadata(pydantic.BaseModel, extra="ignore"): @@ -119,6 +121,8 @@ def run(): create_span_from_run_metadata(metadata) + logger.info("Pushed trace to target!") + if __name__ == "__main__": run()