forked from e621ng/e621ng
[Prod] Ignore pg errors during rack requests
These are handled at the application level
This commit is contained in:
parent
3229106431
commit
0a35264ad8
@ -11,4 +11,11 @@ Datadog.configure do |c|
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
# Ignore pg errors during rack requests
|
||||
c.tracing.instrument :pg, on_error: ->(span, error) do
|
||||
if Datadog::Tracing.active_trace&.name != Datadog::Tracing::Contrib::Rack::Ext::SPAN_REQUEST
|
||||
span&.set_error(error)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user