Skip to content

Commit

Permalink
Update apollo-router/src/plugins/telemetry/apollo_otlp_exporter.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Coenen Benjamin <benjamin.coenen@hotmail.com>
  • Loading branch information
timbotnik and bnjjj authored Apr 18, 2024
1 parent bd6e256 commit ea8c4a2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apollo-router/src/plugins/telemetry/apollo_otlp_exporter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ impl ApolloOtlpExporter {
let mut metadata = MetadataMap::new();
metadata.insert("apollo.api.key", apollo_key.to_string());

return Ok(Self {
Ok(Self {
endpoint: endpoint.clone(),
batch_config: batch_config.clone(),
apollo_key: apollo_key.to_string(),
Expand Down Expand Up @@ -61,7 +61,7 @@ impl ApolloOtlpExporter {
),
// TBD(tim): do we need another batch processor for this?
// Seems like we've already set up a batcher earlier in the pipe but not quite sure.
});
})
}

pub(crate) fn submit_trace_batch(&self, traces: Vec<Vec<LightSpanData>>) -> BoxFuture<'static, ExportResult> {
Expand Down

0 comments on commit ea8c4a2

Please sign in to comment.