logoalt Hacker News

sweetgiornitoday at 8:06 AM1 replyview on HN

> How would you represent metrics as traces?

Just instrument your meter implementation so each observation produces a span. Boom, free metric-derived traces.


Replies

fallingbanannatoday at 9:15 AM

Yup. Not a difficult problem to solve.

In the code define everything as a span with a name, scope (start-end), description and tags... and then you can easily dynamically produce traces, spans, logs or metrics based on what you need.

show 1 reply