Skip to content

Document how to make a barebones HTTP reuquest, without any SDK #6835

Open
@tredondo

Description

@tredondo

Core or SDK?

Platform/SDK

Which part? Which one?

Event creation

Description

I have a request similar to the muzzled #6054. I'm in an environment (Google Apps Script) for which there's no SDK, because it's impossible to import anything. It also has crappy logging so I want to use Sentry.

How can I make a simple API request to log something? I'm coming from Rollbar, where this is very easy and clearly documented. With Sentry, it's very hard to figure out how to do this:

  • https://docs.sentry.io/api/ doesn't tell me anything useful. If I go to Requests, I get basic stuff and nothing about authentication.
  • the forum has nothing about plain HTTP requests
  • apparently the correct endpoint is Store but the X-Sentry-Auth in the Working example section is not documented and I don't know where to find those values. The DSN and the other entries on the Client Keys page look completely different and there's no secret that I see. Does that page automatically pull my keys into the example? (If not, it should use some sort of YOUR-KEY-HERE placeholders)
    • I found this curl example but trying to replicate it, with the key/secret above failed with "missing field sentry_data"
  • the page above doesn't explain what options go into the payload. Had to Google for that and found this

Would be nice not to have to go through the whole Node.js code base to figure out something this basic.

Suggested Solution

Learn from Rollbar - https://docs.rollbar.com/reference/create-item

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions