TestNew | Basic middleware initialization | Middleware processes requests successfully |
TestCaptureError | Error capture from handler | Error event captured with correct message and level “error” |
TestCaptureMessage | Manual message capture | Message event captured with level “info” |
TestCapturePanic | Panic recovery | Panic captured as “fatal” level event and re-thrown |
TestEnvironmentAndRelease | Environment and release configuration | Events include configured environment and release values |
TestTags | Default tags configuration | Default tags applied to all events |
TestBeforeSend | BeforeSend hook modification | Hook can modify events before sending |
TestBeforeSendDrop | BeforeSend hook event dropping | Returning nil from hook prevents event capture |
TestRequestInfo | HTTP request metadata capture | Event includes method, URL, query string, and headers |
TestSensitiveHeadersFiltered | Sensitive header filtering | Authorization, Cookie, and X-Api-Key headers excluded |
TestStacktrace | Stack trace generation | Events include stack trace with frames |
TestMockTransport | Mock transport for testing | Events sent to custom transport |
TestHubEvents | Hub event storage and clearing | Events can be retrieved and cleared from hub |
TestGetHub | Hub retrieval from context | Hub accessible within request handlers |
TestSetUser | User context setting | User information can be set on context |
TestSetTagAndExtra | Dynamic tags and extra data | Tags and extra data can be set per request |