Class SpanName


  • @BetaApi("Surface for tracing is not yet stable")
    @InternalApi("For google-cloud-java client use only")
    public abstract class SpanName
    extends java.lang.Object
    A value class to represent the name of the operation in an ApiTracer.
    • Constructor Summary

      Constructors 
      Constructor Description
      SpanName()  
    • Method Summary

      All Methods Static Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      abstract java.lang.String getClientName()
      The name of the client.
      abstract java.lang.String getMethodName()
      The name of the logical operation being traced.
      static SpanName of​(java.lang.String clientName, java.lang.String methodName)
      Creates a new instance of the name.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • SpanName

        public SpanName()
    • Method Detail

      • of

        public static SpanName of​(java.lang.String clientName,
                                  java.lang.String methodName)
        Creates a new instance of the name.
        Parameters:
        clientName - The name of the client. In general this will be GAPIC generated client name. However, in some cases, when the GAPIC generated client is wrapped, this will be overridden to specify the manually written wrapper's name.
        methodName - The name of the logical operation being traced.
      • getClientName

        public abstract java.lang.String getClientName()
        The name of the client. ie BigtableData
      • getMethodName

        public abstract java.lang.String getMethodName()
        The name of the logical operation being traced. ie. ReadRows.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object