Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. TraceStateInterface.php

function TraceStateInterface::with

Return a new TraceState object that inherits from this TraceState and contains the given key value pair.

Return value

TraceStateInterface

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\Trace

Code

public function with(string $key, string $value) : TraceStateInterface;

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal