Forum Discussion

keithkelly's avatar
3 years ago

Can I "Trace" the Requests Happening Behind the Scenes?

For the products we build, we have trace tools that help us understand what APIs etc are being called behind the scenes.  We even give them to our customers (b2b) so they can analyze & learn.

Of course there's Fiddler, which does quite a bit of tracing, but I *think*(?) Fiddler is irrelevant for tracing Khoros API stuff - but it's been probably 5 years since I've used Fiddler seriously. 

Are there any Trace tools available (either by Khoros or that expose Khoros goodies) that can help make sense of the API requests called by various components? 

(example:  "My Group Hubs" component ... what API call is happening behind the scenes there?  I'd like to build my own component that grabs the same list but uses it differently.  I've spent 1hr in the docs, and haven't found what I'm after.   Buuuutttttttttttt if I could only trace the dang thing........)

Does anyone have any tracing insight?  Are there any tools available? 

14 Replies

  • haha - a user with one post that joined Tuesday. I think maybe Chat GPT has escaped and changed its name to Normanschmidt ?

    This is a bit weird cause only the OP (or an admin) can accept a solution.

     

  • keithkelly's avatar
    keithkelly
    Leader
    3 years ago

    I see Normanschmidt's response was accepted as a reply, but I don't believe this addresses my question.  Perhaps I'm just not following. 


    Normanschmidt wrote:

    A trace can have multiple spans, the relation/ordering between the span is maintained by storing the pointer of parent_span inside each span. System Tracing allows you to share your collected trace with other apps on your device. In doing so, you can send the trace to your development team through an email or a bug-tracking app without needing to connect a device to your development machine. HEB Partner


    Can I leverage this to see what API calls are happening behind the scenes?

  • keithkelly's avatar
    keithkelly
    Leader
    3 years ago

    Agreed in all aspects. 

    An example of what I'm after is to take the question:

    "What's the API V2 request used by the My Group Hubs widget? 

    I could post that question on this forum, but I could avoid it if I could see that request (& the response) happening behind the scenes.  It's a capability we give our users, and I was hoping it was also available to those of us developing on Khoros.   

  • If I understand what you're asking correctly, you want to see what API calls the OOTB components are using?

    One of the first questions I recall asking a long time ago was, "Could we get the Freemarker source code for the OOTB component X?" Of course core components aren't Freemarker so the answer was "sorry not possible".

    V2 API came along and while it gave us a deeper look at the underlying core database (kind of) - it was still behind the API layer. I think with Hermes this changed and some of OOTB Components are actually Freemarker but they are not directly available in Studio - unless you ask really really nicely 🙂 

    I'm hoping, no praying, that Aurora provides a way for developers to extend the core OOTB Component so we can add minor customisations without the need to reimplement the entire component. But I suspect some of the highly complex components say "messageList" may still need to remain behind the curtain.