ANW-42 Telemetry: reject an uptrace DSN with a path, query, or fragment tail
The part after the credentials was taken as the host unchecked, so a tail survived into the endpoint base and the per-signal path appended later landed inside it. Export was dead while startup logged it as enabled. Assumed reject over strip: the reporter asked for it and resolve already documents that an unusable DSN fails at startup; flag if silently normalizing the DSN is wanted instead. Assumed --otlp-endpoint stays unvalidated: a path prefix is legitimate there, and its query-tail case is out of this scope.
This commit is contained in:
parent
8894ea0c7b
commit
460e684c22
2 changed files with 124 additions and 1 deletions
|
|
@ -69,7 +69,7 @@ anwesen version
|
|||
| `--bind <addr:port>` | `ANWESEN_BIND` | `127.0.0.1:8080` | Listen address for `serve`. |
|
||||
| `--log-level <level>` | `ANWESEN_LOG_LEVEL` | `info` | `error`, `warn`, `info`, `debug`, or `trace`. |
|
||||
| `--query <query-string>` | -- | _required for `merge`_ | A `/query` query string: frontmatter predicates plus `__anw-` controls. |
|
||||
| `--uptrace-dsn <dsn>` | `ANWESEN_UPTRACE_DSN` | unset | uptrace DSN (`https://<token>@api.uptrace.dev`). Excludes `--otlp-endpoint`. |
|
||||
| `--uptrace-dsn <dsn>` | `ANWESEN_UPTRACE_DSN` | unset | uptrace DSN (`https://<token>@host[:port]`). No path or query. Excludes `--otlp-endpoint`. |
|
||||
| `--otlp-endpoint <url>` | `ANWESEN_OTLP_ENDPOINT` | unset | OTLP/HTTP base URL. Excludes `--uptrace-dsn`. |
|
||||
| `--otlp-header <key=value>` | `ANWESEN_OTLP_HEADERS` | none | Extra export header, repeatable. The env var takes a comma-separated list. |
|
||||
| `--otlp-slow-request-ms` | `ANWESEN_OTLP_SLOW_REQUEST_MS` | `500` | Requests at or over this duration, or answering 5xx, also export a span. |
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue