diff options
-rw-r--r-- | PHPINFO | 5 | ||||
-rw-r--r-- | REFLECTION | 11 | ||||
-rw-r--r-- | php-pecl-opentelemetry.spec | 40 |
3 files changed, 25 insertions, 31 deletions
@@ -2,9 +2,12 @@ opentelemetry opentelemetry hooks => enabled -extension version => 1.0.3 +extension version => 1.1.0beta2 Directive => Local Value => Master Value opentelemetry.conflicts => no value => no value opentelemetry.validate_hook_functions => On => On opentelemetry.allow_stack_extension => Off => Off +opentelemetry.attr_hooks_enabled => Off => Off +opentelemetry.attr_pre_handler_function => OpenTelemetry\API\Instrumentation\WithSpanHandler::pre => OpenTelemetry\API\Instrumentation\WithSpanHandler::pre +opentelemetry.attr_post_handler_function => OpenTelemetry\API\Instrumentation\WithSpanHandler::post => OpenTelemetry\API\Instrumentation\WithSpanHandler::post @@ -1,4 +1,4 @@ -Extension [ <persistent> extension #83 opentelemetry version 1.0.3 ] { +Extension [ <persistent> extension #87 opentelemetry version 1.1.0beta2 ] { - INI { Entry [ opentelemetry.conflicts <ALL> ] @@ -10,6 +10,15 @@ Extension [ <persistent> extension #83 opentelemetry version 1.0.3 ] { Entry [ opentelemetry.allow_stack_extension <ALL> ] Current = 'Off' } + Entry [ opentelemetry.attr_hooks_enabled <ALL> ] + Current = 'Off' + } + Entry [ opentelemetry.attr_pre_handler_function <ALL> ] + Current = 'OpenTelemetry\API\Instrumentation\WithSpanHandler::pre' + } + Entry [ opentelemetry.attr_post_handler_function <ALL> ] + Current = 'OpenTelemetry\API\Instrumentation\WithSpanHandler::post' + } } - Functions { diff --git a/php-pecl-opentelemetry.spec b/php-pecl-opentelemetry.spec index 32c0bb0..7195a6c 100644 --- a/php-pecl-opentelemetry.spec +++ b/php-pecl-opentelemetry.spec @@ -14,8 +14,8 @@ %global pecl_name opentelemetry %global ini_name 40-%{pecl_name}.ini -%global upstream_version 1.0.3 -#global upstream_prever beta1 +%global upstream_version 1.1.0 +%global upstream_prever beta2 %global upstream_lower %(echo %{upstream_prever} | tr '[:upper:]' '[:lower:]') %global sources %{pecl_name}-%{upstream_version}%{?upstream_prever} %global _configure ../%{sources}/configure @@ -61,14 +61,10 @@ Package built for PHP %(%{__php} -r 'echo PHP_MAJOR_VERSION.".".PHP_MINOR_VERSIO # Don't install tests sed -e 's/role="test"/role="src"/' \ - %{?_licensedir:-e '/LICENSE/s/role="doc"/role="src"/' } \ + -e '/LICENSE/s/role="doc"/role="src"/' \ -i package.xml cd %{sources} -%if 0%{?rhel} == 7 -sed -e 's/-Werror//' -i config.m4 -%endif - : Sanity check, really often broken extver=$(sed -n '/#define PHP_OPENTELEMETRY_VERSION /{s/.* "//;s/".*$//;p}' php_%{pecl_name}.h) if test "x${extver}" != "x%{upstream_version}%{?upstream_prever}"; then @@ -92,6 +88,9 @@ extension=%{pecl_name}.so ;opentelemetry.conflicts = 'blackfire' ;opentelemetry.validate_hook_functions = On ;opentelemetry.allow_stack_extension = Off +;opentelemetry.attr_hooks_enabled = Off +;opentelemetry.attr_pre_handler_function =OpenTelemetry\API\Instrumentation\WithSpanHandler::pre +;opentelemetry.attr_post_handler_function = OpenTelemetry\API\Instrumentation\WithSpanHandler::post EOF @@ -165,30 +164,9 @@ REPORT_EXIT_STATUS=1 \ %endif - -%if 0%{?fedora} < 24 && 0%{?rhel} < 8 -# when pear installed alone, after us -%triggerin -- %{?scl_prefix}php-pear -if [ -x %{__pecl} ] ; then - %{pecl_install} %{pecl_xmldir}/%{name}.xml >/dev/null || : -fi - -# posttrans as pear can be installed after us -%posttrans -if [ -x %{__pecl} ] ; then - %{pecl_install} %{pecl_xmldir}/%{name}.xml >/dev/null || : -fi - -%postun -if [ $1 -eq 0 -a -x %{__pecl} ] ; then - %{pecl_uninstall} %{pecl_name} >/dev/null || : -fi -%endif - - %files #%%doc %%{pecl_docdir}/%%{pecl_name} -%{?_licensedir:%license %{sources}/LICENSE*} +%license %{sources}/LICENSE* %{pecl_xmldir}/%{name}.xml %config(noreplace) %{php_inidir}/%{ini_name} @@ -201,6 +179,10 @@ fi %changelog +* Wed Sep 4 2024 Remi Collet <remi@remirepo.net> - 1.1.0~beta2-1 +- update to 1.1.0beta2 +- open https://github.com/open-telemetry/opentelemetry-php/issues/1376 PHP 8.4 compatibility + * Sat May 4 2024 Remi Collet <remi@remirepo.net> - 1.0.3-1 - update to 1.0.3 |