Our idea to better support SPA

6 views
Skip to first unread message

Jordi Polo Carres

unread,
Oct 4, 2019, 5:16:01 PM10/4/19
to zipki...@googlegroups.com
Hi,

In a SPA application each javascript request creates a trace in our backend systems, which is fine. But we also want to know that these requests belong to one same original page.

So we are going to render a hidden field with the trace created by the first request, and all javascript calls will send us the content of the field. The backend would then add the field into the span with a certain tag.
So we could always get this tag to get our collection of traces.

This works for us and maybe very specific to how we do SPA here (as more pure apps may want to add url information or just don't bother about this ) but nevertheless wanted to share in case it is an useful idea for anyone else.

Happy hacking


--

Adrian Cole

unread,
Nov 1, 2019, 8:33:49 PM11/1/19
to zipki...@googlegroups.com
interesting, so this is sortof a hybrid of "not quite frontend
tracing", as opposed to something like
https://stackoverflow.com/questions/36556766/can-a-variable-be-used-in-docker-from,
but more than just re-using an entry trace ID (like the browser plugin
does)

thanks for sharing!
> --
> You received this message because you are subscribed to the Google Groups "zipkin-dev" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to zipkin-dev+...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/zipkin-dev/CAM2%2BnKjOx_9K76i77rpQ26Vq9K33iP5VgcLRiHLvXYaKcUrvpA%40mail.gmail.com.

Jordi Polo Carres

unread,
Nov 1, 2019, 8:35:59 PM11/1/19
to zipki...@googlegroups.com

Wrong link?

On Fri, Nov 1, 2019 at 5:33 PM Adrian Cole <adrian...@gmail.com> wrote:
interesting, so this is sortof a hybrid of "not quite frontend
tracing", as opposed to something like

but more than just re-using an entry trace ID (like the browser plugin
does)

thanks for sharing!

On Sat, Oct 5, 2019 at 5:16 AM Jordi Polo Carres <jca...@mdsol.com> wrote:
>
> Hi,
>
> In a SPA application each javascript request creates a trace in our backend systems, which is fine. But we also want to know that these requests belong to one same original page.
>
> So we are going to render a hidden field with the trace created by the first request, and all javascript calls will send us the content of the field. The backend would then add the field into the span with a certain tag.
> So we could always get this tag to get our collection of traces.
>
> This works for us and maybe very specific to how we do SPA here (as more pure apps may want to add url information or just don't bother about this ) but nevertheless wanted to share in case it is an useful idea for anyone else.
>
> Happy hacking
>
>
> --
> Jordi Polo Carres | API bundle lead | Medidata Solutions Worldwide
> Api bundle: api-b...@mdsol.com
> API standard: https://learn.mdsol.com/display/CA/MCC+API+Standard+V1
>
> --
> You received this message because you are subscribed to the Google Groups "zipkin-dev" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to zipkin-dev+...@googlegroups.com.


--
You received this message because you are subscribed to the Google Groups "zipkin-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to zipkin-dev+...@googlegroups.com.

Adrian Cole

unread,
Nov 1, 2019, 8:51:11 PM11/1/19
to zipki...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages