Skip to content

OTel - Log signal for successfully routed anonymous requests #4704

@balhar-jakub

Description

@balhar-jakub

When APIML successfully (the service is onboarded) routes an anonymous request (without any authentication) to a donwnstream service, 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 error type (error.type)
  • apiml error message (error.message)
  • user id (user.id)
  • service id (service.id)
  • service instance id (service.instance.id)
  • service response code (service.response.status_code)

Acceptance criteria:

  • If the request does not have a User ID (e.g., an unauthenticated public endpoint):
    • The user.id attribute should be recorded as "anonymous", rather than preventing the log generation.
  • 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