From 69e7a4be73526a1b0b9a7f53def3ebcf767df7b1 Mon Sep 17 00:00:00 2001 From: Immanuel Tikhonov <122638311+immanuwell@users.noreply.github.com> Date: Sat, 27 Jun 2026 14:21:26 +0400 Subject: [PATCH] fix(trace): correct Zipkin v2 endpoint docs (#8202) --- man/coredns-trace.7 | 5 ++--- plugin/trace/README.md | 4 ++-- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/man/coredns-trace.7 b/man/coredns-trace.7 index 83ffb8670..5778df4ec 100644 --- a/man/coredns-trace.7 +++ b/man/coredns-trace.7 @@ -28,7 +28,7 @@ trace [ENDPOINT\-TYPE] [ENDPOINT] Defaults to \fB\fCzipkin\fR. .IP \(bu 4 \fBENDPOINT\fP is the tracing destination, and defaults to \fB\fClocalhost:9411\fR. For Zipkin, if -\fBENDPOINT\fP does not begin with \fB\fChttp\fR, then it will be transformed to \fB\fChttp://ENDPOINT/api/v1/spans\fR. +\fBENDPOINT\fP does not begin with \fB\fChttp\fR, then it will be transformed to \fB\fChttp://ENDPOINT/api/v2/spans\fR. .PP @@ -128,7 +128,7 @@ the standard Zipkin URL you can do something like: .RS .nf -trace http://tracinghost:9411/zipkin/api/v1/spans +trace http://tracinghost:9411/zipkin/api/v2/spans .fi .RE @@ -173,4 +173,3 @@ plugin is also enabled: .SH "SEE ALSO" .PP See the \fIdebug\fP plugin for more information about debug logging. - diff --git a/plugin/trace/README.md b/plugin/trace/README.md index eac8a7ba7..960c51718 100644 --- a/plugin/trace/README.md +++ b/plugin/trace/README.md @@ -20,7 +20,7 @@ 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/v1/spans`. + **ENDPOINT** does not begin with `http`, then it will be transformed to `http://ENDPOINT/api/v2/spans`. With this form, all queries will be traced. @@ -82,7 +82,7 @@ If for some reason you are using an API reverse proxy or something and need to r the standard Zipkin URL you can do something like: ~~~ -trace http://tracinghost:9411/zipkin/api/v1/spans +trace http://tracinghost:9411/zipkin/api/v2/spans ~~~ Using DataDog: