Integrating SigNoz in Laravel Application
TLDR Ravi asks for help to integrate SigNoz with Laravel, then runs into issues due to '/' being part of the service name and needs assistance configuring it. Prashant and Ankit suggest solutions but are unable to provide proper guidance on PHP.
1
1
May 28, 2023 (6 months ago)
Ravi
12:36 PMIs there any documentation to integrate SigNoz in Laravel Application?
May 29, 2023 (6 months ago)
Pranay
04:35 AMRavi
01:27 PMI finally integrated it. PHP was asking for some more additional packages to install in my mac for integrating Signoz in laraval.
Any Idea why I am getting 404
Ravi
01:40 PMMay 30, 2023 (6 months ago)
Ravi
06:45 AMPrashant
Prashant
07:28 AMValid URL for the service
laravel
should look like this: http://localhost:3301/services/laravelRavi
08:10 AMLaravel/Laravel
I goes to this URL.<http://localhost:3301/services/laravel>
This URL gives me something went wrong.If I call this API
<http://localhost:3301/api/v1/service/overview>
With Payload:
{"start":"1685367383735000000","end":"1685369183735000000","service":"laravel/laravel","step":60,"tags":[]}
I am getting 200 status with result.
It seems like API is okay with
Laravel/Laravel
but react application gives me 404Prashant
Prashant
10:11 AM/
being part of the service name.can you update the service name to include only alphanumeric characters?
cc Ankit Palash Gupta
Ravi
10:13 AMname
comes from composer.jsoncomposer.json require
/
in the name key. like ‘anyvendorName/app-name’I will check If that can be removed
Ravi
10:14 AMAnkit
10:16 AM/
cannot be part of service name todayPrashant
10:17 AMAnkit
10:17 AMOTEL_SERVICE_NAME
env or OTEL_RESOURCE_ATTRIBUTES=service.name=<app_name>
1
Ravi
10:18 AMRavi
10:19 AMOTEL_SERVICE_NAME=signoz-php-app php FILENAME.php
Can’t we set this in code somewhere
Prashant
10:20 AMputenv('OTEL_SERVICE_NAME=laravel-app');
Ravi
10:20 AMPrashant
10:21 AMAlso, could you share how you have configured it for Laravel app?
It could be helpful for others trying in the framework.
Ravi
10:22 AMpublic/index.php
1
May 31, 2023 (6 months ago)
Ravi
03:28 AMreally appreciated.
Prashant
09:05 AMRavi
09:36 AMJun 01, 2023 (6 months ago)
Ravi
03:13 AMAny updates please, what changes we can do to fix.
Jun 03, 2023 (6 months ago)
Ravi
08:32 AMPrashant
Can you please guide on this?
We are ready to deploy our app in prod to test SIgnoz
Jun 05, 2023 (6 months ago)
Prashant
12:58 PMYou can refer to OpenTelemetry official docs and GitHub repo.
• https://opentelemetry.io/docs/instrumentation/php/getting-started/
• https://github.com/open-telemetry/opentelemetry-php
SigNoz Community
Indexed 1023 threads (61% resolved)
Similar Threads
Extracting Custom Fields as Attributes from Log in SigNoz
Harald wants to have custom fields from their body parsed as attributes in the SigNoz logger. They have tried implementing suggestions from nitya-signoz and Prashant, but the issue remains unsolved due to a potential race condition encountered while executing the code. They have provided a full example using Kind for further assistance.
SigNoz Production Feedback and Improvement Suggestions
Users shared their SigNoz experiences and feedback. Issues mentioned include memory consumption, UI/UX improvements, connection difficulties, and automation limitations.
Displaying MongoDB Atlas Metrics on Signoz Dashboard
Div is unable to display MongoDB Atlas query time data on Signoz Dashboard. Ankit and vishal-signoz suggest checking compatible versions and using different packages, but the issue remains unresolved.
Troubleshooting SigNoz Auto-Instrumentation Configuration
igor is having trouble configuring auto-instrumentation for Java applications using SigNoz, with traces not appearing in the SigNoz UI. Prashant advises to check logs of the otel sidecar, use service name for endpoint, verify supported libraries, and test with telemetrygen. However, the issue still persists.
Troubleshooting Missing Otel Data in SigNoz
Brian sought help with missing Otel data in SigNoz. Srikanth asked about data sending method. Brian shared code and considered it user error.