このページは、まだ日本語ではご利用いただけません。翻訳中です。
古いプラグインバージョンのドキュメントを閲覧しています。
構成
このプラグインはDBレスモードに対応しています。
互換性のあるプロトコル
Zipkinプラグインは以下のプロトコルに対応しています:
grpc, grpcs, http, https, tcp, tls, tls_passthrough, udp, ws, wss
パラメータ
このプラグインの設定で使用できるすべてのパラメータのリストは次のとおりです。
-
name or plugin
string requiredプラグイン名。この場合は
zipkin。- Kong Admin API、Kong Konnect API、宣言型構成、または decK ファイルを使用する場合、フィールドは
nameです。 - Kubernetes で KongPlugin オブジェクトを使用する場合、フィールドは
pluginです。
- Kong Admin API、Kong Konnect API、宣言型構成、または decK ファイルを使用する場合、フィールドは
-
instance_name
stringプラグインのインスタンスを識別するための任意のカスタム名 (例:
zipkin_my-service。インスタンス名はKong ManagerとKonnectに表示されるので、 例えば複数のサービスで同じプラグインを複数のコンテキストで実行する場合に便利です。また、Kong Admin API経由で特定のプラグインインスタンスに アクセスするためにも使用できます。
インスタンス名は、次のコンテキスト内で一意である必要があります。
- Kong Gateway Enterpriseのワークスペース内
- Konnectのコントロールプレーン(CP)またはコントロールプレーン(CP)グループ内
- Kong Gateway (OSS)の全世界
-
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.
-
http_endpoint
stringA string representing a URL, such as https://example.com/path/to/resource?q=search.
-
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.
-
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.
-
header_type
string default:preserveMust be one of:preserve,ignore,b3,b3-single,w3c,jaeger,ot,aws,datadog
-
default_header_type
string default:b3Must be one of:b3,b3-single,w3c,jaeger,ot,aws,datadog
-
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.
-
static_tags
array of typerecordThe tags specified on this property will be added to the generated request traces.
-
name
string required
-
value
string required
-
-
http_span_name
string required default:methodMust be one of:method,method_pathSpecify whether to include the HTTP path in the span name.
-
connect_timeout
integer default:2000between:02147483646An integer representing a timeout in milliseconds. Must be between 0 and 2^31-2.
-
send_timeout
integer default:5000between:02147483646An integer representing a timeout in milliseconds. Must be between 0 and 2^31-2.
-
read_timeout
integer default:5000between:02147483646An integer representing a timeout in milliseconds. Must be between 0 and 2^31-2.
-
http_response_header_for_traceid
string
-
phase_duration_flavor
string required default:annotationsMust be one of:annotations,tagsSpecify whether to include the duration of each phase as an annotation or a tag.
-
queue
record required-
max_batch_size
integer default:1between:11000000Maximum number of entries that can be processed at a time.
-
max_coalescing_delay
number default:1between:03600Maximum number of (fractional) seconds to elapse after the first entry was queued before the queue starts calling the handler.
-
max_entries
integer default:10000between:11000000Maximum number of entries that can be waiting on the queue.
-
max_bytes
integerMaximum number of bytes that can be waiting on a queue, requires string content.
-
max_retry_time
number default:60Time in seconds before the queue gives up calling a failed handler for a batch.
-
initial_retry_delay
number default:0.01between:0.0011000000Time in seconds before the initial retry is made for a failing batch.
-
max_retry_delay
number default:60between:0.0011000000Maximum time in seconds between retries, caps exponential backoff.
-
-