Baby steps with Sketch

Today I made a visual design exercise where the goal was create two UI screens copied from their originals. Learning by doing. It was no easy, I needed to check videos and tutorials again in orden to…

Smartphone

独家优惠奖金 100% 高达 1 BTC + 180 免费旋转




Instrument Your Serverless Python with Thundra

How to instrument your function manually?

To perform tracing you need to have a tracer object and span objects. Tracer starts spans.

When a function is called, the tracer will start an active span. If another function is called inside this function, another span is started for callee and added as a child span to caller’s existing span. This generates a span tree. In order to trace your functions with Thundra, you need to first create Thundra tracer and start the active span as follows:

You can also add tags to active spans manually. For instance, you may use tags for reporting errors. Example usage can be like following:

The fields for errors are also specified by OpenTracing.

By adding errors to span tags, you can see them in the Thundra Web Console.

Example Use Case

User Service Class
User Repository Class
Invocation details with manual instrumentataion

With the trace chart, you are able to see which functions take longer time than expected or if an error has occurred during the invocations. You can add any data you want to span tags so that you can see them as raw data later in the trace chart. Example usage is shown below:

Conclusion

Add a comment

Related posts:

Why Sponsors LOVE Digital Contests

In an over-saturated attention market standing out is key. Sponsors have Instagram ads to grab that attention…but those are getting pretty oversaturated. I’ve talked before about how your influence…

How Social Media has Changed Hiring

The age of social media has changed interviews for both the interviewer and the interviewee. As an interviewer, I have learned two things. One, all resumes are largely lies. And two, all interviews…

but what if tomorrow never comes?

Entah sudah berapa lama waktu yang berlalu sembari Haechan mendengarkan cerita Jeno. Hybrid-nya bercerita dengan cukup detail, mulai dari momen ketika dirinya resmi diadopsi oleh keluarga Mark sampai…