Skip to content

Error reporting with Public DSN in standalone binaries #4353

@thomasv314

Description

@thomasv314

I'd like to track error exceptions that occur in a rubygem binary.

Sentry would work perfect for this use case except for the fact that public-key DSN's only work for the JavaScript clients.

Is there documentation on how I can craft a request that can be used without a private DNS key?

Here's my configuration attempt:

Raven::Configuration.class_eval do
  def verify!
    %w(server public_key project_id).each do |key|
      raise(Error, "No #{key} specified") unless public_send key
    end
  end
end

Raven.configure do |cfg|
  cfg.dsn = 'https://mypublicdsn@sentry.io/project'
end

Raven.capture { MyCLI.start(ARGV) }

This results in a 403 response, can you advise me on proper documentation/recommendations on how to bend Sentry to do what I want? :D

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions