Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions pumps/elasticsearch.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,9 +92,9 @@ type ElasticsearchConf struct {
SSLKeyFile string `json:"ssl_key_file" mapstructure:"ssl_key_file"`
// Path to the PEM file with trusted CA certificates that will be used to verify the Elasticsearch server's certificate.
SSLCAFile string `json:"ssl_ca_file" mapstructure:"ssl_ca_file"`
// When set, MCP records are written to this index instead of the default IndexName.
// Supports the same rolling-index date suffix as IndexName when RollingIndex is enabled.
// Defaults to "" (empty), which means all records are written to IndexName as before.
// When set, Model Context Protocol (MCP) records are written to this index instead of the default `IndexName`.
// Supports the same rolling-index date suffix as `IndexName` when `RollingIndex` is enabled.
// Defaults to `""` (empty string), meaning all records go to `IndexName`.
MCPIndexName string `json:"mcp_index_name" mapstructure:"mcp_index_name"`
}

Expand Down
3 changes: 1 addition & 2 deletions pumps/hybrid.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,7 @@ type HybridPumpConf struct {
TrackAllPaths bool `mapstructure:"track_all_paths"`
// Determines if the aggregations should be made per minute (true) or per hour (false) if `aggregated` is set to `true`.
StoreAnalyticsPerMinute bool `json:"store_analytics_per_minute" mapstructure:"store_analytics_per_minute"`
// EnableMCPAggregation controls whether MCP analytics are aggregated and sent
// to MDCB via a separate RPC call. Only applies when `aggregated` is `true`.
// Controls whether MCP (Model Context Protocol) analytics are aggregated and sent to MDCB via a separate RPC call. Only applies when `aggregated` is `true`.
EnableMCPAggregation bool `json:"enable_mcp_aggregation" mapstructure:"enable_mcp_aggregation"`

// Use SSL to connect to Tyk MDCB
Expand Down
2 changes: 2 additions & 0 deletions pumps/mongo.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,8 @@ type BaseMongoConf struct {
// Path to the PEM file which contains both client certificate and private key. This is
// required for Mutual TLS.
MongoSSLPEMKeyfile string `json:"mongo_ssl_pem_keyfile" mapstructure:"mongo_ssl_pem_keyfile"`
// ENV: TYK_PMP_PUMPS_MONGO_META_MONGODBTYPE
// Type: int
// Specifies the mongo DB Type. If it's 0, it means that you are using standard mongo db. If it's 1 it means you are using AWS Document DB. If it's 2, it means you are using CosmosDB.
// Defaults to Standard mongo (0).
MongoDBType MongoType `json:"mongo_db_type" mapstructure:"mongo_db_type"`
Expand Down
3 changes: 1 addition & 2 deletions pumps/stdout.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,7 @@
Format string `json:"format" mapstructure:"format"`
// Root name of the JSON object the analytics record is nested in.
LogFieldName string `json:"log_field_name" mapstructure:"log_field_name"`
// UseLegacyPayloadFormat skips formatting of raw_request and raw_response as valid JSON objects instead of escaped strings.
// This config variable exists for backward compatibility.
// Use the legacy formatting of raw_request and raw_response as escaped strings rather than JSON formatting.

Check warning on line 36 in pumps/stdout.go

View check run for this annotation

probelabs / Visor: quality

documentation Issue

The comment for `UseLegacyPayloadFormat` contains a typo: a double space after the word 'as'.
Raw output
Remove the extra space to improve readability and correctness of the documentation.
UseLegacyPayloadFormat bool `json:"use_legacy_payload_format" mapstructure:"use_legacy_payload_format"`
}

Expand Down
Loading