mirror of
https://github.com/aljazceru/kata-containers.git
synced 2025-12-19 23:34:23 +01:00
runtime: migrate from opentracing to opentelemetry
This commit includes two changes: - migrate from opentracing to opentelemetry - add jaeger configuration items Fixes: #1351 Signed-off-by: bin <bin@hyper.sh>
This commit is contained in:
@@ -41,6 +41,9 @@ type RuntimeConfigOptions struct {
|
||||
AgentDebug bool
|
||||
AgentTrace bool
|
||||
EnablePprof bool
|
||||
JaegerEndpoint string
|
||||
JaegerUser string
|
||||
JaegerPassword string
|
||||
}
|
||||
|
||||
func MakeRuntimeConfigFileData(config RuntimeConfigOptions) string {
|
||||
@@ -85,5 +88,8 @@ func MakeRuntimeConfigFileData(config RuntimeConfigOptions) string {
|
||||
enable_debug = ` + strconv.FormatBool(config.RuntimeDebug) + `
|
||||
enable_tracing = ` + strconv.FormatBool(config.RuntimeTrace) + `
|
||||
disable_new_netns= ` + strconv.FormatBool(config.DisableNewNetNs) + `
|
||||
enable_pprof= ` + strconv.FormatBool(config.EnablePprof)
|
||||
enable_pprof= ` + strconv.FormatBool(config.EnablePprof) + `
|
||||
jaeger_endpoint= "` + config.JaegerEndpoint + `"
|
||||
jaeger_user= "` + config.JaegerUser + `"
|
||||
jaeger_password= "` + config.JaegerPassword + `"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user