Closed Bug 1634754 Opened 4 years ago Closed 5 months ago

`on_ready_to_submit_pings` doesn't say when it should be called

Categories

(Data Platform and Tools :: Glean: SDK, task, P4)

task

Tracking

(Not tracked)

RESOLVED INVALID

People

(Reporter: chutten, Unassigned)

Details

(Whiteboard: [telemetry:glean-rs:backlog][docdays])

Well, I mean it provides hints to the earliest time it is usually called ( "after all of the core metrics have been set and the ping types have been registered"), but what if I don't call it at all? What does that prevent me from doing?

Maybe the docs should be rewritten to include a note about what this should be called before... and maybe it could include a thumbnail about what the function is doing instead of just being about when it should be called.

Chris, do you mean this?

Please note that this is not for API consumers to call. In FOG you're calling it because the "glean-api" rust crate is not there. In general, that would be hidden behind a Glean.initialize function.

Or did you mean something else?

Flags: needinfo?(chutten)
Priority: -- → P3
Whiteboard: [telemetry:glean-rs:m?]

I do mean that. And as someone who might be tasked with fixing bugs within the "glean-api" or "glean_sdk" crate in future, I'd still like some clarification in the comments : )

Flags: needinfo?(chutten)
Whiteboard: [telemetry:glean-rs:m?] → [telemetry:glean-rs:backlog][docdays]
Priority: P3 → P4

on_ready_to_submit_pings is not part of the public API anymore. It's called internally. And since this bug was filed the docs were even updated to be more precise.

Status: NEW → RESOLVED
Closed: 5 months ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.