Skip to content

Commit

Permalink
调整rabbit链路追踪的日志
Browse files Browse the repository at this point in the history
  • Loading branch information
steden committed Oct 29, 2023
1 parent 0f63fdd commit 19d43e2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions trackContext.go
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,8 @@ func (receiver *TraceContext) printLog() {
switch receiver.TraceType {
case eumTraceType.WebApi:
flog.Printf("【%s链路追踪】TraceId:%s,耗时:%s,%s\n%s\n", receiver.TraceType.ToString(), flog.Green(parse.ToString(receiver.TraceId)), flog.Red(receiver.UseTs.String()), receiver.Web.Path, strings.Join(lst.ToArray(), "\n"))
case eumTraceType.MqConsumer:
flog.Printf("【%s链路追踪】TraceId:%s,耗时:%s,%s\n%s\n", receiver.TraceType.ToString(), flog.Green(parse.ToString(receiver.TraceId)), flog.Red(receiver.UseTs.String()), receiver.Consumer.QueueName, strings.Join(lst.ToArray(), "\n"))
default:
flog.Printf("【%s链路追踪】TraceId:%s,耗时:%s\n%s\n", receiver.TraceType.ToString(), flog.Green(parse.ToString(receiver.TraceId)), flog.Red(receiver.UseTs.String()), strings.Join(lst.ToArray(), "\n"))
}
Expand Down

0 comments on commit 19d43e2

Please sign in to comment.