Interface ReportingEndpointProvider

Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface ReportingEndpointProvider
Supplies a request-specific Reporting API endpoint.

Providers complement endpoints declared through configuration. They are useful when an endpoint URI depends on request routing or tenant context.

Since:
5.4.0
  • Method Summary

    Modifier and Type
    Method
    Description
    reportingEndpoint(io.micronaut.http.HttpRequest<?> request)
    Creates the endpoint to advertise for a request.
  • Method Details

    • reportingEndpoint

      @Nullable ReportingEndpoint reportingEndpoint(io.micronaut.http.HttpRequest<?> request)
      Creates the endpoint to advertise for a request.
      Parameters:
      request - current HTTP request
      Returns:
      endpoint to add to the request's Reporting-Endpoints header, or null when this provider does not contribute an endpoint for the request
      Since:
      5.4.0