Class ConfluentMetricsVersion

java.lang.Object
io.confluent.telemetry.reporter.ConfluentMetricsVersion

public final class ConfluentMetricsVersion extends Object
Provides the build-time version and commit ID of the confluent-metrics library.

Values are read from a properties file embedded in the JAR at build time by the write_version_file Bazel rule. When the properties file is unavailable (e.g. running from IDE without a Bazel build), values default to "unknown".

  • Method Details

    • getVersion

      public static String getVersion()
    • getCommitId

      public static String getCommitId()