File manager - Edit - /var/www/html/homologBancodetalentos/app/Support/TalentBank/Observability.php
Back
<?php namespace App\Support\TalentBank; use Illuminate\Support\Facades\Log; final class Observability { /** * @param array<string, mixed> $context */ public static function event(string $event, array $context = [], string $level = 'info'): void { $channel = (string) config('talent_bank.observability_channel', 'stack'); $payload = array_merge(IntegrationLog::baseContext(), [ 'domain' => 'talent_bank', 'event' => $event, ], $context); Log::channel($channel)->log($level, 'talent_bank.'.$event, $payload); } /** * @param array<string, mixed> $context */ public static function metric(string $name, float|int $value, array $context = []): void { self::event('metric.'.$name, array_merge($context, [ 'metric_name' => $name, 'metric_value' => $value, ])); } }
| ver. 1.4 |
Github
|
.
| PHP 8.3.28 | Generation time: 0.02 |
proxy
|
phpinfo
|
Settings