-
Notifications
You must be signed in to change notification settings - Fork 248
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
feat(telem)_: track raw message by type on send #6176
base: develop
Are you sure you want to change the base?
Conversation
Jenkins BuildsClick to see older builds (150)
|
76e8d11
to
9009d00
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #6176 +/- ##
============================================
- Coverage 61.27% 19.30% -41.98%
============================================
Files 833 811 -22
Lines 109910 107929 -1981
============================================
- Hits 67348 20832 -46516
- Misses 34711 84266 +49555
+ Partials 7851 2831 -5020
Flags with carried forward coverage won't be shown. Click here to find out more.
|
055bb1d
to
c4644e7
Compare
d94dea8
to
94a5792
Compare
ebced90
to
7a3315a
Compare
7a3315a
to
2e23870
Compare
@@ -227,6 +228,7 @@ type NewMessage struct { | |||
// Post posts a message on the Waku network. | |||
// returns the hash of the message in case of success. | |||
func (api *PublicWakuAPI) Post(ctx context.Context, req NewMessage) (hexutil.Bytes, error) { | |||
logutils.ZapLogger().Info("AK Post", zap.String("stack", string(debug.Stack()))) |
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 might log a lot, consider removing or changing the log level to trace (or something like that)
@@ -52,6 +53,14 @@ func (tmc *testMessengerConfig) complete() error { | |||
return nil | |||
} | |||
|
|||
type mockTelemetryService struct{} | |||
|
|||
func (m *mockTelemetryService) PushRawMessageByType(ctx context.Context, msg struct { |
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.
I don't know if we are recording telemetry when sending other individual messages, if we do then just including message type and size to those would be enought, right?(maybe not since it might be in another part of the code without this info). Can we include pubsub topic and content topic here
Sends raw message type and payload size to telemetry before sending a message using sender or data sync
Adds a reference to telemetry service to message sender
If telemetry is enabled, metric is sent anytime
transport.Track
ors.addToDataSync
is called inmessage_sender
Also sent in messenger upon
sendDataSync
Important changes:
Closes #