You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: README.md
+14-4
Original file line number
Diff line number
Diff line change
@@ -109,6 +109,20 @@ See [splunk](pkg/splunk) source or [package documentation](https://pkg.go.dev/gi
109
109
110
110
### strc - simple tracing via slog
111
111
112
+
A small utility that accepts JSON from Splunk/Kibana/Cloudwatch and generates a text stack with timing information or a SVG flame graph. See [example_cli](internal/example_cli/main.go) and [example_export](internal/example_export/main.go) for fully working examples. To see it in action:
113
+
114
+
```
115
+
go run github.com/osbuild/logging/internal/example_cli/
116
+
```
117
+
118
+
See [strc](pkg/strc/stgraph) source or [package documentation](https://pkg.go.dev/github.com/osbuild/logging/pkg/strc/stgraph) for more info.
119
+
120
+
The generated SVG file is interactive and one can drill down the stack with a mouse click, the file needs to be opened in a new browser panel tho:
See [example_print](internal/example_print/main.go) and [example_export](internal/example_export/main.go) for fully working examples. To see it in action:
113
127
114
128
```
@@ -272,7 +286,3 @@ make unit-tests
272
286
License: MIT
273
287
274
288
Most code in `splunk` package was ported from https://github.com/osbuild/osbuild-composer and some code in `strc` from https://github.com/samber/slog-http
0 commit comments