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

Breadcrumb

  1. Drupal Core 11.1.x

NoopExporter.php

Namespace

OpenTelemetry\SDK\Logs\Exporter

File

vendor/open-telemetry/sdk/Logs/Exporter/NoopExporter.php

View source
<?php

declare (strict_types=1);
namespace OpenTelemetry\SDK\Logs\Exporter;

use OpenTelemetry\SDK\Common\Future\CancellationInterface;
use OpenTelemetry\SDK\Common\Future\CompletedFuture;
use OpenTelemetry\SDK\Common\Future\FutureInterface;
use OpenTelemetry\SDK\Logs\LogRecordExporterInterface;
class NoopExporter implements LogRecordExporterInterface {
    public function export(iterable $batch, ?CancellationInterface $cancellation = null) : FutureInterface {
        return new CompletedFuture(true);
    }
    public function forceFlush(?CancellationInterface $cancellation = null) : bool {
        return true;
    }
    public function shutdown(?CancellationInterface $cancellation = null) : bool {
        return true;
    }

}

Classes

Title Deprecated Summary
NoopExporter

API Navigation

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