KeyValue
        
        extends Message
    
    
            
            in package
            
        
    
    
    
KeyValue is a key-value pair that is used to store Span attributes, Link attributes, etc.
Generated from protobuf message opentelemetry.proto.common.v1.KeyValue
Table of Contents
Properties
- $key : mixed
- Generated from protobuf field <code>string key = 1;</code>
- $value : mixed
- Generated from protobuf field <code>.opentelemetry.proto.common.v1.AnyValue value = 2;</code>
Methods
- __construct() : mixed
- Constructor.
- clearValue() : mixed
- getKey() : string
- Generated from protobuf field <code>string key = 1;</code>
- getValue() : AnyValue|null
- Generated from protobuf field <code>.opentelemetry.proto.common.v1.AnyValue value = 2;</code>
- hasValue() : mixed
- setKey() : $this
- Generated from protobuf field <code>string key = 1;</code>
- setValue() : $this
- Generated from protobuf field <code>.opentelemetry.proto.common.v1.AnyValue value = 2;</code>
Properties
$key
Generated from protobuf field <code>string key = 1;</code>
        protected
            mixed
    $key
     = ''
    
    
    
    
    
$value
Generated from protobuf field <code>.opentelemetry.proto.common.v1.AnyValue value = 2;</code>
        protected
            mixed
    $value
     = null
    
    
    
    
    
Methods
__construct()
Constructor.
    public
                    __construct([array<string|int, mixed> $data = NULL ]) : mixed
    Parameters
- $data : array<string|int, mixed> = NULL
- 
                    { Optional. Data for populating the Message object. @type string $key @type \Opentelemetry\Proto\Common\V1\AnyValue $value} 
clearValue()
    public
                    clearValue() : mixed
    getKey()
Generated from protobuf field <code>string key = 1;</code>
    public
                    getKey() : string
    Return values
stringgetValue()
Generated from protobuf field <code>.opentelemetry.proto.common.v1.AnyValue value = 2;</code>
    public
                    getValue() : AnyValue|null
    Return values
AnyValue|nullhasValue()
    public
                    hasValue() : mixed
    setKey()
Generated from protobuf field <code>string key = 1;</code>
    public
                    setKey(string $var) : $this
    Parameters
- $var : string
Return values
$thissetValue()
Generated from protobuf field <code>.opentelemetry.proto.common.v1.AnyValue value = 2;</code>
    public
                    setValue(AnyValue $var) : $this
    Parameters
- $var : AnyValue