That slow API call in your Go app — is it the database? A downstream service? Network latency? Distributed tracing tells you definitively.
Prerequisites
Before you begin, make sure you have a Bugsly account and a Go project ready to instrument. You'll need your project DSN from the Bugsly dashboard — find it under Settings > Projects > Client Keys.
Step-by-Step Integration
- Add the Bugsly package to your Go project:
go get github.com/getsentry/sentry-go- Configure the SDK at your application's entry point:
import "github.com/getsentry/sentry-go"
func main() {
err := sentry.Init(sentry.ClientOptions{
Dsn: "YOUR_BUGSLY_DSN",
TracesSampleRate: 1.0,
})
if err != nil {
log.Fatalf("bugsly init failed: %s", err)
}
defer sentry.Flush(2 * time.Second)
}- Deploy your changes and verify events appear in the Bugsly dashboard.
Fine-Tuning Your Setup
After the basic integration works, consider these adjustments for Go:
- Sampling rate: Adjust
tracesSampleRatebased on your traffic volume. High-traffic apps should sample at 0.1–0.3 to control costs. - Environment tags: Tag events with
production,staging, ordevelopmentto filter noise. - Release tracking: Pass your version string so Bugsly can track regressions across deployments.
- Custom context: Attach user IDs, request metadata, or business-specific data to events for richer debugging.
Bugsly's distributed tracing for Go runs with minimal overhead. The SDK is designed to be lightweight, batching events and sending them asynchronously so your application performance stays unaffected.
Next Steps
With distributed tracing active, use Bugsly's trace explorer to find slow spans and identify bottlenecks across services. Set up performance alerts for transactions that exceed your latency budgets. Tag traces with custom attributes to filter by specific users, endpoints, or business operations.
Try Bugsly Free
Track up to 100 issues per month on the free plan; events are not billed.
Get Started FreeRelated Articles
Unix Timestamps and Epoch Time: The Developer's Complete Guide
Everything developers need to know about Unix timestamps — conversions, timezone pitfalls, the 2038 problem, and a free converter tool.
Read moreError Tracking for Ruby on Rails: A Setup Guide
Learn how to set up error tracking in Ruby on Rails with Bugsly. Step-by-step guide with code examples and best practices.
Read moreVue.js Error Tracking: Setup Guide with Bugsly
Set up Vue.js error tracking in minutes: install @sentry/vue, point it at a Bugsly DSN, verify a test error, then group, filter and track releases.
Read moreSetting Up Alerting in Rust
Step-by-step tutorial for configuring Bugsly alerting in Rust. Includes code snippets and optimization tips.
Read moreFrom the same team
SEOBolt
Technical SEO and AI search audits with ready-to-apply fix plans.
Try SEOBolt →GrowFast
Domain in, qualified B2B leads out, with cold outreach and deliverability handled.
Try GrowFast →AutoShort
Turn a topic into a faceless short: AI script, voiceover and captions.
Try AutoShort →RemixViral
Paste a long video and get back the moments worth posting, cut vertical and captioned.
Try RemixViral →