Understanding the 'model' in 'signoz_spans' Table

TLDR ELLIOTTCABLE asked about the 'model' string in the 'signoz_spans' table. Ankit explained it as a complete JSON dump of a span and provided insight into its function in data sorting.

Fri, 29 Sep 2023 00:07:47 UTC

4. the `signoz_spans` table (seems a little anemic; i feel like I’m missing something) — what on earth is the `model` string? there’s a ton of references in the codebases, a little hard to narrow down such a general word (have to admit I don’t know actually know much about Go … :sweat:)

Photo of Ankit
Fri, 29 Sep 2023 12:36:17 UTC

`model` has everything about the span. It's like a complete json dump of a span. `signoz_spans` table was built to enable different sorting key `trace_id` . This enables fast fetching of spans belonging to a `trace_id`