このページは、まだ日本語ではご利用いただけません。翻訳中です。
古いプラグインバージョンのドキュメントを閲覧しています。
構成
このプラグインはDBレスモードに対応しています。
パラメータ
このプラグインの設定で使用できるすべてのパラメータのリストは次のとおりです。
-
name or plugin
string requiredプラグイン名。この場合は
zipkin。- Kong Admin API、Kong Konnect API、宣言型構成、または decK ファイルを使用する場合、フィールドは
nameです。 - Kubernetes で KongPlugin オブジェクトを使用する場合、フィールドは
pluginです。
- Kong Admin API、Kong Konnect API、宣言型構成、または decK ファイルを使用する場合、フィールドは
-
service.name or service.id
stringプラグインが対象とするサービス名または ID。最上位の
/pluginsエンドポイント. からプラグインをサービスに追加する場合は、これらのパラメータのいずれかを設定してください/services/{serviceName|Id}/pluginsを使用する場合は必要ありません。 -
route.name or route.id
stringプラグインがターゲットとするルート名または ID。最上位の
/pluginsエンドポイント. を通るルートにプラグインを追加する場合は、これらのパラメータのいずれかを設定してください/routes/{routeName|Id}/pluginsを使用する場合は必要ありません。 -
consumer.name or consumer.id
stringプラグインがターゲットとするコンシューマーの名前または ID。 最上位の
/pluginsエンドポイント. からコンシューマーにプラグインを追加する場合は、これらのパラメーターのいずれかを設定してください/consumers/{consumerName|Id}/pluginsを使用する場合は必要ありません。 -
enabled
boolean default:trueこのプラグインが適用されるかどうか。
-
config
record required-
local_service_name
string required default:kongThe name of the service as displayed in Zipkin. Customize this name to tell your Kong Gateway services apart in Zipkin request traces.
-
http_endpoint
stringThe full HTTP(S) endpoint to which Zipkin spans should be sent by Kong. If not specified, the Zipkin plugin will only act as a tracing header generator/transmitter.
-
sample_ratio
number default:0.001between:01How often to sample requests that do not contain trace IDs. Set to
0to turn sampling off, or to1to sample all requests. The value must be between zero (0) and one (1), inclusive.
-
default_service_name
stringSet a default service name to override
unknown-service-namein the Zipkin spans.
-
include_credential
boolean required default:trueSpecify whether the credential of the currently authenticated consumer should be included in metadata sent to the Zipkin server.
-
traceid_byte_count
integer required default:16Must be one of:8,16The length in bytes of each request’s Trace ID. The value can be either
8or16.
-
header_type
string required default:preserveMust be one of:preserve,ignore,b3,b3-single,w3c,jaeger,otAll HTTP requests going through the plugin are tagged with a tracing HTTP request. This property codifies what kind of tracing header the plugin expects on incoming requests.
Possible values:
b3,b3-single,w3c,preserve,jaeger,ot, orignore.-
b3: Expects Zipkin’s B3 multiple headers on incoming requests, and will add them to the transmitted requests if the headers are missing from those requests. -
b3-single: Expects or adds Zipkin’s B3 single-header tracing headers. -
w3c: Expects or adds W3C’s traceparent tracing header. -
preserve: Does not expect any format, and will transmit whatever header is recognized or present, with a default ofb3if none is found. In case of a mismatch between the expected and incoming tracing headers (for example, whenheader_typeis set tob3but a w3c-style tracing header is found in the incoming request), then the plugin will add both kinds of tracing headers to the request and generate a mismatch warning in the logs. -
jaeger: Expects or adds Jaeger-style tracing headers (uber-trace-id). -
ot: Expects or adds OpenTelemetry tracing headers of the formot-tracer-*. -
ignore: Does not read any tracing headers from the incoming request. Starts a new request using thedefault_header_typevalue, or falls back tob3if there is nodefault_header_typevalue set.
-
-
default_header_type
string required default:b3Must be one of:b3,b3-single,w3c,jaeger,otAllows specifying the type of header to be added to requests with no pre-existing tracing headers and when
config.header_typeis set to"preserve". Whenheader_typeis set to any other value,default_header_typeis ignored.Possible values are
b3,b3-single,w3c,jaeger, orot. See the entry forheader_typefor value definitions.
-
tags_header
string required default:Zipkin-TagsThe Zipkin plugin will add extra headers to the tags associated with any HTTP requests that come with a header named as configured by this property. The format is
name_of_tag=value_of_tag, separated by semicolons (;).For example: with the default value, a request with the header
Zipkin-Tags: fg=blue; bg=redwill generate a trace with the tagfgwith valueblue, and another tag calledbgwith valuered.
-
static_tags
array of typerecordThe tags specified on this property will be added to the generated request traces. For example:
[ { "name": "color", "value": "red" } ].-
name
string required
-
value
string required
-
-