question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support Wicket dynamic Ajax endpoints

See original GitHub issue

We use the Wicket framework for an AJAX-heavy web application. To utilize the AJAX requests in Wicket, custom Ajax handlers are dynamically generated and attached to components, such as:

childComponent.add( new OnChangeAjaxBehavior() {
    @Override
    protected void onUpdate( AjaxRequestTarget target ) {
        //Handle AJAX call
    }
}

Wicket then generates an AJAX URL similar to: /page?4-1.IBehaviorListener.0-parent~component-child~component

As a result, the APM agent merges all AJAX requests on all pages into one generic POST request type: screenshot_2018-11-26 transactions

It would be great if the APM agent knew how to deal with this and categorize the requests properly, but I’m not sure if it is even possible. Maybe there’s a workaround?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:11 (11 by maintainers)

github_iconTop GitHub Comments

2reactions
sqrencommented, Mar 15, 2019

fyi @felixbarny @mdindoffer The issue related to weird encoding in APM UI (Kibana) has finally been fixed 😃 https://github.com/elastic/kibana/pull/33309

0reactions
SylvainJugecommented, Sep 27, 2021

Closing this issue as a work-around is available in apm-contrib repository. We will re-evaluate adding native support for this in the agent if there are more requests for it.

Read more comments on GitHub >

github_iconTop Results From Across the Web

WicketEndpoint (Wicket Parent 8.15.0-SNAPSHOT API)
public class WicketEndpoint extends javax.websocket.Endpoint. JSR 356 WebSocket Endpoint that integrates with Wicket Native WebSocket's IWebSocketProcessor ...
Read more >
Wicket and ajax with Rest service - Stack Overflow
Is it possible with Wicket to use AJAX but invoking a webservice from a different domain from the one serving the original page?...
Read more >
CHANGELOG-8.x - wicket - Git at Google
[WICKET-6706] - Websocket Endpoint logs exception when user leaves page ... [WICKET-6638] - RedirectRequestHandler does not support Ajax.
Read more >
How to write a JSON response in Wicket - Coder Dreams
Learn how to create JSON response endpoints in Wicket and invoke them from Javascript using the fetch API.
Read more >
CSP in Apache Wicket
Wicket has built-in AJAX support, a jQuery library and automatically generates JS code on a web page. Content Security Policy in Apache Wicket....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found