Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support nested webmachine apps #1141

Merged
merged 3 commits into from
Jul 4, 2024
Merged

Support nested webmachine apps #1141

merged 3 commits into from
Jul 4, 2024

Conversation

tombruijn
Copy link
Member

Test webmachine instrumentation to set params

I noticed the webmachine tests don't test if it sets the params, now it does.

Also clean up some other spec stuff that's not needed.

Test webmachine custom action names

Use a Webmachine resource to test the instrumentation. Use that to set a custom action name and test that it doesn't get overwritten by the instrumentation.

Support nested webmachine apps

Apply the same logic as we have in the AbstractMiddleware for webmachine apps. When a parent transaction is active, use that and don't create a new one. More importantly, don't close the active transaction.

The webmachine instrumentation can't use the AbstractMiddleware, or any middleware, as this discouraged by the webmachine project. In practice I don't see this happening, but if someone happens to add an AppSignal EventHandler to the middleware stack in config.ru, we now support it.

Part of #329

I noticed the webmachine tests don't test if it sets the params, now it
does.

Also clean up some other spec stuff that's not needed.
@tombruijn tombruijn self-assigned this Jul 2, 2024
@tombruijn tombruijn mentioned this pull request Jul 2, 2024
36 tasks
tombruijn added 2 commits July 2, 2024 21:56
Use a Webmachine resource to test the instrumentation. Use that to set a
custom action name and test that it doesn't get overwritten by the
instrumentation.
Apply the same logic as we have in the AbstractMiddleware for webmachine
apps. When a parent transaction is active, use that and don't create a
new one. More importantly, don't close the active transaction.

The webmachine instrumentation can't use the AbstractMiddleware, or any
middleware, as this discouraged by the webmachine project. In practice I
don't see this happening, but if someone happens to add an AppSignal
EventHandler to the middleware stack in `config.ru`, we now support it.

Part of #329
@tombruijn tombruijn force-pushed the webmachine-update branch from e751f35 to 243d20a Compare July 2, 2024 19:56
@tombruijn tombruijn merged commit e1eb174 into main Jul 4, 2024
117 checks passed
@tombruijn tombruijn deleted the webmachine-update branch July 10, 2024 18:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants