Disable gRPC protocol if the required library is missing

Created on 6 September 2023, about 1 year ago
Updated 10 October 2023, about 1 year ago

Problem/Motivation

To make gRPC you should have the "ext-grpc" PHP extension enabled, and install the transport via:

composer require open-telemetry/transport-grpc

So, now, without these requirements, the module just throw a fatal error:
RuntimeException: Transport factory not defined for protocol: grpc in OpenTelemetry\SDK\Registry::transportFactory() (line 162 of /var/www/html/vendor/open-telemetry/sdk/Registry.php).

So, will be good to provide a workaround to not throw a fatal error without it, but just disable the gRPC option.

Feature request
Status

Fixed

Version

1.0

Component

Code

Created by

🇦🇲Armenia murz Yerevan, Armenia

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024