Version 3.1.2
BacktraceDataallows to edit list of environment variables collected byBacktraceAnnotationsSourceCodeobject description for PII purpose `Annotationsclass exposes EnvironmentVariableCache dictionary - dictionary that stores environment variables collected by library. For example - to replaceUSERNAMEenvironment variable collected by Backtrace library with random string you can easily edit annotations environment varaible and Backtrace-Untiy will reuse them on report creation.
Annotations.EnvironmentVariablesCache["USERNAME"] = "%USERNAME%";
Also you can still use BeforeSend event to edit collected diagnostic data:
client.BeforeSend = (BacktraceData data) =>
{
data.Annotation.EnvironmentVariables["USERNAME"] = "%USERNAME%";
return data;
}
https://github.com/backtrace-labs/backtrace-unity/releases/tag/3.1.2