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

Misleading docs for a custom client in react #150

Open
pvrobays opened this issue Dec 3, 2024 · 1 comment
Open

Misleading docs for a custom client in react #150

pvrobays opened this issue Dec 3, 2024 · 1 comment
Assignees

Comments

@pvrobays
Copy link

pvrobays commented Dec 3, 2024

While upgrading to the exceptionless/react package, we implemented it as we found in the docs:

import { ExceptionlessClient } from 'exceptionless/dist/exceptionless';
const config = {
  apiKey: "YOUR API KEY", 
  serverUrl: "YOUR SELF HOSTED URL",
  ...
};
const client = new ExceptionlessClient(config);

With this code however, the exceptionless client wouldn't send out new events.
Since the new API you need to call the startup function yourself. So the docs are actually missing the following part:

client.startup();

It may be useful for others to add this extra line to the example in the react docs.

@niemyjski niemyjski self-assigned this Dec 3, 2024
@niemyjski
Copy link
Member

I'll get this updated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

2 participants