mirror of
https://github.com/OPM/ResInsight.git
synced 2026-11-24 14:58:13 -06:00
#15033 Telemetry: Add graphics environment to events
Most Linux crash reports are aborts inside the GL driver during a widget repaint, and the reports carry no information about the driver or display setup. Attach GL vendor/renderer/version, Qt platform, display server and remote display server (e.g. HP RGS) to crash and regular events, and report the OpenGL driver once per session in app.opengl_initialized. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
36a7329c7a
commit
648c20ca68
8 files changed
+295
-3
No files matched your search
@@ -18,6 +18,7 @@
|
||||
|
||||
#include "RiaApplication.h"
|
||||
#include "RiaArgumentParser.h"
|
||||
#include "RiaGraphicsEnvironmentTools.h"
|
||||
#include "RiaMainTools.h"
|
||||
#include "RiaOpenTelemetryManager.h"
|
||||
#include "RiaPreferences.h"
|
||||
@@ -157,6 +158,12 @@ int main( int argc, char* argv[] )
|
||||
bool isConsoleMode = ( dynamic_cast<RiaGuiApplication*>( app.get() ) == nullptr );
|
||||
attributes["app.console_mode"] = RiaStdStringTools::boolToString( isConsoleMode );
|
||||
attributes["app.version"] = RiaApplication::getVersionStringApp( false );
|
||||
|
||||
if ( !isConsoleMode )
|
||||
{
|
||||
RiaOpenTelemetryManager::instance().setGraphicsInfo( RiaGraphicsEnvironmentTools::displayEnvironment() );
|
||||
}
|
||||
|
||||
RiaOpenTelemetryManager::instance().reportEventAsync( "app.started", attributes );
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user