-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add metrics to groupbytraceprocessor, wait for queue to be drained during shutdown. #1842
Add metrics to groupbytraceprocessor, wait for queue to be drained during shutdown. #1842
Conversation
ea29c21
to
2ccd3d8
Compare
Codecov Report
@@ Coverage Diff @@
## master #1842 +/- ##
========================================
Coverage 91.23% 91.24%
========================================
Files 272 273 +1
Lines 16263 16383 +120
========================================
+ Hits 14838 14949 +111
- Misses 998 1003 +5
- Partials 427 431 +4
Continue to review full report at Codecov.
|
9ecf89f
to
793b1e2
Compare
The last commit in this PR fixes #1811. |
6277807
to
be3e69b
Compare
c037b65
to
99f90b5
Compare
* Drain the queue upon shutdown, with a time limit. Fixes open-telemetry#1465. * Added metrics to the groupbyprocessor, making it easier to understand what's going on in case of problems. See open-telemetry#1811. * Changes the in-memory storage to unlock its RLock when the method returns. Fixes open-telemetry#1811. Link to tracking Issue: open-telemetry#1465 and open-telemetry#1811 Testing: unit + manual tests Documentation: see README.md Signed-off-by: Juraci Paixão Kröhling <[email protected]>
99f90b5
to
afcb27a
Compare
@tigrannajaryan, @bogdandrutu , would one of you please review this, or assign someone to review it? I just discussed this with @chris-smith-zocdoc and he confirmed that this fixes the issue he described. A couple of separate issues were found, but we'll address that after the move of this processor to the -contrib repository. I would really like to get this merged before the move, so that I have only one thing to move. |
@@ -39,9 +37,6 @@ func TestDefaultConfiguration(t *testing.T) { | |||
func TestCreateTestProcessor(t *testing.T) { | |||
c := createDefaultConfig().(*Config) | |||
|
|||
logger, err := zap.NewDevelopment() | |||
require.NoError(t, err) | |||
|
|||
params := component.ProcessorCreateParams{ | |||
Logger: logger, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's not apparent to me what this logger is now
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is defined in the processor_test.go
as:
var (
logger, _ = zap.NewDevelopment()
)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm with a couple nits. Thank you for the very helpful readme.
Signed-off-by: Juraci Paixão Kröhling <[email protected]>
PR updated with the corrected number of buffered events. |
Fixed deadlock in groupbytrace processor.
Link to tracking Issue: #1465 and #1811
Testing: unit + manual tests
Documentation: see README.md
Signed-off-by: Juraci Paixão Kröhling [email protected]