zJiaJun opened a new pull request, #218:
URL: https://github.com/apache/skywalking-go/pull/218

   ## Purpose
   This PR replaces the custom `emptyReporter` implementation in 
`plugins/core/tracer.go` with the existing `reporter.NewDiscardReporter()` to 
reduce code duplication and improve maintainability.
   
   ## Changes
   - Replace `&emptyReporter{}` with `reporter.NewDiscardReporter()` in the 
`newTracer()` method
   - Remove the redundant `emptyReporter` struct and its method implementations
   
   ## Motivation and Context
   The `emptyReporter` and `DiscardReporter` have identical functionality - 
they both implement the Reporter interface but don't perform any actual 
operations. Using the existing `DiscardReporter` implementation reduces code 
duplication and follows the DRY principle.


-- 
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