Skip to content

Commit

Permalink
Tracing: add Gen128Bit support for jaeger
Browse files Browse the repository at this point in the history
Signed-off-by: Jimmie Han <[email protected]>
  • Loading branch information
hanjm committed Dec 11, 2021
1 parent 4c1deec commit 643208d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/tracing.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ config:
password: ""
agent_host: ""
agent_port: 0
traceid_128bit: false
```

### Stackdriver
Expand Down
5 changes: 5 additions & 0 deletions pkg/tracing/jaeger/config_yaml.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ type Config struct {
Password string `yaml:"password"`
AgentHost string `yaml:"agent_host"`
AgentPort int `yaml:"agent_port"`
Gen128Bit bool `yaml:"traceid_128bit"`
}

// ParseConfigFromYaml uses config YAML to set the tracer's Configuration.
Expand All @@ -57,6 +58,10 @@ func ParseConfigFromYaml(cfg []byte) (*config.Configuration, error) {
c.RPCMetrics = conf.RPCMetrics
}

if conf.Gen128Bit {
c.Gen128Bit = conf.Gen128Bit
}

if conf.Disabled {
c.Disabled = conf.Disabled
}
Expand Down

0 comments on commit 643208d

Please sign in to comment.