Skip to content

OTel - Log signal for routed requests to unknown service id #4705

@balhar-jakub

Description

@balhar-jakub

When APIML could not route a request due to unknown service id or there is no instance available, produce a log signal with attributes:

  • time of event (timestamp)
  • apiml url path (url.path)
  • apiml url scheme (url.scheme)
  • apiml http method (http.request.method)
  • apiml response code (http.response.status_code)
  • apiml error type (error.type)
  • apiml error message (error.message)
  • user id (user.id)
  • service id (service.id)

Note: check the feature for attributes meaning.

Note: Requires implementing a WebFilter because if the route does not match, GlobalFilter is not executed

Acceptance criteria:

  • When a request is made to a valid gateway URL but an unknown Service ID (or a service that is down):
    • The log is generated.
    • http.response.status_code records 404 or 503.
    • service.id records the attempted service name (if parsable) or "unknown".
    • error.type:
      • Service not onboarded
      • Service instance not available
  • Acceptance tests
  • Documentation updated

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Status
    Planned In Future

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions