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

com.launchdarkly.sdk.server.DiagnosticId Maven / Gradle / Ivy

There is a newer version: 7.5.0
Show newest version
package com.launchdarkly.sdk.server;

import java.util.UUID;

class DiagnosticId {

  final String diagnosticId = UUID.randomUUID().toString();
  final String sdkKeySuffix;

  DiagnosticId(String sdkKey) {
    if (sdkKey == null) {
      sdkKeySuffix = null;
    } else {
      this.sdkKeySuffix = sdkKey.substring(Math.max(0, sdkKey.length() - 6));
    }
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy