Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    Nick Hodges
    @NickHodgesRB
    Hello! If you are interested in getting help with our contributing to the Rollbar Go SDK, this is the place to do it!
    jecob lal
    @jecoblal_gitlab
    Hello
    paul-zeng-chime
    @paul-zeng-chime
    Hi

    I created a new service that uses the Go SDK as shown in the example:
    ```package main

    import (
    "errors"

    "github.com/rollbar/rollbar-go"
    )

    func main() {
    rollbar.SetToken("8c54053493b04649a05d733d165b8f3e")
    rollbar.SetEnvironment("production") // defaults to "development"
    rollbar.SetCodeVersion("v2") // optional Git hash/branch/tag (required for GitHub integration)
    rollbar.SetServerHost("web.1") // optional override; defaults to hostname
    rollbar.SetServerRoot("github.com/heroku/myproject") // path of project (required for GitHub integration and non-project stacktrace collapsing)

    if err := DoSomething(); err != nil {
    rollbar.Critical(err)
    }

    rollbar.Info("Message body goes here")

    rollbar.Wait()
    }

    func DoSomething() error {
    return errors.New("new error")
    }
    ```

    But the Rollbar GUI is stuck on "Waiting for data from your Go app"
    I wonder if I needed to instantiate a Rollbar client
    Is this the right place to ask?
    Nico Kr├╝ger
    @TheDevFactory
    Are you receiving any errors when you run the code example above..?