value format, key must be a string and tag must be either * a string, a boolean value, or a numeric type. * * If the span is already finished, a warning should be logged. * * @param array $fields * @param int|float|DateTimeInterface $timestamp * @return void */ public function log(array $fields = [], $timestamp = null): void; /** * Adds a baggage item to the SpanContext which is immutable so it is required to use * SpanContext::withBaggageItem to get a new one. * * If the span is already finished, a warning should be logged. * * @param string $key * @param string $value * @return void */ public function addBaggageItem(string $key, string $value): void; /** * @param string $key * @return string|null returns null when there is not a item under the provided key */ public function getBaggageItem(string $key): ?string; }