File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
relay-server/src/processing/spans/integrations Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -6,14 +6,14 @@ use crate::integrations::OtelFormat;
66use crate :: processing:: spans:: { Error , Result } ;
77use crate :: services:: outcome:: DiscardReason ;
88
9- /// Expands OTeL logs into the [`SpanV2`] format.
9+ /// Expands OTeL traces into the [`SpanV2`] format.
1010pub fn expand < F > ( format : OtelFormat , payload : & [ u8 ] , mut produce : F ) -> Result < ( ) >
1111where
1212 F : FnMut ( SpanV2 ) ,
1313{
14- let logs = parse_traces_data ( format, payload) ?;
14+ let traces = parse_traces_data ( format, payload) ?;
1515
16- for resource_spans in logs . resource_spans {
16+ for resource_spans in traces . resource_spans {
1717 let resource = resource_spans. resource . as_ref ( ) ;
1818 for scope_spans in resource_spans. scope_spans {
1919 let scope = scope_spans. scope . as_ref ( ) ;
You can’t perform that action at this time.
0 commit comments