Skip to content

Commit

Permalink
fix typo in tracing init in main
Browse files Browse the repository at this point in the history
  • Loading branch information
SamMHD committed Feb 24, 2024
1 parent cb727b8 commit b21450d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ func main() {
case "http":
err = tracing.SetTracingProvider(tracing.HTTPTracingProvider, st.Tracing.SamplingRatio, st.Tracing.Timeout)
case "grpc":
err = tracing.SetTracingProvider(tracing.HTTPTracingProvider, st.Tracing.SamplingRatio, st.Tracing.Timeout)
err = tracing.SetTracingProvider(tracing.GRPCTracingProvider, st.Tracing.SamplingRatio, st.Tracing.Timeout)
default:
err = fmt.Errorf("invalid-tracing-provider")
}
Expand Down

0 comments on commit b21450d

Please sign in to comment.