/* This Source Code Form is subject to the terms of the Mozilla Public *License,v.2.0.IfacopyoftheMPLwasnotdistributedwiththis *file,Youcanobtainoneathttps://mozilla.org/MPL/2.0/. * *ThisfileexplicitlyusesRust'sstructsdestructuringfeaturetohighlightwhatvaluesfromthe *opentelemetryprotodefinitionsweareusingandwhichweareignoringfornow.Thepurposeof *thisistobeawareofthecurrentinefficienciesoftheprotodefinitionandwhatwemightwantto *remove/addtotelemetry. * *Pleasenotethatdespitethestructhavingunusedfieldsitisverylikelythatthosewerenot *sentoverIPCsinceprotobufusesafieldtagserializationschemawhichallowsskippingover
* empty fields. */
mod fog_object { pubuse firefox_on_glean::metrics::gecko_trace::{
TracesDataObject as TracesData, TracesDataObjectItemResourceSpansItem as ResourceSpans,
TracesDataObjectItemResourceSpansItemItemResourceObject as Resource,
TracesDataObjectItemResourceSpansItemItemResourceObjectItemAttributesObject as ResourceAttributes,
TracesDataObjectItemResourceSpansItemItemScopeSpansItem as ScopeSpans,
TracesDataObjectItemResourceSpansItemItemScopeSpansItemItemScopeObject as InstrumentationScope,
TracesDataObjectItemResourceSpansItemItemScopeSpansItemItemSpansItem as Span,
TracesDataObjectItemResourceSpansItemItemScopeSpansItemItemSpansItemItemEventsItem as SpanEvent,
};
}
impl From<ExportTraceServiceRequest> for fog_object::TracesData {
fn from(value: ExportTraceServiceRequest) -> Self { let ExportTraceServiceRequest { resource_spans } = value;
Self { // Version identifier used by the ETL backend to determine data compatibility. // The backend will drop traces with unknown or outdated versions to prevent // parsing errors from schema changes.
version: Some("0.1".to_owned()),
resource_spans: resource_spans
.into_iter()
.map(fog_object::ResourceSpans::from)
.collect(),
}
}
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.