Random slug fallback for `POST /api/traces` when no id is supplied: `rcp-<16 hex>`. Hyphen (not underscore) so the result satisfies the slug regex in `flowtrace-core::validate`. Human-authored ids go through `trace init ` and look like `iris-analysis`.
()
| 5 | /// slug regex in `flowtrace-core::validate`. Human-authored ids go through |
| 6 | /// `trace init <slug>` and look like `iris-analysis`. |
| 7 | pub fn random_trace_id() -> String { |
| 8 | let raw = Uuid::new_v4().simple().to_string(); |
| 9 | format!("rcp-{}", &raw[..16]) |
| 10 | } |
no outgoing calls
no test coverage detected
searching dependent graphs…