Send errors
Fidiba reads errors in the Sentry format. If your app already uses a Sentry SDK, you only change the address. Otherwise, install the SDK for your language, then point it at Fidiba.Already use a Sentry SDK? Only change the address.
1. Install
pip install sentry-sdk
2. Point it at Fidiba
Your address is in Project settings, under Write key. It can send data in but can't read anything.
import os, sentry_sdk
sentry_sdk.init(
dsn="https://[email protected]/31",
release=os.environ.get("GIT_SHA"), # links errors to releases
send_default_pii=False, # Fidiba scrubs anyway
traces_sample_rate=1.0, # optional: traces for requests and jobs
)With traces on, Fidiba keeps the ones that end in an error and the slowest 1 in 100, and shows them inside each issue. The rest are counted, then dropped, so you can leave the rate at 1.0.
3. Check it worked
Raise one error on purpose. Within a few seconds it appears on your project's outline, and the setup step turns green.Raise one error on purpose. It shows on your outline within seconds.
python -c "import sentry_sdk; sentry_sdk.init('https://[email protected]/31'); 1/0"1. Install
npm install @sentry/node
2. Point it at Fidiba
Your address is in Project settings, under Write key. It can send data in but can't read anything.
import * as Sentry from "@sentry/node";
Sentry.init({
dsn: "https://[email protected]/31",
release: process.env.GIT_SHA, // links errors to releases
sendDefaultPii: false, // Fidiba scrubs anyway
tracesSampleRate: 1.0, // optional: traces for requests and jobs
});With traces on, Fidiba keeps the ones that end in an error and the slowest 1 in 100, and shows them inside each issue. The rest are counted, then dropped, so you can leave the rate at 1.0.
3. Check it worked
Raise one error on purpose. Within a few seconds it appears on your project's outline, and the setup step turns green.Raise one error on purpose. It shows on your outline within seconds.
node -e "const S = require('@sentry/node'); S.init({ dsn: 'https://[email protected]/31' }); S.captureException(new Error('test')); S.flush(2000)"1. Install
go get github.com/getsentry/sentry-go
2. Point it at Fidiba
Your address is in Project settings, under Write key. It can send data in but can't read anything.
err := sentry.Init(sentry.ClientOptions{
Dsn: "https://[email protected]/31",
Release: os.Getenv("GIT_SHA"), // links errors to releases
EnableTracing: true, // optional: traces for requests and jobs
TracesSampleRate: 1.0,
})
defer sentry.Flush(2 * time.Second)With traces on, Fidiba keeps the ones that end in an error and the slowest 1 in 100, and shows them inside each issue. The rest are counted, then dropped, so you can leave the rate at 1.0.
3. Check it worked
Raise one error on purpose. Within a few seconds it appears on your project's outline, and the setup step turns green.Raise one error on purpose. It shows on your outline within seconds.
sentry.CaptureException(errors.New("test from Go"))1. Install
bundle add sentry-ruby
2. Point it at Fidiba
Your address is in Project settings, under Write key. It can send data in but can't read anything.
Sentry.init do |config| config.dsn = "https://[email protected]/31" config.release = ENV["GIT_SHA"] # links errors to releases config.send_default_pii = false # Fidiba scrubs anyway config.traces_sample_rate = 1.0 # optional: traces for requests and jobs end
With traces on, Fidiba keeps the ones that end in an error and the slowest 1 in 100, and shows them inside each issue. The rest are counted, then dropped, so you can leave the rate at 1.0.
3. Check it worked
Raise one error on purpose. Within a few seconds it appears on your project's outline, and the setup step turns green.Raise one error on purpose. It shows on your outline within seconds.
ruby -e "require 'sentry-ruby'; Sentry.init { |c| c.dsn = 'https://[email protected]/31' }; Sentry.capture_message('test')"1. Install
composer require sentry/sentry
2. Point it at Fidiba
Your address is in Project settings, under Write key. It can send data in but can't read anything.
\Sentry\init([
'dsn' => 'https://[email protected]/31',
'release' => getenv('GIT_SHA'), // links errors to releases
'send_default_pii' => false, // Fidiba scrubs anyway
'traces_sample_rate' => 1.0, // optional: traces for requests and jobs
]);With traces on, Fidiba keeps the ones that end in an error and the slowest 1 in 100, and shows them inside each issue. The rest are counted, then dropped, so you can leave the rate at 1.0.
3. Check it worked
Raise one error on purpose. Within a few seconds it appears on your project's outline, and the setup step turns green.Raise one error on purpose. It shows on your outline within seconds.
php -r "require 'vendor/autoload.php'; \Sentry\init(['dsn' => 'https://[email protected]/31']); \Sentry\captureMessage('test');"