Skip to content

Thread dump endpoint: use plain text as default #26199

@cdalexndr

Description

@cdalexndr

c5cae28 added support for plain text thread dump (#2339)

Issuing a http request without accepts: application/json (such as browser request) returns json format by default.
The json format is very hard to read by humans. For example, a stacktrace element has 8 fields (10 lines pretty formatted) so reading a stacktrace requires scrolling multiple pages...

        {
          "classLoaderName": null,
          "moduleName": null,
          "moduleVersion": null,
          "methodName": "ajc$around$org_springframework_transaction_aspectj_AbstractTransactionAspect$1$2a73e96cproceed",
          "fileName": "AbstractTransactionAspect.aj",
          "lineNumber": 67,
          "className": "org.springframework.transaction.aspectj.AbstractTransactionAspect",
          "nativeMethod": false
        },

The plain text format is more compact and easier to read by humans, and should be used by default instead.
This way, when requesting the thread dump through browser it will be easier to read.

Metadata

Metadata

Assignees

No one assigned

    Labels

    status: declinedA suggestion or change that we don't feel we should currently apply

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions