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()