Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make Log a method of Client #110

Open
jmfederico opened this issue Aug 27, 2024 · 0 comments
Open

Make Log a method of Client #110

jmfederico opened this issue Aug 27, 2024 · 0 comments

Comments

@jmfederico
Copy link

This a feature request.

Quite happy with Rollbar and its Go library, but we do miss the option to have rollbar.Log available to use with any client and not only the default one.

As it is right now we have to wrap rollbar's clients in our own struct that implements a copy of rollbar.Log to emulate the behaviour around requests and error attributes.

This would be ideal:

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

rb_client := rollbar.New(...)
// stuff happens
rb_client.Log(error, request, ...)
@matux matux closed this as completed Aug 29, 2024
@matux matux reopened this Aug 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants