# @sentry/google-cloud-serverless

> Official Sentry SDK for Google Cloud Functions

Latest version **10.75.0** (published 2026-09-16) · MIT license · 0 weekly downloads

## Install

```sh
npm install @sentry/google-cloud-serverless
pnpm add @sentry/google-cloud-serverless
yarn add @sentry/google-cloud-serverless
bun add @sentry/google-cloud-serverless
```

## Health

**Score 70/100 (B)** — status: active.

Positive: has types; esm support; no vulnerabilities; recently updated; high maintenance score; high quality score.

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 10.75.0 |
| Published | 2026-09-16 |
| First published | 2024-03-14 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | >=18 |
| Dependencies | 3 |
| Unpacked size | 140.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 8744 |
| Author | Sentry |
| Maintainers | sentry-bot |

## Links

- npm: https://www.npmjs.com/package/@sentry/google-cloud-serverless
- Repository: https://github.com/getsentry/sentry-javascript
- Homepage: https://github.com/getsentry/sentry-javascript/tree/master/packages/google-cloud-serverless
- Issues: https://github.com/getsentry/sentry-javascript/issues
- npm.io page: https://npm.io/package/@sentry/google-cloud-serverless

## Dependencies (3)

- [@sentry/core](https://npm.io/package/@sentry/core.md) 10.75.0
- [@sentry/node](https://npm.io/package/@sentry/node.md) 10.75.0
- [@sentry/node-core](https://npm.io/package/@sentry/node-core.md) 10.75.0

## Recent versions

- 10.75.0 (latest) — 2026-09-16
- 11.0.0-rc.0 (next) — 2026-09-16
- 8.55.2 (v8) — 2026-04-28
- 9.47.1 (v9) — 2025-11-17
- 10.74.0 — 2026-09-09
- 11.0.0-beta.2 — 2026-09-09
- 11.0.0-beta.1 — 2026-09-03
- 11.0.0-beta.0 — 2026-09-02
- 10.73.0 — 2026-08-31
- 11.0.0-alpha.2 — 2026-08-28
- 10.72.0 — 2026-08-28
- 10.71.0 — 2026-08-24
- 11.0.0-alpha.1 — 2026-08-12
- 10.70.0 — 2026-08-10
- 11.0.0-alpha.0 — 2026-08-07
- … 243 more at https://npm.io/package/@sentry/google-cloud-serverless/versions

## README

<p align="center">
  <a href="https://sentry.io/?utm_source=github&utm_medium=logo" target="_blank">
    <img src="https://sentry-brand.storage.googleapis.com/sentry-wordmark-dark-280x84.png" alt="Sentry" width="280" height="84">
  </a>
</p>

# Official Sentry SDK for Google Cloud Functions

## Links

- [Official SDK Docs](https://docs.sentry.io/)

## General

This package is a wrapper around `@sentry/node`, with added functionality related to various Serverless solutions. All
methods available in `@sentry/node` can be imported from `@sentry/google-cloud-serverless`.

To use this SDK, call `Sentry.init(options)` at the very beginning of your JavaScript file.

```javascript
const Sentry = require('@sentry/google-cloud-serverless');

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

// For HTTP Functions:

exports.helloHttp = Sentry.wrapHttpFunction((req, res) => {
  throw new Error('oh, hello there!');
});

// For Background Functions:

exports.helloEvents = Sentry.wrapEventFunction((data, context, callback) => {
  throw new Error('oh, hello there!');
});

// For CloudEvents:

exports.helloEvents = Sentry.wrapCloudEventFunction((context, callback) => {
  throw new Error('oh, hello there!');
});
```

---
_Source: https://npm.io/package/@sentry/google-cloud-serverless · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
