Skip to content

WebMvcTags to ServerRequestObservationConvention migration #33673

@janchristian-haddorp

Description

@janchristian-haddorp

Starting with Spring Boot 3.0.0 the class WebMvcTags is deprecated and should be replaced by DefaultServerRequestObservationConvention.

WebMvcTags containts specials mapping logic for Spring Data REST.

private static String getMatchingPattern(HttpServletRequest request) {
    PathPattern dataRestPathPattern = (PathPattern) request.getAttribute(DATA_REST_PATH_PATTERN_ATTRIBUTE);
    if (dataRestPathPattern != null) {
        return dataRestPathPattern.getPatternString();
    }
    return (String) request.getAttribute(HandlerMapping.BEST_MATCHING_PATTERN_ATTRIBUTE);
}

This functionality is missing on DefaultServerRequestObservationConvention. Will there be a full featured replacement?

Metadata

Metadata

Assignees

No one assigned

    Labels

    for: external-projectFor an external project and not something we can fixstatus: invalidAn issue that we don't feel is valid

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions