Sentry
描述
将 SeaTunnel 行数据作为消息写入 Sentry。每一行会通过 Sentry SDK 以 Sentry.captureMessage(row.toString()) 的方式发送。
关键特性
选项
| 名称 | 类型 | 必需 | 默认值 | 描述 |
|---|---|---|---|---|
| dsn | string | 是 | - | Sentry SDK 使用的 DSN。 |
| env | string | 否 | - | Sentry 环境名称。 |
| release | string | 否 | - | Sentry release 值。 |
| cacheDirPath | string | 否 | - | 离线事件缓存目录。 |
| enableExternalConfiguration | boolean | 否 | - | 是否允许 Sentry SDK 加载外部配置。 |
| maxCacheItems | int | 否 | - | 最大缓存事件数量。 |
| flushTimeoutMillis | long | 否 | - | 刷新待发送事件时的等待时间,单位毫秒。 |
| maxQueueSize | int | 否 | - | 事件刷新到磁盘前的最大队列大小。 |
| common-options | 否 | - | 接收器插件通用参数。 |
dsn [string]
DSN告诉SDK将事件发送到何处.
env [string]
指定环境
release [string]
指定版本
cacheDirPath [string]
缓存脱机事件的缓存目录路径
enableExternalConfiguration [boolean]
如果启用了从外部源加载属性.
maxCacheItems [number]
用于限制事件数量的最大缓存项默认值为30
flushTimeoutMillis [long]
刷新待发送事件时的等待时间,单位毫秒。
maxQueueSize [number]
将事件/信封刷新到磁盘之前的最大队列大小
common options
接收器插件常用参数,详见 Sink 常见选项
示例
sink {
Sentry {
dsn = "https://xxx@sentry.xxx.com:9999/6"
enableExternalConfiguration = true
maxCacheItems = 1000
flushTimeoutMillis = 15000
env = "prod"
}
}
变更日志
Change Log
| Change | Commit | Version |
|---|---|---|
| [improve] sentry options (#9261) | https://github.com/apache/seatunnel/commit/4a2f3fa915 | 2.3.11 |
| [Feature][Restapi] Allow metrics information to be associated to logical plan nodes (#7786) | https://github.com/apache/seatunnel/commit/6b7c53d03c | 2.3.9 |
[Improve] Remove use SeaTunnelSink::getConsumedType method and mark it as deprecated (#5755) | https://github.com/apache/seatunnel/commit/8de7408100 | 2.3.4 |
| [Improve][build] Give the maven module a human readable name (#4114) | https://github.com/apache/seatunnel/commit/d7cd601051 | 2.3.1 |
| [Improve][Project] Code format with spotless plugin. (#4101) | https://github.com/apache/seatunnel/commit/a2ab166561 | 2.3.1 |
| [Hotfix][OptionRule] Fix option rule about all connectors (#3592) | https://github.com/apache/seatunnel/commit/226dc6a119 | 2.3.0 |
| [Improve][Connector-V2][Sentry] Unified exception for sentry sink connector (#3513) | https://github.com/apache/seatunnel/commit/94b472b806 | 2.3.0 |
| [Connector][Dependency] Add Miss Dependency Cassandra And Change Kudu Plugin Name (#3432) | https://github.com/apache/seatunnel/commit/6ac6a0a0cd | 2.3.0 |
| [Feature][Sentry Sink V2] Add Sentry Sink Option Rules (#3318) | https://github.com/apache/seatunnel/commit/850f483816 | 2.3.0 |
| [Feature][Connector-V2] Add sentry sink connector #2244 (#2584) | https://github.com/apache/seatunnel/commit/9fd40390a7 | 2.2.0-beta |