Skip to content

v3.0.0-M4 - Make the constant TRACING_FILTER_ORDER publicly accessible #1771

@sguillope

Description

@sguillope

Is your feature request related to a problem? Please describe.
With Spring Cloud Sleuth v2.x we were able to import TraceWebServletAutoConfiguration.TRACING_FILTER_ORDER but since 3.x there is no way to access it because the class was made non-public.

Describe the solution you'd like
That constant is actually defined in TraceHttpAutoConfiguration but for some reason it has package-private access only. It was also previously accessible through TraceWebFilter but the class is not public in v3 anymore.
Maybe TraceHttpAutoConfiguration.TRACING_FILTER_ORDER could be made public?

Describe alternatives you've considered
The alternative is to duplicate the value as it is defined in TraceHttpAutoConfiguration when registering a web filter but that's not ideal if it was to change in the future.

Additional context
We have a custom filter that we need to register ahead of the TraceWebFilter.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions