Uploaded image for project: 'Quarkus Documentation'
  1. Quarkus Documentation
  2. QDOCS-1163

[Release Notes: Known issue]quarkus_websockets_server_connections_opened_errors_total metric doesn't increment when exception is thrown on websocket opening

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Done
    • Icon: Major Major
    • None
    • None
    • None
    • None
    • Quarkus Docs Sprint 38

      Websocket.next endpoint throwing exception on opening of connection doesn't increment count of quarkus_websockets_server_connections_opened_errors_total{uri=${ENDPOINT}} metric counter.

      For example, I have a following websocket:

      @WebSocket(path = "/failing")
      public class FailingWebsocket {
          @OnOpen()
          public void onOpen() {
              throw new RuntimeException("Websocket failed to open");
          }
      .
      .
      .
      }
      

      But opening a connection on it doesn't increment the counter. Same happens for the quarkus_websockets_client_connections_opened_errors_total{uri=${ENDPOINT}} counter.

              rdlugyhe Rolfe Dlugy-Hegwer
              rdlugyhe Rolfe Dlugy-Hegwer
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: