keptn / lifecycle-toolkit

Toolkit for cloud-native application lifecycle management
https://keptn.sh
Apache License 2.0
322 stars 126 forks source link

return error details from dynatrace metric provider in analysis #3545

Open RealAnna opened 6 months ago

RealAnna commented 6 months ago

this ticket overlaps a bit with #2790

typical API errors look like:


{
  "error": {
    "code": 400,
    "message": "Constraints violated.",
    "details": {
      "errorRef": "f81d4fae-7dec-11d0-a765-00a0c91e6bf6",
      "traceId": "99633483d17779d7c81141f50dbc2a49",
      "errorCode": "InvalidPaginationToken",
      "constraintViolations": [
        {
          "path": "detectionRules[0].filterConfig.pattern",
          "message": "may not be null",
          "parameterLocation": "PAYLOAD_BODY"
        }
      ]
    }
  }
}

it would help debugging if we could also export the details in the analysis CRD error message, the current error message propagation does not help users understand their errors.

We should also specify how the metric providers queries the API , already using the 'metricsSelector=' a proper blog/ DT tutorial is needed for this probably.

DoD

github-actions[bot] commented 1 month ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.