Skip to content

Gather_Diagnostic_Info

Anthony Virtuoso edited this page Nov 16, 2019 · 1 revision

When contacting AWS Support or raising an issue/pull-request on this repository, you may be asked to provide diagnostic information to aid in troubleshooting your error or validating your proposed fix. You can use the below steps to gather some of the most common information.

Basic Details

  1. Athena Query ID that exhibited the error.
  2. AWS Region you ran the query in.
  3. Name of the affected connector(s)/UDF(s) and their respective versions. (versions can be found in Serverless Application Repository or by the release tag you built from this repository)
  4. Copy of any error messages or stack traces.
  5. Description of the problem.
  6. Description of the expected behavior.
  7. Cloudwatch Logs for the relevant Lambda invocations (details can be found below)
  8. (required only for custom connectors) Output of Connector Validator

Tips For Capturing Diagnostics

It is often helpful to restrict the level of parallelism Athena can achieve when calling your connector. By restricting your Lambda function to use a single (1) invocation reserved capacity you can force all relevant longs to go into a single log stream in Cloudwatch logs. This can make it much easier to see the call flow and spot errors / exceptions in your connector. This is especially useful while building/testing new connectors in conjunction with the Connector Validator. Keep in mind that when you set the reserved concurrency in Lambda you will affect all callers of that Lambda function, not just yourself.

Alternatively, you can use Athena to query Cloudwatch Logs and search/export all relevant logs.