From 567293ab1baa8cb0eca843977c520e5b8f400b4d Mon Sep 17 00:00:00 2001 From: Stefan Boberg Date: Thu, 11 Dec 2025 16:12:02 +0100 Subject: add otel instrumentation (#581) this change adds OTEL tracing to a few places * Top-level application lifecycle (config/init/cleanup, main loop) * http.sys requests it also brings some otlptrace optimizations and dynamic configuration of tracing. OTLP tracing is currently always disabled --- src/zenserver/main.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/zenserver/main.cpp') diff --git a/src/zenserver/main.cpp b/src/zenserver/main.cpp index 6bab33d92..34848c831 100644 --- a/src/zenserver/main.cpp +++ b/src/zenserver/main.cpp @@ -18,6 +18,7 @@ #include #include #include +#include #include #include "diag/logging.h" @@ -102,6 +103,8 @@ AppMain(int argc, char* argv[]) #endif // ZEN_WITH_TRACE { + ZEN_OTEL_SPAN("AppMain::Configure"); + typename Main::Configurator Configurator(ServerOptions); Configurator.Configure(argc, argv); } -- cgit v1.2.3