APIs

Learn more about APIs of the SDK.

This page shows all available to-level APIs of the SDK. You can use them like this:

Copied
import * as Sentry from "@sentry/browser";

Sentry.setTag("tag", "value");

    addBreadcrumb

    function addBreadcrumb(breadcrumb: Breadcrumb, hint?: Hint): void
    Parameters

    You can manually add breadcrumbs whenever something interesting happens. For example, you might manually record a breadcrumb if the user authenticates or another state change occurs.

    Was this helpful?
    Help improve this content
    Our documentation is open source and available on GitHub. Your contributions are welcome, whether fixing a typo (drat!) or suggesting an update ("yeah, this would be better").