kragent66-glitch opened a new pull request, #39965: URL: https://github.com/apache/beam/pull/39965
Hi! This PR adds a test case to to clarify how metrics can be captured during the lifecycle method of a . ### Background I investigated [BEAM-27038](https://github.com/apache/beam/issues/27038) and found that the behavior of metrics in is tied to how the Go SDK handles context. - If the method accepts a argument, the framework correctly passes the bundle's context, and metrics are captured. - If the method does not accept context, any metrics incremented using are correctly (but perhaps unexpectedly) dropped. ### Changes - Added to verify that metrics are captured when accepts context. - Added to verify the expected behavior when does not accept context. This PR aims to serve as a documentation-by-test for this convention. Thanks! -- 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]
