mirror of
https://github.com/gluster/glusterd2.git
synced 2026-02-05 12:45:38 +01:00
This commit implements a gd2 plugin that allows management of tracing operations across the cluster. This change-set implements the server side handling of the request to enable tracing on all gd2 nodes. The pre-condition to execute this transaction is that there shouldn't be any existing trace configuration in etcd. The steps involved in the transaction are, 1. Node receiving the request Validates the passed tracing configuration, 2. Node Stores the tracing configuration in etcd, and, 3. Set the in-memory trace configuration on all nodes Failure in steps 2 and 3 will result in the undo logic restoring the previous configuration both in memory and in etcd. closes #1368 Signed-off-by: Sridhar Seshasayee <sseshasa@redhat.com>
19 lines
544 B
Go
19 lines
544 B
Go
package api
|
|
|
|
const (
|
|
// TracingEnabled represents enabled state
|
|
TracingEnabled = "enabled"
|
|
|
|
// TracingDisabled represents disabled state
|
|
TracingDisabled = "disabled"
|
|
)
|
|
|
|
// JaegerConfigInfo represents tracing configration
|
|
type JaegerConfigInfo struct {
|
|
Status string `json:"tracing-status"`
|
|
JaegerEndpoint string `json:"jaeger-endpoint"`
|
|
JaegerAgentEndpoint string `json:"jaeger-agent-endpoint"`
|
|
JaegerSampler int `json:"jaeger-sampler"`
|
|
JaegerSampleFraction float64 `json:"jaeger-sample-fraction"`
|
|
}
|