Closed
Bug 1517231
Opened 6 years ago
Closed 6 years ago
Glean: Upload even though metrics are disabled?
Categories
(Toolkit :: Telemetry, enhancement, P1)
Tracking
()
RESOLVED
FIXED
People
(Reporter: sebastian, Assigned: travis_)
References
Details
(Whiteboard: [telemetry:mobilesdk:m4])
Attachments
(1 file)
(deleted),
text/x-github-pull-request
|
Details |
I am adding glean to the reference browser here:
https://github.com/mozilla-mobile/reference-browser/pull/349
Even though I have metrics disabled via setMetricsEnabled() I still see uploads happening in the log:
> D Ping upload: 200
> D Ping successfully sent (200)
I was expecting no upload to happen in this case?
Reporter | ||
Updated•6 years ago
|
OS: Unspecified → Android
Assignee | ||
Updated•6 years ago
|
Assignee: nobody → tlong
Assignee | ||
Comment 1•6 years ago
|
||
This may be by design, I don't seem to see any information about sending or not sending the ping depending on the setMetricsEnabled() state. What I do see happening is that we are not recording any metrics if metrics are disabled, but I don't know if this affects the baseline ping because of it's lifetime attribute. I'm pinging Alessio to get more info.
Flags: needinfo?(alessio.placitelli)
Comment 2•6 years ago
|
||
(In reply to Travis Long from comment #1)
> This may be by design, I don't seem to see any information about sending or
> not sending the ping depending on the setMetricsEnabled() state. What I do
> see happening is that we are not recording any metrics if metrics are
> disabled, but I don't know if this affects the baseline ping because of it's
> lifetime attribute. I'm pinging Alessio to get more info.
Yes. Let's introduce a way to disable upload. This might be useful to implement the solution to the problem illustrated in bug 1514336 comment 1 as well.
Points: --- → 2
Flags: needinfo?(alessio.placitelli)
Priority: -- → P1
Whiteboard: [telemetry:mobilesdk:m4]
Assignee | ||
Comment 3•6 years ago
|
||
Okay, by "persistently" (from the comment in bug 1514336), do we want it to be so that the glean lib manages and maintains that persistence? Since we are only a library, it seems like persistently disabling/enabling sending of pings to be the responsibility of the caller. I think having the setMetricsEnabled() flag control ping uploading is a good idea, but I'm not sure it's such a good idea to incorporate managing the persistence of that in the library itself.
Comment 4•6 years ago
|
||
(In reply to Travis Long from comment #3)
> Okay, by "persistently" (from the comment in bug 1514336), do we want it to
> be so that the glean lib manages and maintains that persistence? Since we
> are only a library, it seems like persistently disabling/enabling sending of
> pings to be the responsibility of the caller.
I share the same concern about persistence, I think that should be up to the application to define. However, let's defer/take the persistence specific part to bug 1514336.
> I think having the
> setMetricsEnabled() flag control ping uploading is a good idea, but I'm not
> sure it's such a good idea to incorporate managing the persistence of that
> in the library itself.
I agree: let's have this flag control everything. We can always change it back later if we need to separate the semantics between controlling recording and uploading.
Assignee | ||
Comment 5•6 years ago
|
||
Assignee | ||
Comment 6•6 years ago
|
||
Ping uploads now properly obey the prime directive (and the setMetricsEnabled() flag)
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•