Skip to content

Commit

Permalink
Merge pull request #18406 from christian-morin/jaeger-reporter-update
Browse files Browse the repository at this point in the history
Update Jaeger reporter to use logger
  • Loading branch information
gsmet authored Jul 12, 2021
2 parents 1abc588 + 34a5492 commit ac7eced
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
package io.quarkus.jaeger.runtime.graal;

import org.jboss.logging.Logger;

import com.oracle.svm.core.annotate.Substitute;
import com.oracle.svm.core.annotate.TargetClass;

Expand All @@ -10,6 +12,8 @@
@TargetClass(className = "io.jaegertracing.internal.reporters.LoggingReporter")
final public class Target_LoggingReporter implements Reporter {

private static final Logger LOG = Logger.getLogger(Target_LoggingReporter.class);

@Substitute
public Target_LoggingReporter() {

Expand All @@ -18,7 +22,7 @@ public Target_LoggingReporter() {
@Substitute
@Override
public void report(JaegerSpan span) {
System.err.println("--- not logging: " + span);
LOG.infof("Span reported: %s", span);
}

@Substitute
Expand Down

0 comments on commit ac7eced

Please sign in to comment.