userzhy opened a new pull request, #37177:
URL: https://github.com/apache/beam/pull/37177

   This change adds the logger name (`record.name`) to the `custom_data` field 
of `LogEntry` protos in `FnApiLogRecordHandler`. This is useful for filtering 
and debugging logs in complex pipelines.
   
   **Changes:**
   - Modified `FnApiLogRecordHandler.emit()` to include the logger name in 
`custom_data['logger']`.
   - Added unit test `test_logger_name_in_custom_data` to verify the 
functionality.
   
   **Example:**
   When a log is emitted from a logger named `my_module.submodule`, the 
`LogEntry.custom_data` will contain:
   
   ```text
   fields {
     key: "logger"
     value {
       string_value: "my_module.submodule"
     }
   }
   ```
   
   ------------------------
   
   Thank you for your contribution! Follow this checklist to help us 
incorporate your contribution quickly and easily:
   
    - [x] Mention the appropriate issue in your description (for example: 
`addresses #123`), if applicable. This will automatically add a link to the 
pull request in the issue. If you would like the issue to automatically close 
on merging the pull request, comment `fixes #<ISSUE NUMBER>` instead.
    - [x] Update `CHANGES.md` with noteworthy changes.
    - [ ] If this contribution is large, please file an Apache [Individual 
Contributor License Agreement](https://www.apache.org/licenses/icla.pdf).
   
   Fixes #37146


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to