-
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
[jaeger-v2] Add StartTimeMin and StartTimeMax params to consumeTraces function. #5288
[jaeger-v2] Add StartTimeMin and StartTimeMax params to consumeTraces function. #5288
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #5288 +/- ##
==========================================
+ Coverage 95.08% 95.09% +0.01%
==========================================
Files 340 340
Lines 16610 16626 +16
==========================================
+ Hits 15793 15811 +18
+ Misses 629 627 -2
Partials 188 188
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Signed-off-by: James Ryans <[email protected]>
48b50ff
to
4cfcb12
Compare
Signed-off-by: James Ryans <[email protected]>
Signed-off-by: James Ryans <[email protected]>
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.
Did you also mean to add any additional logging in the datareceiver? Or does it do the logging already and you just weren't giving it a good logger?
Signed-off-by: James Ryans <[email protected]>
Yes, it already has the logging there. This is where the logs have captured the error from Badger's integration test. jaeger/cmd/jaeger/internal/integration/receivers/storagereceiver/receiver.go Lines 74 to 78 in d887b74
|
telemetrySettings.Logger = tel.Logger() | ||
|
||
receiver := datareceivers.NewJaegerStorageDataReceiver( | ||
telemetrySettings, |
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.
Any reason why can't pass tel directly?
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.
Because tel (or telemetry.Telemetry
) and component.TelemetrySettings
is two different component.
telemetry.Telemetry initialize the zap.Logger
from the config.
component.TelemetrySettings is the struct that contains zap.Logger
that is used by components in OTEL to report telemetry matters.
This means that the extension and receiver in the data receiver are using component.TelemetrySettings
to write logs. Based on your suggestion, I thought it is better if we pass the initialized struct and use it directly in the data receiver.
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.
Got it. Looking through OTEL code the situation seems to be quite messy, I don't know if they have a ticket to clean it up. E.g.
- why are
Telemetry
andTelemetrySettings
two different structs? They seem to server the same purpose (the latter being more comprehensive) TelemetrySettings
comment also mentions yet another similar structservicetelemetry.TelemetrySettings
I was rather thinking of INFO logs as the data receiver polls the storage - it's a test scenario, we don't have to be stingy about logs. E.g. something like
|
Which problem is this PR solving?
Description of the changes
StartTimeMin
andStartTimeMax
query params with 1h lookback toconsumeTraces
function.How was this change tested?
Checklist
jaeger
:make lint test
jaeger-ui
:yarn lint
andyarn test