SigNoz/sample-php-app

error while installing locally

zriyansh opened this issue · 0 comments

I get the following error when I run php src/collector-http.php

priyanshkhodiyar@Priyanshs-MacBook-Air sample-php-app % php src/collector-http.php
Endpoint: http://stagingapp.signoz.io:4318
Service Name: php-example-app
Insecure: true
Starting OTLP example[2023-07-19T19:10:55.362827+00:00] php-otlp-example.ERROR: Export failure {"exception":"[object] (RuntimeException(code: 404): Not Found at /Users/priyanshkhodiyar/Desktop/projects/sample-php-app/vendor/open-telemetry/opentelemetry/src/SDK/Common/Export/Http/PsrTransport.php:106)","source":"OpenTelemetry\\Contrib\\Otlp\\SpanExporter"} []
[2023-07-19T19:10:55.670631+00:00] php-otlp-example.ERROR: Export failure {"exception":"[object] (RuntimeException(code: 404): Not Found at /Users/priyanshkhodiyar/Desktop/projects/sample-php-app/vendor/open-telemetry/opentelemetry/src/SDK/Common/Export/Http/PsrTransport.php:106)","source":"OpenTelemetry\\Contrib\\Otlp\\SpanExporter"} []
[2023-07-19T19:10:55.978976+00:00] php-otlp-example.ERROR: Export failure {"exception":"[object] (RuntimeException(code: 404): Not Found at /Users/priyanshkhodiyar/Desktop/projects/sample-php-app/vendor/open-telemetry/opentelemetry/src/SDK/Common/Export/Http/PsrTransport.php:106)","source":"OpenTelemetry\\Contrib\\Otlp\\SpanExporter"} []
[2023-07-19T19:10:56.286830+00:00] php-otlp-example.ERROR: Export failure {"exception":"[object] (RuntimeException(code: 404): Not Found at /Users/priyanshkhodiyar/Desktop/projects/sample-php-app/vendor/open-telemetry/opentelemetry/src/SDK/Common/Export/Http/PsrTransport.php:106)","source":"OpenTelemetry\\Contrib\\Otlp\\SpanExporter"} []

OTLP example complete!  

and the following error when i run php src/collector-grpc.php

priyanshkhodiyar@Priyanshs-MacBook-Air sample-php-app % php src/collector-grpc.php
Endpoint: http://stagingapp.signoz.io:4318
Service Name: php-example-app
Insecure: true
PHP Fatal error:  Uncaught Error: Class "Grpc\ChannelCredentials" not found in /Users/priyanshkhodiyar/Desktop/projects/sample-php-app/vendor/open-telemetry/opentelemetry/src/Contrib/Grpc/GrpcTransportFactory.php:66
Stack trace:
#0 /Users/priyanshkhodiyar/Desktop/projects/sample-php-app/src/collector-grpc.php(25): OpenTelemetry\Contrib\Grpc\GrpcTransportFactory->create('http://staginga...')
#1 {main}
  thrown in /Users/priyanshkhodiyar/Desktop/projects/sample-php-app/vendor/open-telemetry/opentelemetry/src/Contrib/Grpc/GrpcTransportFactory.php on line 66

Fatal error: Uncaught Error: Class "Grpc\ChannelCredentials" not found in /Users/priyanshkhodiyar/Desktop/projects/sample-php-app/vendor/open-telemetry/opentelemetry/src/Contrib/Grpc/GrpcTransportFactory.php:66
Stack trace:
#0 /Users/priyanshkhodiyar/Desktop/projects/sample-php-app/src/collector-grpc.php(25): OpenTelemetry\Contrib\Grpc\GrpcTransportFactory->create('http://staginga...')
#1 {main}
  thrown in /Users/priyanshkhodiyar/Desktop/projects/sample-php-app/vendor/open-telemetry/opentelemetry/src/Contrib/Grpc/GrpcTransportFactory.php on line 66
priyanshkhodiyar@Priyanshs-MacBook-Air sample-php-app % ne

I did not change any Otel versions.

and the command sudo pecl install grpc takes forever.

system: macOS M1 2020, v13,2