Skip to content

Commit

Permalink
provide client config via hash
Browse files Browse the repository at this point in the history
  • Loading branch information
sazap10 committed Oct 17, 2024
1 parent 6a54336 commit 8845aca
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions lib/maze/client/bugsnag/data_access_api.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@ def initialize
@api_key = Maze.config.bugsnag_data_access_api_key
@endpoint = Maze.config.bugsnag_data_access_api_endpoint
@project_id = Maze.config.bugsnag_data_access_project_id
opts = {
api_key: @api_key,
endpoint: @endpoint,
project_id: @project_id
}
if @endpoint.start_with?('http')
connection_options = { ssl: { verify: false } }
opts.connection_options = { ssl: { verify: false } }
end
@client = Bugsnag::Api::Client.new(
api_key: @api_key,
endpoint: @endpoint,
auto_paginate: true,
connection_options: connection_options if connection_options
)
@client = Bugsnag::Api::Client.new(opts)
end

def get_event(event_id)
Expand Down

0 comments on commit 8845aca

Please sign in to comment.