# sentry_capture

> For the complete documentation index, see [llms.txt](https://docs.redpanda.com/llms.txt). Component-specific: [connect-full.txt](https://docs.redpanda.com/connect-full.txt)

---
title: sentry_capture
latest-connect-version: 4.93.0
latest-operator-version: v26.1.4
latest-console-tag: v3.7.3
latest-redpanda-tag: v26.1.9
docname: processors/sentry_capture
page-component-name: connect
page-version: master
page-component-version: master
page-component-title: Connect
page-relative-src-path: processors/sentry_capture.adoc
page-edit-url: https://github.com/redpanda-data/rp-connect-docs/edit/main/modules/components/pages/processors/sentry_capture.adoc
page-git-created-date: "2024-05-24"
page-git-modified-date: "2026-05-26"
---

<!-- Source: https://docs.redpanda.com/connect/components/processors/sentry_capture.md -->

**Available in:** Self-Managed

Captures log events from messages and submits them to [Sentry](https://sentry.io/).

Introduced in version 4.16.0.

```yml
# Config fields, showing default values
label: ""
sentry_capture:
  dsn: ""
  message: webhook event received # No default (required)
  context: 'root = {"order": {"product_id": "P93174", "quantity": 5}}' # No default (optional)
  tags: {} # No default (optional)
  environment: ""
  release: ""
  level: INFO
  transport_mode: async
  flush_timeout: 5s
  sampling_rate: 1
```

## [](#fields)Fields

### [](#context)`context`

A mapping that must evaluate to an object-of-objects or `deleted()`. If this mapping produces a value, then it is set on a sentry event as additional context.

**Type**: `string`

```yaml
# Examples:
context: root = {"order": {"product_id": "P93174", "quantity": 5}}

# ---

context: root = deleted()
```

### [](#dsn)`dsn`

The DSN address to send sentry events to. If left empty, then SENTRY\_DSN is used.

**Type**: `string`

**Default**: `""`

### [](#environment)`environment`

The environment to be sent with events. If left empty, then SENTRY\_ENVIRONMENT is used.

**Type**: `string`

**Default**: `""`

### [](#extras)`extras`

A mapping that must evaluate to an object. If this mapping produces a value, then it is set on a sentry event as extras.

**Type**: `string`

```yaml
# Examples:
extras: root.foo = "bar"

# ---

extras: root = this.without("password")
```

### [](#flush_timeout)`flush_timeout`

The duration to wait when closing the processor to flush any remaining enqueued events.

**Type**: `string`

**Default**: `5s`

### [](#level)`level`

Sets the level on sentry events similar to logging levels.

**Type**: `string`

**Default**: `INFO`

**Options**: `DEBUG`, `INFO`, `WARN`, `ERROR`, `FATAL`

### [](#message)`message`

A message to set on the sentry event This field supports [interpolation functions](https://docs.redpanda.com/connect/configuration/interpolation/#bloblang-queries).

**Type**: `string`

```yaml
# Examples:
message: webhook event received

# ---

message: failed to find product in database: ${! error() }
```

### [](#release)`release`

The version of the code deployed to an environment. If left empty, then the Sentry client will attempt to detect the release from the environment.

**Type**: `string`

**Default**: `""`

### [](#sampling_rate)`sampling_rate`

The rate at which events are sent to the server. A value of 0 disables capturing sentry events entirely. A value of 1 results in sending all events to Sentry. Any value in between results sending some percentage of events.

**Type**: `float`

**Default**: `1`

### [](#tags)`tags`

Sets key/value string tags on an event. Unlike context, these are indexed and searchable on Sentry but have length limitations. This field supports [interpolation functions](https://docs.redpanda.com/connect/configuration/interpolation/#bloblang-queries).

**Type**: `string`

### [](#transport_mode)`transport_mode`

Determines how events are sent. A sync transport will block when sending each event until a response is received from the Sentry server. The recommended async transport will enqueue events in a buffer and send them in the background.

**Type**: `string`

**Default**: `async`

**Options**: `async`, `sync`