Keep the SDKs. Change the DSN. Check one real event.

urgentry works with the Sentry SDKs you already use. Start with the package for your language, point the DSN at your urgentry instance, and make sure the first event lands before you touch anything broader.

Maintained by Wraxle LLC
Last updated
8 language snippets built around the same DSN swap and first-event check
The DSN packages, capture calls, traces, and release fields stay in the same shape
Use this after get the server running first, then copy the snippet for the app you already instrumented
1 event the goal is one honest event through the same SDK your app already uses

Same package. New host.

What changes

  • The DSN host
  • The server you send events to

What stays the same

  • The SDK packages your app already uses
  • Error capture calls, breadcrumbs, traces, and release fields
  • The workflow your team already knows inside the app

Use the package you already know.

Each card shows the install step and the smallest init snippet you need to prove the event path. Replace the DSN, run it, and check the issue detail in urgentry.

Python

Package: sentry-sdk

install
pip install sentry-sdk
init and first event
import sentry_sdk

sentry_sdk.init(
    dsn="http://your-key@localhost:8080/1",
    traces_sample_rate=1.0,
)

# Capture an error
try:
    1 / 0
except ZeroDivisionError:
    sentry_sdk.capture_exception()

JavaScript

Package: @sentry/node

install
npm install @sentry/node
init and first event
const Sentry = require("@sentry/node");

Sentry.init({
  dsn: "http://your-key@localhost:8080/1",
  tracesSampleRate: 1.0,
});

Sentry.captureException(new Error("Hello from urgentry!"));

Go

Package: sentry-go

install
go get github.com/getsentry/sentry-go
init and first event
import "github.com/getsentry/sentry-go"

sentry.Init(sentry.ClientOptions{
    Dsn: "http://your-key@localhost:8080/1",
    TracesSampleRate: 1.0,
})
defer sentry.Flush(2 * time.Second)

sentry.CaptureMessage("Hello from urgentry!")

Ruby

Package: sentry-ruby

install
gem install sentry-ruby
init and first event
require "sentry-ruby"

Sentry.init do |config|
  config.dsn = "http://your-key@localhost:8080/1"
  config.traces_sample_rate = 1.0
end

Sentry.capture_message("Hello from urgentry!")

Java

Package: io.sentry:sentry

install
implementation 'io.sentry:sentry:7.0.0'
init and first event
import io.sentry.Sentry;

Sentry.init(options -> {
    options.setDsn("http://your-key@localhost:8080/1");
    options.setTracesSampleRate(1.0);
});

Sentry.captureMessage("Hello from urgentry!");

PHP

Package: sentry/sentry

install
composer require sentry/sentry
init and first event
\Sentry\init([
    'dsn' => 'http://your-key@localhost:8080/1',
    'traces_sample_rate' => 1.0,
]);

\Sentry\captureMessage('Hello from urgentry!');

.NET

Package: Sentry

install
dotnet add package Sentry
init and first event
using Sentry;

SentrySdk.Init(o => {
    o.Dsn = "http://your-key@localhost:8080/1";
    o.TracesSampleRate = 1.0;
});

SentrySdk.CaptureMessage("Hello from urgentry!");

Rust

Package: sentry

install
cargo add sentry
init and first event
let _guard = sentry::init((
    "http://your-key@localhost:8080/1",
    sentry::ClientOptions {
        traces_sample_rate: 1.0,
        ..Default::default()
    },
));

sentry::capture_message("Hello from urgentry!", sentry::Level::Info);

Next docs

Once the snippet works, move back to the migration guide, benchmark story, or self-hosted operator path that applies to your rollout.