Merge pull request #1352 from liubin/fix/migrate-opentracing-to-opentelemetry

runtime: migrate from opentracing to opentelemetry
This commit is contained in:
Fupan Li
2021-02-09 10:18:10 +08:00
committed by GitHub
480 changed files with 50481 additions and 25819 deletions

View File

@@ -42,6 +42,9 @@ type RuntimeConfigOptions struct {
AgentDebug bool
AgentTrace bool
EnablePprof bool
JaegerEndpoint string
JaegerUser string
JaegerPassword string
}
func MakeRuntimeConfigFileData(config RuntimeConfigOptions) string {
@@ -86,5 +89,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 + `"`
}