plugin/trace: recognize Zipkin URL schemes by prefix (#8625)

* plugin/trace: recognize Zipkin URL schemes by prefix

Signed-off-by: xinjun.jiang <xinjun.jiang@daocloud.io>

* plugin/trace: compare HTTP schemes case insensitively

Signed-off-by: xinjun.jiang <xinjun.jiang@daocloud.io>

---------

Signed-off-by: xinjun.jiang <xinjun.jiang@daocloud.io>
This commit is contained in:
jxj
2026-10-13 19:55:41 +08:00
committed by GitHub
parent f0baaf05dd
commit 3580a2996e
4 changed files with 18 additions and 7 deletions

View File

@@ -20,7 +20,8 @@ trace [ENDPOINT-TYPE] [ENDPOINT]
* **ENDPOINT-TYPE** is the type of tracing destination. Currently only `zipkin` and `datadog` are supported.
Defaults to `zipkin`.
* **ENDPOINT** is the tracing destination, and defaults to `localhost:9411`. For Zipkin, if
**ENDPOINT** does not begin with `http`, then it will be transformed to `http://ENDPOINT/api/v2/spans`.
**ENDPOINT** does not begin with `http://` or `https://` (case-insensitive), then it will be transformed to
`http://ENDPOINT/api/v2/spans`.
With this form, all queries will be traced.