Home / Companies / Sysdig / Blog / Post Details
Content Deep Dive

Introducing Python sysdig tracers

Blog post from Sysdig

Post Details
Company
Date Published
Author
Jorge Salamero Sanz
Word Count
720
Language
English
Hacker News Points
-
Summary

Sysdig has introduced a new Python library, tracers-py, designed to simplify the process of emitting sysdig tracers, which are used to monitor and troubleshoot code performance by tracing events such as method calls and API requests. This open-source library provides a straightforward, Pythonic interface that allows developers to integrate tracers with minimal code, such as a single line within a context manager or a function decorator. By writing a string to /dev/null with a specific syntax, developers can trace system events across various programming languages, including bash and zsh. The library also supports advanced features like custom arguments, nested spans, and function argument tracing, making it versatile for different use cases. Sysdig also offers libraries for Node and Go, with contributions from TJ Holowaychuk, to further ease the process of incorporating tracers into codebases.