| Server IP : 35.80.110.71 / Your IP : 216.73.216.221 Web Server : Apache/2.4.58 (Ubuntu) System : Linux ip-172-31-21-44 6.17.0-1019-aws #19~24.04.1-Ubuntu SMP Tue Jun 23 18:53:06 UTC 2026 x86_64 User : ubuntu ( 1000) PHP Version : 8.3.31 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /var/www/client-portal-laravel/releases/20260626120707/config/ |
Upload File : |
<?php
declare(strict_types=1);
/**
* Plan 273 §E.1 — OpenTelemetry configuration.
*
* The default `disabled` driver is a no-op so dev + tests don't fan
* out spans to a real exporter. In production the `honeycomb` driver
* wires the OTLP HTTP exporter at the Honeycomb endpoint.
*
* ADR-0012 records the vendor decision (Honeycomb over Datadog) and
* the SLO budget; revisit at 10x MRR.
*/
return [
'driver' => env('TELEMETRY_DRIVER', 'disabled'),
'service' => [
'name' => env('TELEMETRY_SERVICE_NAME', 'client-portal-laravel'),
'namespace' => env('TELEMETRY_SERVICE_NAMESPACE', 'websites'),
'version' => env('TELEMETRY_SERVICE_VERSION', null),
'environment' => env('TELEMETRY_ENV', env('APP_ENV', 'production')),
],
/*
| Head-based sampler probability. 1.0 in non-prod (capture everything),
| 0.1 in prod (10% sample of normal traffic). Errors are force-sampled
| by the tail processor in the middleware regardless of head rate.
*/
'sample_rate' => (float) env('TELEMETRY_SAMPLE_RATE', 0.1),
'honeycomb' => [
// OTLP HTTP endpoint -- Honeycomb's official ingest URL.
'endpoint' => env('TELEMETRY_HONEYCOMB_ENDPOINT', 'https://api.honeycomb.io/v1/traces'),
// Team API key. Land via SecretsManager in prod
// (manifest: prod/websites/honeycomb/api_key).
'api_key' => env('TELEMETRY_HONEYCOMB_API_KEY'),
// Honeycomb dataset name. Convention: <service>-<env>.
'dataset' => env('TELEMETRY_HONEYCOMB_DATASET', 'websites-prod'),
],
];