jolpica / jolpica-f1

Apache License 2.0
92 stars 4 forks source link

Fix Invalid type ASGIRequest error message #60

Closed jolpica closed 2 months ago

jolpica commented 2 months ago

Why are you making this change?

After implementing opentelemetry logging, the following is being seen in newrelic image

Invalid type ASGIRequest for attribute 'request' value. Expected one of ['bool', 'str', 'bytes', 'int', 'float'] or a sequence of those types

This occurs when someone visits an error page such as Not Found, like api.jolpi.ca/foobar To resolve this we remove the offending attribute and replace it with compatible ones

Contributing Checklist