Class: Google::Cloud::Trace::SpanKind
- Inherits:
 - 
      Object
      
        
- Object
 - Google::Cloud::Trace::SpanKind
 
 
- Defined in:
 - lib/google/cloud/trace/span_kind.rb
 
Overview
SpanKind represents values for the "kind" field of span.
Constant Summary collapse
- UNSPECIFIED =
          
The
:SPAN_KIND_UNSPECIFIEDvalue new :SPAN_KIND_UNSPECIFIED
- RPC_SERVER =
          
The
:RPC_SERVERvalue new :RPC_SERVER
- RPC_CLIENT =
          
The
:RPC_CLIENTvalue new :RPC_CLIENT
- @@mapping =
 {}
Class Method Summary collapse
- 
  
    
      .get(name)  ⇒ SpanKind 
    
    
  
  
  
  
  
  
  
  
  
    
Returns the SpanKind given a symbol or string representation.
 
Instance Method Summary collapse
- 
  
    
      #to_s  ⇒ String 
    
    
  
  
  
  
  
  
  
  
  
    
Returns the string representation of this SpanKind.
 - 
  
    
      #to_sym  ⇒ Symbol 
    
    
  
  
  
  
  
  
  
  
  
    
Returns the symbolic representation of this SpanKind.
 
Class Method Details
.get(name) ⇒ SpanKind
Returns the SpanKind given a symbol or string representation.
      74 75 76  | 
    
      # File 'lib/google/cloud/trace/span_kind.rb', line 74 def self.get name @@mapping[name.to_sym] end  | 
  
Instance Method Details
#to_s ⇒ String
Returns the string representation of this SpanKind
      64 65 66  | 
    
      # File 'lib/google/cloud/trace/span_kind.rb', line 64 def to_s to_sym.to_s end  | 
  
#to_sym ⇒ Symbol
Returns the symbolic representation of this SpanKind
      55 56 57  | 
    
      # File 'lib/google/cloud/trace/span_kind.rb', line 55 def to_sym @name end  |