diff options
| author | Stefan Boberg <[email protected]> | 2025-12-11 16:12:02 +0100 |
|---|---|---|
| committer | GitHub Enterprise <[email protected]> | 2025-12-11 16:12:02 +0100 |
| commit | 567293ab1baa8cb0eca843977c520e5b8f400b4d (patch) | |
| tree | 1f54f12d3fb19b91695bbfea33fa9abd8de49f69 /src/zenserver/main.cpp | |
| parent | 5.7.14 (diff) | |
| download | zen-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.cpp | 3 |
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); } |