Mermaid Gantt diagrams are great for displaying distributed traces in Markdown (2023)
Mermaid Gantt diagrams offer a Markdown-friendly solution for visualizing distributed trace information. By repurposing traditional scheduling tools, users can create clear trace diagrams resembling OpenTelemetry traces, enhancing documentation and web compatibility.
Read original articleMermaid Gantt diagrams are highlighted as a useful tool for presenting distributed trace information in Markdown. This alternative to using screenshots from JaegerUI offers a more Markdown-friendly and web-compatible solution. Gantt diagrams, traditionally used for scheduling tasks on a timeline, are now being repurposed to visualize distributed traces effectively. By utilizing specific features of Mermaid's syntax, such as adjusting the time scale and styling spans, users can create trace diagrams resembling OpenTelemetry traces. A practical example shared in a tweet demonstrates how to represent a trace using Mermaid's Gantt syntax, showcasing different services and their interactions over time. This approach provides a clear and structured way to display complex trace information in a more accessible format for documentation and web environments.
Related
Replicating D3 Charts with Swift Charts
The GitHub repository showcases various D3 charts recreated with Swift Charts, such as Histogram, Area Chart, Bar Chart, and more. Each chart is accompanied by a visual demonstration image.
We need visual programming. No, not like that
Visual programming environments struggle due to mismatched focus on syntax. Developers prefer visualizing state transitions and code aspects. Tools like Sourcetrail aid in understanding code complexity, suggesting more visualizations for improved software comprehension and optimization.
Tlsd: Generate (message) sequence diagrams from TLA+ state traces
The GitHub repository hosts the "tla-sequence-diagram" tool for creating sequence diagrams from TLC state traces. It visualizes message exchanges between nodes but needs optimization to prevent overlap. Instructions for usage are provided.
Sampler, visualization for any shell command
Sampler is a versatile Terminal User Interface tool supporting various OS and package managers. It visualizes real-time metrics, aids in server monitoring, system tracking, and script execution with alerts. Ideal for creating customizable terminal dashboards for diverse applications.
Mermaid Gantt diagrams are great for displaying distributed traces in Markdown
Mermaid Gantt diagrams, shared by @mitsuhiko, offer a new way to visualize distributed trace information in Markdown. This method enhances understanding of system interactions and trace data in documentation.
https://files.techhub.social/media_attachments/files/112/836...
This could be easily ported to Github Workflows, because the logic is very simple.
It is very difficult to save the images as bitmap (.jpeg, .mpng) or vector (.svg).
You basically have to use a headless browser rendering toolkit, and guess what? The images aren't consistent (different rendering styles).
I'm switching to Graphviz (DOT-based) which can look just as nice and has tons of file save features.
Looks like this: Out of office: [John Doe] [Stacy] Release: [code freeze] [Staging date] [Release!]
1. What that has to do with markdown? I mean, that syntax isn't markdown nor does it require anything markdown-related to render AFAICT.
2. What mermaid is; the link itself doesn't explain it. I think this does, sort of:
https://mermaid.js.org/intro/
but then - how does this relate to graphviz, or gnuplot? I'm missing that information.3. Can I get something nice-and-compilable, not JS, for rendering these gantt charts into SVGs or what-not?
https://www.chromium.org/developers/how-tos/trace-event-prof...
It looks like though the old catapult code has been officially deprecated, and they're recommending switching over to Perfetto.
https://github.com/google/perfetto
So anyhow, I just learned about the perfetto switch, so I won't try and dig up a link to the old way of formatting your traces to work with chrome://tracing, as it sounds completely deprecated. Go use Perfetto if you want a fairly easy way of interacting with trace data. I assume it's at least as good and useful as chrome://tracing.
This post is a little confusing, though, because this isn't markdown. It's mermaid's own markdown-like syntax for graphs/charts.
I wasn't expecting it to run client-side.
They fall down when you want to partially collapse the trace.
Mermaid supports either fully-collapsed, which will re-order your items, or not collapsed at all.
Its a dedicated text-to-timeline generator. Don't know if it can be embedded or available as a library too.
I used this in the past, found it via HN: https://nomnoml.com/
Related
Replicating D3 Charts with Swift Charts
The GitHub repository showcases various D3 charts recreated with Swift Charts, such as Histogram, Area Chart, Bar Chart, and more. Each chart is accompanied by a visual demonstration image.
We need visual programming. No, not like that
Visual programming environments struggle due to mismatched focus on syntax. Developers prefer visualizing state transitions and code aspects. Tools like Sourcetrail aid in understanding code complexity, suggesting more visualizations for improved software comprehension and optimization.
Tlsd: Generate (message) sequence diagrams from TLA+ state traces
The GitHub repository hosts the "tla-sequence-diagram" tool for creating sequence diagrams from TLC state traces. It visualizes message exchanges between nodes but needs optimization to prevent overlap. Instructions for usage are provided.
Sampler, visualization for any shell command
Sampler is a versatile Terminal User Interface tool supporting various OS and package managers. It visualizes real-time metrics, aids in server monitoring, system tracking, and script execution with alerts. Ideal for creating customizable terminal dashboards for diverse applications.
Mermaid Gantt diagrams are great for displaying distributed traces in Markdown
Mermaid Gantt diagrams, shared by @mitsuhiko, offer a new way to visualize distributed trace information in Markdown. This method enhances understanding of system interactions and trace data in documentation.