@tsuga/cli 1.1.1 → 1.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +27 -3
- package/dist/cli.js +71 -71
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -55,7 +55,7 @@ All authentication lives under `tsuga auth`.
|
|
|
55
55
|
For interactive use, log in as a user with a browser authorization flow:
|
|
56
56
|
|
|
57
57
|
```bash
|
|
58
|
-
#
|
|
58
|
+
# Opens your browser to an authorization URL, or prints the URL if it can't be opened.
|
|
59
59
|
tsuga auth login
|
|
60
60
|
|
|
61
61
|
# Print the saved user access token
|
|
@@ -193,7 +193,7 @@ tsuga logs patterns --rationale "exploring telemetry to investigate prod outage"
|
|
|
193
193
|
|
|
194
194
|
### Available resources
|
|
195
195
|
|
|
196
|
-
`cloud-resources`, `dashboards`, `ingestion-api-keys`, `investigations`, `monitors`, `notification-rules`, `notification-silences`, `quality-reports`, `retention-policies`, `routes`, `services`, `tag-policies`, `teams`
|
|
196
|
+
`cloud-resources`, `dashboards`, `ingestion-api-keys`, `investigations`, `monitors`, `notification-rules`, `notification-silences`, `quality-reports`, `retention-policies`, `routes`, `services`, `slos`, `tag-policies`, `teams`
|
|
197
197
|
|
|
198
198
|
> Notes:
|
|
199
199
|
>
|
|
@@ -307,6 +307,30 @@ tsuga logs error-pattern-increases --from -24h --team my-team --env prod
|
|
|
307
307
|
tsuga traces search --from -30m --query 'span_name:GET'
|
|
308
308
|
```
|
|
309
309
|
|
|
310
|
+
### Summarize a trace
|
|
311
|
+
|
|
312
|
+
Aggregates groups of similar spans into synthetic summary spans (marked with
|
|
313
|
+
`spanAttributes.aggregation.is_summary`) for a compact view of large traces:
|
|
314
|
+
|
|
315
|
+
```bash
|
|
316
|
+
tsuga traces summarize --trace-id 78c99c5bb1e4a30297fa134b9dbec64f --from -30m
|
|
317
|
+
```
|
|
318
|
+
|
|
319
|
+
### Trace latency summary
|
|
320
|
+
|
|
321
|
+
Summarizes where wall-clock time is spent in a trace: each slice of the timeline
|
|
322
|
+
is attributed to the services with active leaf spans, with per-service totals:
|
|
323
|
+
|
|
324
|
+
```bash
|
|
325
|
+
tsuga traces latency-summary --trace-id 78c99c5bb1e4a30297fa134b9dbec64f --from -30m
|
|
326
|
+
|
|
327
|
+
# Per-service totals only, without the range timeline
|
|
328
|
+
tsuga traces latency-summary --trace-id 78c99c5bb1e4a30297fa134b9dbec64f --from -30m --no-ranges
|
|
329
|
+
|
|
330
|
+
# Collapse timeline ranges shorter than 50ms (0 disables collapsing)
|
|
331
|
+
tsuga traces latency-summary --trace-id 78c99c5bb1e4a30297fa134b9dbec64f --from -30m --min-range-duration-ms 50
|
|
332
|
+
```
|
|
333
|
+
|
|
310
334
|
### Metrics
|
|
311
335
|
|
|
312
336
|
```bash
|
|
@@ -360,7 +384,7 @@ tsuga experimental promql -f query.json
|
|
|
360
384
|
Or inline:
|
|
361
385
|
|
|
362
386
|
```bash
|
|
363
|
-
tsuga experimental promql -d '{"query":"sum(
|
|
387
|
+
tsuga experimental promql -d '{"query":"sum by (\"context.service.name\") (sum_over_time({\"traces.span.metrics.calls\", \"span.kind\"=\"SPAN_KIND_SERVER\"}[5m]))","timeRange":{"from":1704067200,"to":1704070800},"step":"30s"}'
|
|
364
388
|
```
|
|
365
389
|
|
|
366
390
|
`timeRange.from` / `timeRange.to` are Unix timestamps in seconds.
|