MindscapeHQ / raygun4net

Raygun provider for .NET
https://raygun.com
MIT License
125 stars 91 forks source link

Added support for capturing Environment Variables #523

Closed phillip-haydon closed 8 months ago

phillip-haydon commented 8 months ago

New settings to enable capturing environment variables.

builder.Services.AddRaygun(builder.Configuration, settings =>
{
  settings.EnvironmentVariables.Add("USER*");
  settings.EnvironmentVariables.Add("POSH_*");
});

Can do:

If you enter * only it will return nothing as we don't want to capture everything, variables should be opt-in and explicit, not capture everything and potentially leak sensitive data by mistake.

image