Skip to content

Incorrect Group Handling in RequestContextHandler Causing Missing Context Attributes #4081

@alihasan070707

Description

@alihasan070707

Preflight Checklist

  • I agree to follow the Code of Conduct that this project adheres to.
  • I have searched the issue tracker for an issue that matches the one I want to file, without success.
  • I am not looking for support or already pursued the available support channels without success.

Version

2.42.0

Storage Type

etcd

Installation Type

Custom container image

Expected Behavior

When using WithGroup to nest log attributes, the requestContextHandler wrapper is bypassed, it will cause request context attributes (remote_ip, request_id) to be omitted from grouped log entries.

/cmd/dex/logger.go

Actual Behavior

attributes (remote_ip, request_id) are not present in log messages.

Steps To Reproduce

use WithGroup to nest log attributes.

Additional Information

No response

Configuration

Logs

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions