Skip to content

Commit

Permalink
Remove debug log enabled check
Browse files Browse the repository at this point in the history
Signed-off-by: Joao Grassi <[email protected]>
  • Loading branch information
joaopgrassi committed Jan 3, 2025
1 parent 49cad35 commit 00dfe76
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions source/extensions/tracers/opentelemetry/trace_exporter.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,6 @@ class OpenTelemetryTraceExporter : public Logger::Loggable<Logger::Id::tracing>
* @param request The protobuf-encoded OTLP trace request.
*/
void logExportedSpans(const ExportTraceServiceRequest& request) {
if (!ENVOY_LOG_COMP_LEVEL_FINE_GRAIN_IF(ENVOY_LOGGER(), debug)) {
return;
}

if (request.resource_spans(0).has_resource()) {
if (request.resource_spans(0).scope_spans(0).has_scope()) {
ENVOY_LOG(debug, "Number of exported spans: {}",
Expand Down

0 comments on commit 00dfe76

Please sign in to comment.