microsoft / restler-fuzzer

RESTler is the first stateful REST API fuzzing tool for automatically testing cloud services through their REST APIs and finding security and reliability bugs in these services.
MIT License
2.59k stars 296 forks source link

Enable customizing telemetry metadata #712

Closed marina-p closed 1 year ago

marina-p commented 1 year ago

Currently the usage data sent to AppInsights does not allow customization. Users may want to send additional metadata specific to their organization in order to better analyze usage. This change allows customizing the metadata to telemetry via app settings in two ways:

1) Environment variables: RESTler will attempt to read the environment variables with the specified names and send the (variableName, value) pair. 2) Specific values: the specified key-value pairs will be sent

Example settings:

"additionalTelemetryProperties": {
    "envVars": [
       "ServiceId"
    ],
    "properties": [
      {
        "key": "TargetEnvironment",
        "value":  "Dev"
      }
    ]
  }

Testing: