<commit_before><?php

namespace OpenTracing\Wikia\Recorder;

use OpenTracing\Wikia\Recorder;
use OpenTracing\Wikia\Span;
use Psr\Log\LoggerInterface;
use Psr\Log\LogLevel;

class LoggerRecorder extends Recorder
{
    const DEFAULT_LEVEL = LogLevel::INFO;

    private $logger;

    public function __construct( LoggerInterface $logger ) {
        $this->logger = $logger;
    }

    public function log(Span $span, $timestamp, $event, $payload) {
        $spanData = $span->getData();
        $context = array_merge(
            $spanData->attributes,
            $payload ?: [],
            [
                'timestamp' => $timestamp,
                'trace_id' => $spanData->traceId,
                'span_id' => $spanData->spanId,
                'span_name' => $spanData->operationName,
            ]);
<commit_msg>Fix Recorder dependency<commit_after><?php

namespace OpenTracing\Wikia\Recorder;

use OpenTracing\Wikia\Span;
use Psr\Log\LoggerInterface;
use Psr\Log\LogLevel;

class LoggerRecorder extends Recorder
{
    const DEFAULT_LEVEL = LogLevel::INFO;

    private $logger;

    public function __construct( LoggerInterface $logger ) {
        $this->logger = $logger;
    }

    public function log(Span $span, $timestamp, $event, $payload) {
        $spanData = $span->getData();
        $context = array_merge(
            $spanData->attributes,
            $payload ?: [],
            [
                'timestamp' => $timestamp,
                'trace_id' => $spanData->traceId,
                'span_id' => $spanData->spanId,
                'span_name' => $spanData->operationName,
            ]);

{'fraction_non_alphanumeric': 0.12546353522867737, 'fraction_numerical': 0.0, 'mean_word_length': 2.3381443298969073, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 23, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3219843', 'n_tokens_mistral': 485, 'n_tokens_neox': 476, 'n_words': 96}