Correlating observability and source code commits
Last updated
Last updated
When new, unexpected, or regression issues are detected, it is helpful to be able to track them in you gi history. Adding the commit history to the traces will allow Digma to narrow down which code changes might be responsible for different problems.
To add the commit identifier to your traces, set the following Resource Attribute: scm.commit.id
on the trace. The easiest way to do it is via an environment variable. If you can access the commit from your CI, you can add an update row 8
above with the new attribute. Here is an example for implementing that in a Github Action:
This information will be used when identifying issues. For example, here is the ticket information for a specific issue found by Digma: