But if we think about React and the front-end perspective and the client instrumentation, you'll see there's a big warning behind me. That basically, it's experimental and mostly unspecified. Now, there is a SIG group that is doing some really fab things. But the problem is that it's not quite there yet.
So, this is a big code snippet. Really high. You can go and check out the open telemetry demo. Within the open telemetry demo, they have an example using React that shows the front-end tracing snippet that I've got here. So, what you have to do is specify a web trace provider and give your name, your appropriate application a unique service name, and from there, what you'll do is add in the context and the auto instrumentations, and that will give you some pretty cool stuff out of the box. It's going to give you some basic metrics, albeit there's some other stuff that's coming along, but it also gives you a good idea of the tracing.
So, here's the example from the front end within the open telemetry demo. And what you can see is, I can see quite well that there's an HTTP POST request being initiated, and I can also see the pathway through the proxy, which is always very interesting to know. And I can see how long each of those steps is taking.
Because there's quite a few things that they're working on at the moment in the client seg that's actually work in progress. And one of them is those core web vital metrics that I was talking about before, alongside some other ones, such as the page view event stuff. With the emergence of events over time, I'm hoping that we won't need to use other particular types of tools, and you can hopefully use an open standard alongside the same thing for any back-end services that you're talking to.
But for the moment, that means we need to crack out the rum. As I said, I'm not talking about the favorite beverage of pirates, or maybe some of you in the audience today, I'm talking about real user monitoring. And the way that this works is you have an agent that you run within your JavaScript application that picks up those pieces that are currently missing from the open telemetry ecosystem.
So, in conclusion, we talked about logs, metrics, and traces, and why we should capture them, and found out who is capturing them and who isn't. If you're interested, check out that example for the RUM agent, the open telemetry demo and GitHub as well, or come and ask me questions. Thank you.
Comments