mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-08-02 20:15:22 +02:00
Fix Sentry context for security details exception
This commit is contained in:
parent
74c7b0941d
commit
f82f77466a
2 changed files with 1 additions and 22 deletions
|
@ -75,7 +75,7 @@ module Security::Provided
|
|||
Rails.logger.warn("Failed to fetch security info for #{ticker} from #{provider.class.name}: #{response.error.message}")
|
||||
Sentry.capture_exception(SecurityInfoMissingError.new("Failed to get security info"), level: :warning) do |scope|
|
||||
scope.set_tags(security_id: self.id)
|
||||
scope.set_context(provider_error: response.error.message)
|
||||
scope.set_context("security", { id: self.id, provider_error: response.error.message })
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue