Skip to content

Commit

Permalink
fix(trace): dont trace GET
Browse files Browse the repository at this point in the history
  • Loading branch information
Darkness4 committed Aug 15, 2024
1 parent b336193 commit 6be4a19
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cmd/watch/watch_command.go
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,9 @@ func handleConfig(ctx context.Context, version string, config *Config) {
Transport: otelhttp.NewTransport(
http.DefaultTransport,
otelhttp.WithTracerProvider(noop.NewTracerProvider()),
otelhttp.WithFilter(func(r *http.Request) bool {
return r.Method != http.MethodGet
}),
),
}
if params.CookiesRefreshDuration != 0 && params.CookiesFile != "" {
Expand Down

0 comments on commit 6be4a19

Please sign in to comment.