aboutsummaryrefslogtreecommitdiff
path: root/src/zenserver/main.cpp
diff options
context:
space:
mode:
authorStefan Boberg <[email protected]>2025-12-11 16:12:02 +0100
committerGitHub Enterprise <[email protected]>2025-12-11 16:12:02 +0100
commit567293ab1baa8cb0eca843977c520e5b8f400b4d (patch)
tree1f54f12d3fb19b91695bbfea33fa9abd8de49f69 /src/zenserver/main.cpp
parent5.7.14 (diff)
downloadzen-567293ab1baa8cb0eca843977c520e5b8f400b4d.tar.xz
zen-567293ab1baa8cb0eca843977c520e5b8f400b4d.zip
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
Diffstat (limited to 'src/zenserver/main.cpp')
-rw-r--r--src/zenserver/main.cpp3
1 files changed, 3 insertions, 0 deletions
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 <zencore/string.h>
#include <zencore/thread.h>
#include <zencore/trace.h>
+#include <zentelemetry/otlptrace.h>
#include <zenutil/service.h>
#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);
}