mirror of
https://gitee.com/milvus-io/milvus.git
synced 2024-12-02 03:48:37 +08:00
enhance: Correct sampleFraction's type to float (#29810)
Signed-off-by: Yudong Cai <yudong.cai@zilliz.com>
This commit is contained in:
parent
600f6eff06
commit
cb9d9ec0f0
@ -21,7 +21,7 @@ namespace milvus::tracer {
|
||||
|
||||
struct TraceConfig {
|
||||
std::string exporter;
|
||||
int sampleFraction;
|
||||
float sampleFraction;
|
||||
std::string jaegerURL;
|
||||
std::string otlpEndpoint;
|
||||
bool oltpSecure;
|
||||
|
@ -92,7 +92,7 @@ typedef struct CStorageConfig {
|
||||
|
||||
typedef struct CTraceConfig {
|
||||
const char* exporter;
|
||||
int sampleFraction;
|
||||
float sampleFraction;
|
||||
const char* jaegerURL;
|
||||
const char* otlpEndpoint;
|
||||
bool oltpSecure;
|
||||
|
@ -47,7 +47,7 @@ func InitLocalChunkManager(path string) {
|
||||
func InitTraceConfig(params *paramtable.ComponentParam) {
|
||||
config := C.CTraceConfig{
|
||||
exporter: C.CString(params.TraceCfg.Exporter.GetValue()),
|
||||
sampleFraction: C.int(params.TraceCfg.SampleFraction.GetAsInt()),
|
||||
sampleFraction: C.float(params.TraceCfg.SampleFraction.GetAsFloat()),
|
||||
jaegerURL: C.CString(params.TraceCfg.JaegerURL.GetValue()),
|
||||
otlpEndpoint: C.CString(params.TraceCfg.OtlpEndpoint.GetValue()),
|
||||
nodeID: C.int(paramtable.GetNodeID()),
|
||||
|
Loading…
Reference in New Issue
Block a user