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

datadog.trace.api.DDTraceApiInfo Maven / Gradle / Ivy

There is a newer version: 1.42.2
Show newest version
package datadog.trace.api;

import java.io.BufferedReader;
import java.io.InputStreamReader;

public class DDTraceApiInfo {
  public static final String VERSION;

  static {
    String v;
    try (final BufferedReader br =
        new BufferedReader(
            new InputStreamReader(
                DDTraceApiInfo.class.getResourceAsStream("/dd-trace-api.version"), "UTF-8"))) {
      final StringBuilder sb = new StringBuilder();

      for (int c = br.read(); c != -1; c = br.read()) {
        sb.append((char) c);
      }

      v = sb.toString().trim();
    } catch (final Exception e) {
      v = "unknown";
    }
    VERSION = v;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy