class CrashReportingProductRegister
Defined at line 4490 of file fidling/gen/sdk/fidl/fuchsia.feedback/fuchsia.feedback/hlcpp/fuchsia/feedback/cpp/fidl.h
Allows a component to choose a different crash reporting product to file crashes for that
component under.
By default, all crashes detected by the platform are filed under a single product on the crash
server. This API allows components to choose their own product while still benefiting from the
platform's exception handling and crash reporting.
Public Members
static const char[] Name_
Public Methods
void ~CrashReportingProductRegister ()
void Upsert (::std::string component_url, ::fuchsia::feedback::CrashReportingProduct product)
Upserts, i.e. updates or inserts, a crash reporting product for a given component URL.
A subsequent call to Upsert() for the same component URL overwrites the
`CrashReportingProduct` for that component.
Prefer UpsertWithAck() if the component also files crash reports itself, to avoid race
conditions and mis-attribution.
void UpsertWithAck (::std::string component_url, ::fuchsia::feedback::CrashReportingProduct product, UpsertWithAckCallback callback)
Upserts (see above) and notifies the client when the operation is complete.
This allows clients to prevent races between filing crash reports and calls to Upsert.
Otherwise if a crash report is filed before the upsert completes, the crash report will be
attributed to the wrong product, leading to potentially incorrect crash data.