Skip to content

Plans to support nextjs app router middleware feature to v14 or higher #2891

Closed
@eliabecardoso

Description

Plans to support nextjs middleware for app router v14 or higher

Hello, do you have any plans to support nextjs middleware feature in stable version 14 or higher?
Or enable it by a provided parameter?

I have an app with:

"newrelic": "12.11.1"
"next": "14.2.23"

When I was setting up newrelic on my nextjs app, I received the message log:

{"v":0,"level":40,"name":"newrelic","hostname":"eliabe-cardoso","pid":530631,"time":"2025-01-16T03:25:19.442Z","msg":"Next.js middleware instrumentation only supported on >=12.2.0 <=13.4.12, got 14.2.3","component":"WebFrameworkShim","module":"next/dist/server/next-server","framework":"Nextjs"}

Now I have already configured newrelic in the project, but the APM of this service without monitoring middleware is weak and with few data metrics than I expected.

Reference: https://github.com/newrelic/node-newrelic/blob/main/lib/instrumentation/nextjs/utils.js#L34-L58

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    • Status

      Done: Issues recently completed

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions