From the course: Advanced Data Engineering with Snowflake

Unlock this course with a free trial

Join today to access over 24,800 courses taught by industry experts.

Traces in Snowflake

Traces in Snowflake

Capturing traces is a little different from capturing logs in Snowflake. This is because traces can contain much more information about how events in a system occurred. This is in contrast to a log which contains information about what occurred and is based on a description that you write. The practical implementation is different, too. You used a common Python logging library in the last exercise, but to capture traces, you'll need to use Snowflake-specific libraries that are designed for the handler code you're using. These libraries are available in Java, JavaScript, Python, Scala, and Snowflake scripting. We're going to use them shortly in a Python environment. Before we get hands-on, let's learn a little bit more about traces. They can carry much more information than a log, so it's important to understand how to effectively capture and use traces. Recall that a trace is a record of the entire journey of a transaction or request as it moves through a system. You can think of it…

Contents