Merge pull request #7398 from ChainSafe/libp2p-pubsub-tracer
Lotus extended pubsub tracer
This commit is contained in:
@@ -788,6 +788,35 @@ Type: Array of multiaddress peerinfo strings, must include peerid (/p2p/12D3K...
|
||||
|
||||
Comment: ``,
|
||||
},
|
||||
{
|
||||
Name: "JsonTracer",
|
||||
Type: "string",
|
||||
|
||||
Comment: `Path to file that will be used to output tracer content in JSON format.
|
||||
If present tracer will save data to defined file.
|
||||
Format: file path`,
|
||||
},
|
||||
{
|
||||
Name: "ElasticSearchTracer",
|
||||
Type: "string",
|
||||
|
||||
Comment: `Connection string for elasticsearch instance.
|
||||
If present tracer will save data to elasticsearch.
|
||||
Format: https://<username>:<password>@<elasticsearch_url>:<port>/`,
|
||||
},
|
||||
{
|
||||
Name: "ElasticSearchIndex",
|
||||
Type: "string",
|
||||
|
||||
Comment: `Name of elasticsearch index that will be used to save tracer data.
|
||||
This property is used only if ElasticSearchTracer propery is set.`,
|
||||
},
|
||||
{
|
||||
Name: "TracerSourceAuth",
|
||||
Type: "string",
|
||||
|
||||
Comment: `Auth token that will be passed with logs to elasticsearch - used for weighted peers score.`,
|
||||
},
|
||||
},
|
||||
"RetrievalPricing": []DocField{
|
||||
{
|
||||
|
||||
@@ -563,6 +563,19 @@ type Pubsub struct {
|
||||
DirectPeers []string
|
||||
IPColocationWhitelist []string
|
||||
RemoteTracer string
|
||||
// Path to file that will be used to output tracer content in JSON format.
|
||||
// If present tracer will save data to defined file.
|
||||
// Format: file path
|
||||
JsonTracer string
|
||||
// Connection string for elasticsearch instance.
|
||||
// If present tracer will save data to elasticsearch.
|
||||
// Format: https://<username>:<password>@<elasticsearch_url>:<port>/
|
||||
ElasticSearchTracer string
|
||||
// Name of elasticsearch index that will be used to save tracer data.
|
||||
// This property is used only if ElasticSearchTracer propery is set.
|
||||
ElasticSearchIndex string
|
||||
// Auth token that will be passed with logs to elasticsearch - used for weighted peers score.
|
||||
TracerSourceAuth string
|
||||
}
|
||||
|
||||
type Chainstore struct {
|
||||
|
||||
Reference in New Issue
Block a user