function TraceStateInterface::with
Return a new TraceState object that inherits from this TraceState and contains the given key value pair.
Return value
1 method overrides TraceStateInterface::with()
- TraceState::with in vendor/
open-telemetry/ api/ Trace/ TraceState.php - Return a new TraceState object that inherits from this TraceState and contains the given key value pair.
File
-
vendor/
open-telemetry/ api/ Trace/ TraceStateInterface.php, line 29
Class
- TraceStateInterface
- TraceState parses and stores the tracestate header as an immutable list of string key/value pairs. It provides the following operations following the rules described in the W3C Trace Context specification:
Namespace
OpenTelemetry\API\TraceCode
public function with(string $key, string $value) : TraceStateInterface;