Skip to content

Conversation

@tombruijn
Copy link
Member

As part of #329, update the Hanami integration to use Rack middleware and the EventHandler to instrument requests made to Hanami apps. This standardizes the instrumentation as much as possible between Rack apps and minimizes our reliance on monkeypatches.

The only monkeypatch that remains is setting the action name to the Action class name. I have found no other way yet to fetch this metadata from the request metadata, environment or the Hanami router.

Part of #329
Mostly solves #911

As part of #329, update the Hanami integration to use Rack middleware
and the EventHandler to instrument requests made to Hanami apps. This
standardizes the instrumentation as much as possible between Rack apps
and minimizes our reliance on monkeypatches.

The only monkeypatch that remains is setting the action name to the
Action class name. I have found no other way yet to fetch this metadata
from the request metadata, environment or the Hanami router.

Part of #329
Mostly solves #911
@tombruijn tombruijn added the enhancement An improvement to an existing feature. label Jun 25, 2024
@tombruijn tombruijn self-assigned this Jun 25, 2024
Add a test that makes sure we don't install the middleware on the Hanami
app when AppSignal is not active.
@tombruijn tombruijn merged commit 519b4f4 into main Jun 26, 2024
@tombruijn tombruijn deleted the hanami-refactor branch July 10, 2024 18:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement An improvement to an existing feature.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants