
SentryAlert
SentryAlert
yaml
type: "io.kestra.plugin.sentry.SentryAlert"Examples
yaml
id: unreliable_flow
namespace: company.team
tasks:
- id: fail
type: io.kestra.plugin.scripts.shell.Commands
runner: PROCESS
commands:
- exit 1
errors:
- id: alert_on_failure
type: io.kestra.plugin.sentry.SentryAlert
dsn: "{{ secret('SENTRY_DSN') }}" # format: https://xxx@xxx.ingest.sentry.io/xxx
endpointType: ENVELOPEyaml
id: sentry_alert
namespace: company.team
tasks:
- id: send_sentry_message
type: io.kestra.plugin.sentry.SentryAlert
dsn: "{{ secret('SENTRY_DSN') }}"
endpointType: "ENVELOPE"
payload: |
{
"timestamp": "{{ execution.startDate }}",
"platform": "java",
"level": "error",
"transaction": "/execution/id/{{ execution.id }}",
"server_name": "localhost:8080",
"message": {
"message": "Execution {{ execution.id }} failed"
},
"extra": {
"Namespace": "{{ flow.namespace }}",
"Flow ID": "{{ flow.id }}",
"Execution ID": "{{ execution.id }}",
"Link": "http://localhost:8080/ui/executions/{{flow.namespace}}/{{flow.id}}/{{execution.id}}"
}
}Properties
dsn*Requiredstring
Min length
1endpointTypestring
Default
ENVELOPEPossible Values
ENVELOPESTOREoptions
Definitions
io.kestra.plugin.sentry.AbstractSentryConnection-RequestOptions
connectTimeoutstring
Format
durationconnectionPoolIdleTimeoutstring
Default
PT0SFormat
durationdefaultCharsetstring
Default
UTF-8java.nio.charset.Charset
headersobject
SubTypestring
maxContentLengthintegerstring
Default
10485760readIdleTimeoutstring
Default
PT5MFormat
durationreadTimeoutstring
Default
PT10SFormat
duration