Skip to content

Commit

Permalink
Rename ingest helper method
Browse files Browse the repository at this point in the history
  • Loading branch information
rdettai committed Aug 23, 2024
1 parent e548422 commit 51122c4
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions quickwit/quickwit-opentelemetry/src/otlp/logs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ use tracing::field::Empty;
use tracing::{error, instrument, warn, Span as RuntimeSpan};

use super::{
extract_otel_index_id_from_metadata, is_zero, parse_log_record_body, store_helper, OtelSignal,
SpanId, TraceId, TryFromSpanIdError, TryFromTraceIdError,
extract_otel_index_id_from_metadata, ingest_doc_batch_v2, is_zero, parse_log_record_body,
OtelSignal, SpanId, TraceId, TryFromSpanIdError, TryFromTraceIdError,
};
use crate::otlp::extract_attributes;
use crate::otlp::metrics::OTLP_SERVICE_METRICS;
Expand Down Expand Up @@ -337,7 +337,7 @@ impl OtlpGrpcLogsService {
index_id: String,
doc_batch: DocBatchV2,
) -> Result<(), tonic::Status> {
store_helper(
ingest_doc_batch_v2(
self.ingest_router.clone(),
index_id,
doc_batch,
Expand Down
2 changes: 1 addition & 1 deletion quickwit/quickwit-opentelemetry/src/otlp/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ pub(crate) fn extract_otel_index_id_from_metadata(
Ok(index_id.to_string())
}

async fn store_helper(
async fn ingest_doc_batch_v2(
ingest_router: IngestRouterServiceClient,
index_id: String,
doc_batch: DocBatchV2,
Expand Down
6 changes: 3 additions & 3 deletions quickwit/quickwit-opentelemetry/src/otlp/traces.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ use tracing::field::Empty;
use tracing::{error, instrument, warn, Span as RuntimeSpan};

use super::{
extract_otel_index_id_from_metadata, is_zero, store_helper, OtelSignal, TryFromSpanIdError,
TryFromTraceIdError,
extract_otel_index_id_from_metadata, ingest_doc_batch_v2, is_zero, OtelSignal,
TryFromSpanIdError, TryFromTraceIdError,
};
use crate::otlp::metrics::OTLP_SERVICE_METRICS;
use crate::otlp::{extract_attributes, SpanId, TraceId};
Expand Down Expand Up @@ -793,7 +793,7 @@ impl OtlpGrpcTracesService {
index_id: String,
doc_batch: DocBatchV2,
) -> Result<(), tonic::Status> {
store_helper(
ingest_doc_batch_v2(
self.ingest_router.clone(),
index_id,
doc_batch,
Expand Down

0 comments on commit 51122c4

Please sign in to comment.