{"repo":"kolonialno/troncos","free":true,"listed":false,"github":"https://github.com/kolonialno/troncos","clone":"git clone https://github.com/kolonialno/troncos.git","description":"🪵 Troncos - Collection of logging, tracing and profiling tools","language":"Python","stars":13,"topics":["logging","tracing","profiling","python","debugging"],"license":"MIT","category":"analytics","readme_excerpt":"🪵 Troncos Collection of Python logging and tracing tools - Etymology - Installation - Tracing - Logging Etymology \"Troncos\" is the plural of the spanish word \"Tronco\", which translates to \"trunk\" or \"log\". Installation Tracing Troncos is designed to take advantage of ddtrace made by DataDog. The ddtrace docs can be found here. Best practices for traces is a good guide to get started. Span vs resource attributes - A span attribute is a key/value pair that provides context for its span. - A resource attribute is a key/value pair that describes the context of how the span was collected. For more information, read the Attribute and Resource sections in the OpenTelemetry specification. Enabling the tracer Run configure tracer to send spans to Tempo and configure ddtrace as usual. TRACE HOST is usually the hostname of a trace collector, TRACE PORT is usually 4318 when Grafana Alloy is used to collect spans using HTTP. Enabling tracing must be done after any subprocesses have started, or it may cause deadlocks between processes. Dropping the code into e.g. settings.py might be problematic. Examples include in Celery signals, gunicon fork events, and so on. ddtrace also uses env variables to configure the service name, environment and version etc. Add the following environment variables to your application. Debugging during development By setting the environment variable OTEL TRACE DEBUG=True you will enable traces to be printed to stdout via the ConsoleSpanExporter as well as throu","default_branch":null,"files":null,"tree":[],"storefront":"/r/kolonialno","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/kolonialno/troncos/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}