Returns the value to which the specified key is mapped, or undefined if
this map contains no mapping for the key.
with which the specified value is to be associated.
the value to which the specified key is mapped, or undefined if
this map contains no mapping for the key.
Serializes the TraceState to a list as defined below. The list is a series of list-members
separated by commas ,, and a list-member is a key/value pair separated by an equals sign =.
Spaces and horizontal tabs surrounding list-members are ignored. There can be a maximum of 32
list-members in a list.
If the resulting serialization is limited to no longer than 512 bytes, if the combination of keys and values exceeds this limit, the serialization will be truncated to the last key/value pair that fits within the limit. The serialization will be returned as a string.
This is different from the IW3cTraceState serialization which returns an array of strings where each string is limited to 512 bytes and the array is limited to 32 strings. Thus the OpenTelemetry serialization will only return the first single string that fits within the limie.
the serialized string.
Create a new TraceState which inherits from this TraceState and has the given key set. The new entry will always be added in the front of the list of states.
key of the TraceState entry.
value of the TraceState entry.
Return a new TraceState which inherits from this TraceState but does not contain the given key.
the key for the TraceState entry to be removed.
Provides an OpenTelemetry compatible Interface for the Open Telemetry Api (1.9.0) TraceState type.
The TraceState is a list of key/value pairs that are used to propagate vendor-specific trace information across different distributed tracing systems. The TraceState is used to store the state of a trace across different distributed tracing systems, and it is used to ensure that the trace information is consistent across different systems.
Instances of TraceState are immutable, and the methods on this interface return a new instance of TraceState with the updated values.