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

Breadcrumb

  1. Drupal Core 11.1.x

ConsoleSpanExporterFactory.php

Namespace

OpenTelemetry\SDK\Trace\SpanExporter

File

vendor/open-telemetry/sdk/Trace/SpanExporter/ConsoleSpanExporterFactory.php

View source
<?php

declare (strict_types=1);
namespace OpenTelemetry\SDK\Trace\SpanExporter;

use OpenTelemetry\SDK\Registry;
use OpenTelemetry\SDK\Trace\SpanExporterInterface;
class ConsoleSpanExporterFactory implements SpanExporterFactoryInterface {
    public function create() : SpanExporterInterface {
        $transport = Registry::transportFactory('stream')->create('php://stdout', 'application/json');
        return new ConsoleSpanExporter($transport);
    }

}

Classes

Title Deprecated Summary
ConsoleSpanExporterFactory

API Navigation

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