Skip to content
Search
DSL · Pg query

postgresql_telemetry_config

Definition

/**
 * Create telemetry configuration for PostgreSQL client.
 *
 * Bundles telemetry instance, clock, and options needed to instrument a PostgreSQL client.
 *
 * @param Telemetry $telemetry The telemetry instance
 * @param ClockInterface $clock Clock for timestamps
 * @param null|PostgreSqlTelemetryOptions $options Telemetry options (default: all enabled)
 *
 * @example
 * $config = postgresql_telemetry_config(
 *     telemetry(resource(['service.name' => 'my-app'])),
 *     new SystemClock(),
 * );
 */
postgresql_telemetry_config(Telemetry $telemetry, ClockInterface $clock, ?PostgreSqlTelemetryOptions $options) : PostgreSqlTelemetryConfig

Contributors

Built in the open.

Join us on GitHub
scroll back to top