Use the Log Handler for JSON trace output
mainThe Log Handler is a Natchez back-end designed to print traces to a logger in a structured JSON format.
Key characteristics:
- JSON Structure: Spans are emitted as JSON objects where span fields are represented as object properties.
- Hierarchy: A special
childrenproperty is included in each JSON object to contain a list of its child spans, allowing for a nested representation of the trace. - Tracing Support: While continued traces maintain correct parent span and trace IDs, full distributed tracing is not supported because this handler does not include a span collector.