Skip to content

Commit

Permalink
system tests fix
Browse files Browse the repository at this point in the history
  • Loading branch information
rachelyangdog committed Dec 18, 2024
1 parent d76ce95 commit 301ffb8
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions contrib/net/http/option.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ func defaults(cfg *config) {
cfg.analyticsRate = globalconfig.AnalyticsRate()
}
cfg.serviceName = namingschema.ServiceName(defaultServiceName)
cfg.isStatusError = isServerError
cfg.headerTags = globalconfig.HeaderTagMap()
cfg.spanOpts = []ddtrace.StartSpanOption{tracer.Measured()}
if !math.IsNaN(cfg.analyticsRate) {
Expand All @@ -62,10 +61,6 @@ func defaults(cfg *config) {
cfg.resourceNamer = func(_ *http.Request) string { return "" }
}

func isServerError(status int) bool {
return status >= 500 && status < 600
}

// WithIgnoreRequest holds the function to use for determining if the
// incoming HTTP request should not be traced.
func WithIgnoreRequest(f func(*http.Request) bool) MuxOption {
Expand Down

0 comments on commit 301ffb8

Please sign in to comment.