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

Set default FusionReactor transaction name for static files #139

Open
bdw429s opened this issue Aug 8, 2018 · 1 comment
Open

Set default FusionReactor transaction name for static files #139

bdw429s opened this issue Aug 8, 2018 · 1 comment

Comments

@bdw429s
Copy link
Member

bdw429s commented Aug 8, 2018

When using FusionReactor with CommandBox, static files such as js, css, or jpgs show in the FR UI with the transaction name of "URLRewriteFilter". This is because FR tries to "guess" the name based on the enclosing servlet, which can lead to completely random transaction names based on the servlet filter that happens to be wrapping the request. This is purely a cosmetic thing, but detect if the FR classes are in the classpath and use this code to set the transaction information to something like "Static File" for requests that are being managed by the static file handler and NOT being passed to ColdFusion.

new com.intergral.fusionreactor.api.FRAPI()
  .getInstance()
  .setTransactionName( 'Static File' );
 

Also, do not just use a try catch, check for the actual class name and cache the check for performance.

@bdw429s
Copy link
Member Author

bdw429s commented Aug 31, 2018

Thoughts on this? Should be pretty easy and we have a couple clients who could use it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant