Skip to content

Commit 5670ba0

Browse files
authored
ref(spans): Fix variable naming (#5305)
1 parent 2882409 commit 5670ba0

File tree

1 file changed

+3
-3
lines changed
  • relay-server/src/processing/spans/integrations

1 file changed

+3
-3
lines changed

relay-server/src/processing/spans/integrations/otel.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@ use crate::integrations::OtelFormat;
66
use crate::processing::spans::{Error, Result};
77
use crate::services::outcome::DiscardReason;
88

9-
/// Expands OTeL logs into the [`SpanV2`] format.
9+
/// Expands OTeL traces into the [`SpanV2`] format.
1010
pub fn expand<F>(format: OtelFormat, payload: &[u8], mut produce: F) -> Result<()>
1111
where
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();

0 commit comments

Comments
 (0)