All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.datadoghq.trace.writer.LoggingWriter Maven / Gradle / Ivy

There is a newer version: 0.2.12
Show newest version
package com.datadoghq.trace.writer;

import com.datadoghq.trace.DDBaseSpan;
import com.datadoghq.trace.Service;
import com.google.auto.service.AutoService;
import java.util.List;
import java.util.Map;
import lombok.extern.slf4j.Slf4j;

@Slf4j
@AutoService(Writer.class)
public class LoggingWriter implements Writer {

  @Override
  public void write(final List> trace) {
    log.info("write(trace): {}", trace);
  }

  @Override
  public void writeServices(final Map services) {
    log.info("additional service information: {}", services.values());
  }

  @Override
  public void close() {
    log.info("close()");
  }

  @Override
  public void start() {
    log.info("start()");
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy