このページは、まだ日本語ではご利用いただけません。翻訳中です。
古いプラグインバージョンのドキュメントを閲覧しています。
構成
このプラグインはDBレスモードに対応しています。
互換性のあるプロトコル
OpenTelemetryプラグインは以下のプロトコルに対応しています:
 grpc, grpcs, http, https
パラメータ
このプラグインの設定で使用できるすべてのパラメータのリストは次のとおりです。
- 
    
name or plugin
string requiredプラグイン名。この場合は
opentelemetry。- Kong Admin API、Kong Konnect API、宣言型構成、または decK ファイルを使用する場合、フィールドは
nameです。 - Kubernetes で KongPlugin オブジェクトを使用する場合、フィールドは
pluginです。 
 - Kong Admin API、Kong Konnect API、宣言型構成、または decK ファイルを使用する場合、フィールドは
 - 
      
instance_name
stringプラグインのインスタンスを識別するための任意のカスタム名 (例:
opentelemetry_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- 
  
endpoint
string required referenceableA string representing a URL, such as https://example.com/path/to/resource?q=search.
 
- 
  
headers
mapThe custom headers to be added in the HTTP request sent to the OTLP server. This setting is useful for adding the authentication headers (token) for the APM backend.
 
- 
  
resource_attributes
map 
- 
  
queue
record required default:{"max_batch_size"=>200}- 
  
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.
 
 - 
  
 
- 
  
batch_span_count
integer default:200The number of spans to be sent in a single batch.
Deprecation notice: This field is planned to be removed in version 4.0.
 
- 
  
batch_flush_delay
integer default:3The delay, in seconds, between two consecutive batches.
Deprecation notice: This field is planned to be removed in version 4.0.
 
- 
  
connect_timeout
integer default:1000between: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 
- 
  
header_type
string default:preservedefault:preserveMust be one of:preserve,ignore,b3,b3-single,w3c,jaeger,ot,aws,gcp,datadogDeprecation notice: This field is planned to be removed in version 4.0.
 
- 
  
sampling_rate
number between:01Tracing sampling rate for configuring the probability-based sampler. When set, this value supersedes the global
tracing_sampling_ratesetting from kong.conf. 
- 
  
propagation
record required default:{"default_format"=>"w3c"}- 
  
extract
array of typestringMust be one of:b3,gcp,jaeger,aws,ot,w3c,datadogHeader formats used to extract tracing context from incoming requests. If multiple values are specified, the first one found will be used for extraction. If left empty, Kong will not extract any tracing context information from incoming requests and generate a trace with no parent and a new trace ID.
 
- 
  
clear
array of typestringHeader names to clear after context extraction. This allows to extract the context from a certain header and then remove it from the request, useful when extraction and injection are performed on different header formats and the original header should not be sent to the upstream. If left empty, no headers are cleared.
 
- 
  
inject
array of typestringMust be one of:preserve,b3,gcp,b3-single,jaeger,aws,ot,w3c,datadogHeader formats used to inject tracing context. The value
preservewill use the same header format as the incoming request. If multiple values are specified, all of them will be used during injection. If left empty, Kong will not inject any tracing context information in outgoing requests. 
- 
  
default_format
string required Must be one of:b3,gcp,b3-single,jaeger,aws,ot,w3c,datadogThe default header format to use when extractors did not match any format in the incoming headers and
injectis configured with the value:preserve. This can happen when no tracing header was found in the request, or the incoming tracing header formats were not included inextract. 
 - 
  
 
 -