Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

Slack notifications for inline alerts fail when the chart-explorer link passes Slack's 3000-character block limit

Abierto Apto para principiantes
#3,452 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 2 días

@Tyagiquamar ya está trabajando en esto.

Desde el 25/10/2026.

  • #3473 de @Tyagiquamar — abierto

Evaluación

Dificultad
2/5
Tiempo estimado
1-3 horas
Aptitud para principiantes
76/100
Tipo de issue
Error
Claridad
Bien especificado
Estado de actividad
Activo
Stack tecnológico
typescript

Línea de trabajo

Empieza con packages/api/src/tasks/checkAlerts/transports/slack.ts y examina cómo el bloque de sección combina el enlace, el título y el cuerpo; después, lee packages/api/src/tasks/checkAlerts/template.ts para seguir cómo se crean los enlaces de alertas en línea. Reproduce el fallo con un enlace de alerta en línea largo y revisa las pruebas existentes del transporte de Slack. El trabajo estará terminado cuando Slack acepte las notificaciones de alertas en línea demasiado largas y los enlaces de alertas más cortos sigan funcionando.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

alerting bug external

Summary

Slack notifications for inline alerts fail when the alert's chart config is large. The alert does fire, but HyperDX records WEBHOOK_ERROR: Failed to send notification to webhook "<name>" and nothing reaches Slack. The same alert set up as a tile alert posts fine.

Cause

For an inline alert, buildAlertMessageTemplateHdxLink (packages/api/src/tasks/checkAlerts/template.ts) links to the chart explorer with the alert's whole chartConfig URL-encoded in the query string (buildChartExplorerLink). Saved-search and tile alerts link to /search/<id> or the dashboard, which are short.

The Slack transport (packages/api/src/tasks/checkAlerts/transports/slack.ts) puts the link, the title and the body into a single section block:

blocks: [{ type: 'section', text: { type: 'mrkdwn', text: `*<${message.hdxLink} | ${message.title}>*\n${message.body}` } }]

Slack limits a section block's text to 3000 characters, and the URL counts toward that limit even though Slack only shows the title. So once the encoded config, the title and the body pass 3000 characters, Slack rejects the message.

Example (HyperDX 2.39.1)

An inline builder alert on a metrics source with 8 histogram series (quantile p99, one metricName each):

  • Each series becomes about 280 characters of the link, because the stored config adds aggCondition, aggConditionLanguage, isDelta and similar fields and URL encoding roughly multiplies JSON by 1.4.
  • With series aliases, a descriptive name and display settings (numberFormat, fitYAxisToData), the link was about 3100 characters. Every notification failed with WEBHOOK_ERROR.
  • After removing the aliases, display settings and most of the name, the link was about 2580 characters and the notification posted.
  • A raw SQL inline alert with about 1700 characters of SQL produces a link of about 2500 characters and is right at the edge.

So a perfectly ordinary alert silently loses its notifications. The only sign is an executionErrors entry on the alert.

Suggestions

Any of these would fix it:

  1. Link inline alerts to something short, for example the alert itself (an alerts page or anchor by alert id), or a server-side stored chart that opens by id, instead of encoding the whole config in the URL.
  2. In the Slack transport, if the section text would pass 3000 characters, fall back to a shorter link (the alerts page) or put the link in a separate block or button. A button url allows up to 3000 characters on its own.
  3. At minimum, warn when saving an inline alert whose notification link would exceed the Slack limit, and say in the WEBHOOK_ERROR that the message was too long.

Environment

  • HyperDX 2.39.1 (ClickStack Helm chart 3.4.0), Slack incoming webhook
  • Alert source: inline (created through the MCP clickstack_save_alert tool / external API)
Lenguaje dominante
TypeScript
Estrellas
10k
Forks
501
Merge medio
2 d 4 h
PR fusionados (30 d)
148

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de hyperdxio/hyperdx

Todos los issues de hyperdxio/hyperdx

Issues similares

Más issues de TypeScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.