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

Appsignal.Plug not overrideable #463

Closed
jdobrzanski opened this issue Mar 13, 2019 · 2 comments
Closed

Appsignal.Plug not overrideable #463

jdobrzanski opened this issue Mar 13, 2019 · 2 comments
Assignees
Labels

Comments

@jdobrzanski
Copy link

Appsignal.Plug does not allow another plug to override its call function (ie. through defoverridable call: 2) which is making it difficult to layer, for instance, provide a additional information to plug_session for inclusion in error sample data prior to Appsignal.Plug.call's error handler.

Is there is specific reason that the approach recommended in phoenixframework/phoenix#2791 was not done for Appsignal.Plug?

jeffkreeftmeijer added a commit that referenced this issue Mar 14, 2019
Closes #463. The `defoverridable` call was dropped in
a7b434c when splitting the Plug
integration from the Phoenix integration.
@jeffkreeftmeijer
Copy link
Member

Hey @jdobrzanski,

Thanks for bringing this up. It looks like we've accidentally dropped the overridable Plug in a7b434c, and we haven't had requests to add it back since. I've pushed a fix in #464 to add it back. We're reviewing that now and it's planned to be included in the next minor release. If you have time, could you try the overridable-call branch in your app and let us know if that gets you a step further?

@jdobrzanski
Copy link
Author

Thanks @jeffkreeftmeijer looks like this does the trick! Waiting for the next release!

tombruijn pushed a commit that referenced this issue Mar 15, 2019
Closes #463. The `defoverridable` call was dropped in
a7b434c when splitting the Plug
integration from the Phoenix integration.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants