-
Notifications
You must be signed in to change notification settings - Fork 2.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
Ignore the problem of self-reported spans when multi-tenant enabled #3787
Conversation
Codecov Report
@@ Coverage Diff @@
## main #3787 +/- ##
=======================================
Coverage 97.59% 97.59%
=======================================
Files 288 288
Lines 16774 16778 +4
=======================================
+ Hits 16370 16374 +4
Misses 319 319
Partials 85 85
Continue to review full report at Codecov.
|
r.logger.Error("Could not send spans over gRPC", zap.Error(err)) | ||
stat, ok := status.FromError(err) | ||
if ok && stat.Code() == codes.PermissionDenied && stat.Message() == "missing tenant header" { | ||
r.logger.Debug("Could not send spans over gRPC", zap.Error(err)) |
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 worth distinguishing the error messages a bit more, not just by the error level.
Head branch was pushed to by a user without write access
conn, err := grpc.Dial(addr.String(), grpc.WithTransportCredentials(insecure.NewCredentials())) | ||
//nolint:staticcheck // don't care about errors | ||
defer conn.Close() | ||
require.NoError(t, err) |
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.
conn, err := grpc.Dial(addr.String(), grpc.WithTransportCredentials(insecure.NewCredentials())) | |
//nolint:staticcheck // don't care about errors | |
defer conn.Close() | |
require.NoError(t, err) | |
conn, err := grpc.Dial(addr.String(), grpc.WithTransportCredentials(insecure.NewCredentials())) | |
require.NoError(t, err) | |
defer func() { require.NoError(t, conn.Close()) }() |
require.NoError(t, err) | ||
rep := NewReporter(conn, nil, zap.NewNop()) | ||
|
||
tm := time.Unix(158, 0) |
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.
why not time.Now()
?
Signed-off-by: Ed Snible <[email protected]>
Signed-off-by: Ed Snible <[email protected]>
Signed-off-by: Ed Snible <[email protected]>
94fbe7d
to
de43533
Compare
…aegertracing#3787) * Log missing tenancy at debug level Signed-off-by: Ed Snible <[email protected]> * Debug message and code coverage Signed-off-by: Ed Snible <[email protected]> * Simplify test Signed-off-by: Ed Snible <[email protected]> Signed-off-by: Albert Teoh <[email protected]>
Signed-off-by: Ed Snible [email protected]
If the experimental tenancy feature is enabled, every self-reported span generates two error level log entries with full stack traces.
This PR causes Jaeger to log missing tenancy at debug level.
The goal is to mitigate the problem of self-reports while we focus on adding tenancy to the query APIs.
See #3750 (comment)