PluginProbe
Elementor Website Builder – more than just a page builder / 4.3.0
Elementor Website Builder – more than just a page builder v4.3.0
4.3.2 4.3.1 4.3.0 4.3.0-beta3 4.3.0-beta2 4.3.0-beta1 4.2.4 4.2.3 4.2.2 4.2.1 4.2.0 4.1.5 4.2.0-beta2 4.2.0-dev2 4.2.0-beta1 4.1.4 4.1.3 4.1.2 4.1.1 4.1.0 4.1.0-beta3 4.1.0-dev3 4.0.9 4.1.0-beta2 4.1.0-dev2 All 455 releases
elementor / vendor / wordpress / mcp-adapter / includes / Infrastructure / Observability / NullMcpObservabilityHandler.php

NullMcpObservabilityHandler.php in Elementor Website Builder – more than just a page builder 4.3.0, at vendor/wordpress/mcp-adapter/includes/Infrastructure/Observability/NullMcpObservabilityHandler.php

37 lines 1.0 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * NullMcpObservabilityHandler class for handling MCP observability without tracking.
4 *
5 * @package McpAdapter
6 */
7
8 declare( strict_types=1 );
9
10 namespace WP\MCP\Infrastructure\Observability;
11
12 /**
13 * Class NullMcpObservabilityHandler
14 *
15 * This class handles MCP observability by doing nothing. It is used when no
16 * observability tracking is desired, providing zero overhead.
17 *
18 * @package WP\MCP\ObservabilityHandlers
19 */
20 class NullMcpObservabilityHandler implements Contracts\McpObservabilityHandlerInterface {
21
22 /**
23 * Emit a countable event for tracking with optional timing data.
24 *
25 * This method does nothing and is used when no observability tracking is desired.
26 *
27 * @param string $event The event name to record.
28 * @param array $tags Optional tags to attach to the event.
29 * @param float|null $duration_ms Optional duration in milliseconds for timing measurements.
30 *
31 * @return void
32 */
33 public function record_event( string $event, array $tags = array(), ?float $duration_ms = null ): void {
34 // Do nothing.
35 }
36 }
37