File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed
dd-java-agent/agent-debugger/src/main/java/com/datadog/debugger/agent Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -371,9 +371,15 @@ private static DebuggerSink createDebuggerSink(
371371 }
372372
373373 public static String getDefaultTagsMergedWithGlobalTags (Config config ) {
374- GitInfo gitInfo = GitInfoProvider .INSTANCE .getGitInfo ();
375- String gitSha = gitInfo .getCommit ().getSha ();
376- String gitUrl = gitInfo .getRepositoryURL ();
374+ String gitSha = null ;
375+ String gitUrl = null ;
376+ try {
377+ GitInfo gitInfo = GitInfoProvider .INSTANCE .getGitInfo ();
378+ gitSha = gitInfo .getCommit ().getSha ();
379+ gitUrl = gitInfo .getRepositoryURL ();
380+ } catch (Exception e ) {
381+ LOGGER .error ("Failed to retrieve git info: " , e );
382+ }
377383 String debuggerTags =
378384 TagsHelper .concatTags (
379385 "env:" + config .getEnv (),
You can’t perform that action at this time.
0 commit comments