MCPcopy Index your code
hub / github.com/getsentry/sentry-javascript

github.com/getsentry/sentry-javascript @10.63.0 sqlite

repository ↗ · DeepWiki ↗ · release 10.63.0 ↗
12,257 symbols 55,215 edges 7,989 files 1,651 documented · 13%
README

Sentry

Bad software is everywhere, and we're tired of it. Sentry is on a mission to help developers write better software faster, so we can get back to enjoying technology. If you want to join us Check out our open positions

Build & Test npm version Discord

Official Sentry SDKs for JavaScript

Sentry for JavaScript

This is the next line of Sentry JavaScript SDKs, comprised in the @sentry/ namespace. It will provide a more convenient interface and improved consistency between various JavaScript environments.

Links

  • Documentation
  • Forum
  • Discord
  • Stack Overflow
  • X Follow

Contents

Supported Platforms

For each major JavaScript platform, there is a specific high-level SDK that provides all the tools you need in a single package. Please refer to the README and instructions of those SDKs for more detailed information:

Version Support Policy

We recognize the importance of continued support for our SDK across different versions. Our commitment is to provide bug fixes and feature updates for older versions based on community demand and usage.

Installation and Usage

To install a SDK, simply add the high-level package, for example:

npm install --save @sentry/browser
yarn add @sentry/browser

Setup and usage of these SDKs always follows the same principle.

import * as Sentry from '@sentry/browser';

Sentry.init({
  dsn: '__DSN__',
  // ...
});

Sentry.captureMessage('Hello, world!');

Other Packages

Besides the high-level SDKs, this repository contains shared packages, helpers and configuration used for SDK development. If you're thinking about contributing to or creating a JavaScript-based SDK, have a look at the resources below:

  • @sentry/replay: Provides the integration for Session Replay.
  • @sentry/core: The base for all JavaScript SDKs with interfaces, type definitions and base classes.

Bug Bounty Program

Our bug bounty program aims to improve the security of our open source projects by encouraging the community to identify and report potential security vulnerabilities. Your reward will depend on the severity of the identified vulnerability.

Our program is currently running on an invitation basis. If you're interested in participating, please send us an email to security@sentry.io and tell us, that you are interested in auditing this repository.

For more details, please have a look at https://sentry.io/security/#vulnerability-disclosure.

Contributors

Thanks to everyone who contributed to the Sentry JavaScript SDK!

Extension points exported contracts — how you extend this code

GPUObjectBase (Interface)
@category GPU [19 implementers]
packages/deno/lib.deno.d.ts
Integration (Interface)
(no doc) [23 implementers]
packages/core/src/types/integration.ts
ServiceExtension (Interface)
(no doc) [10 implementers]
packages/aws-serverless/src/integration/aws/vendored/services/ServiceExtension.ts
NestJsErrorFilter (Interface)
(no doc) [21 implementers]
packages/nestjs/src/integrations/types.ts
EventBuffer (Interface)
(no doc) [6 implementers]
packages/replay-internal/src/types/replay.ts
PgClient (Interface)
(no doc) [5 implementers]
packages/node/src/integrations/tracing/postgres/vendored/pg-types.ts
StatsigClient (Interface)
(no doc) [4 implementers]
packages/browser/src/integrations/featureFlags/statsig/types.ts
MinimalDedicatedWorkerGlobalScope (Interface)
* Minimal interface for DedicatedWorkerGlobalScope. * We can't use the actual type because it breaks everyone who doesn
packages/wasm/src/index.ts

Core symbols most depended-on inside this repo

waitForTransaction
called by 1407
dev-packages/test-utils/src/event-proxy-server.ts
get
called by 1376
packages/deno/lib.deno.d.ts
init
called by 1112
dev-packages/e2e-tests/test-applications/remix-hydrogen/app/lib/session.ts
push
called by 928
packages/core/src/transports/offline.ts
start
called by 879
packages/deno/lib.deno.d.ts
log
called by 726
packages/deno/lib.deno.d.ts
setTimeout
called by 691
packages/browser-utils/src/getNativeImplementation.ts
startSpan
called by 661
packages/deno/src/opentelemetry/tracer.ts

Shape

Function 6,992
Method 2,256
Interface 1,723
Class 1,265
Enum 21

Languages

TypeScript100%

Modules by API surface

packages/deno/lib.deno.d.ts1,041 symbols
packages/replay-internal/src/types/replay.ts56 symbols
packages/core/src/client.ts54 symbols
packages/replay-internal/src/replay.ts50 symbols
packages/core/src/scope.ts44 symbols
packages/replay-worker/examples/worker.js38 symbols
packages/node/src/integrations/tracing/redis/vendored/redis-instrumentation.ts36 symbols
packages/node/src/integrations/tracing/hapi/types.ts35 symbols
dev-packages/browser-integration-tests/utils/helpers.ts34 symbols
packages/replay-internal/src/types/replayFrame.ts33 symbols
packages/react/src/reactrouter-compat-utils/instrumentation.tsx31 symbols
packages/cloudflare/test/workflow.test.ts30 symbols

Dependencies from manifests, versioned

@actions/artifact6.1.0 · 1×
@actions/core1.10.1 · 1×
@actions/exec1.1.1 · 1×
@actions/github5.0.0 · 1×
@actions/glob0.6.1 · 1×
@actions/io3.0.2 · 1×
@angular-devkit/build-angular14.2.13 · 1×
@angular/animations21.0.0 · 1×
@angular/build22.0.0 · 1×
@angular/cli14.2.13 · 1×
@angular/common14.3.0 · 1×
@angular/compiler14.3.0 · 1×

Datastores touched

(mongodb)Database · 1 repos
(mysql)Database · 1 repos
testsDatabase · 1 repos
test_dbDatabase · 1 repos

For agents

$ claude mcp add sentry-javascript \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact