MimeNegotiation::InvalidType is raised by Rails whenever a client sends a malformed Accept or Content-Type header. In practice this is exclusively scanner/fuzzer traffic (e.g. Accept: ../../../../etc/services{{).
Rails already maps it to a 406 Not Acceptable via ActionDispatch::ExceptionWrapper.rescue_responses, so the response is correct but posthog-rails still captures it as an exception, producing noise that's identical in spirit to the already-excluded ActionController::BadRequest / UnknownFormat / ParseError.
Proposal: add ActionDispatch::Http::MimeNegotiation::InvalidType to default_excluded_exceptions.
MimeNegotiation::InvalidTypeis raised by Rails whenever a client sends a malformedAcceptorContent-Typeheader. In practice this is exclusively scanner/fuzzer traffic (e.g.Accept: ../../../../etc/services{{).Rails already maps it to a
406 Not AcceptableviaActionDispatch::ExceptionWrapper.rescue_responses, so the response is correct butposthog-railsstill captures it as an exception, producing noise that's identical in spirit to the already-excludedActionController::BadRequest/UnknownFormat/ParseError.Proposal: add
ActionDispatch::Http::MimeNegotiation::InvalidTypetodefault_excluded_exceptions.