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

org.infinispan.commands.TracedCommand Maven / Gradle / Ivy

There is a newer version: 15.1.0.Dev04
Show newest version
package org.infinispan.commands;

import org.infinispan.telemetry.InfinispanSpanAttributes;

public interface TracedCommand {

   default InfinispanSpanAttributes getSpanAttributes() {
      return null;
   }

   default String getOperationName() {
      if (getSpanAttributes() != null) {
         throw new IllegalStateException("getOperationName() must be implemented when getSpanAttributes() is.");
      }
      return null;
   }

   default void setSpanAttributes(InfinispanSpanAttributes attributes) {
      //no-op
   }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy