subzerobo / elastic-apm-php-agent Goto Github PK
View Code? Open in Web Editor NEWPHP Agent for Elastic APM With Intake API v2 Support + UDP Support + ProtoBuf
License: MIT License
PHP Agent for Elastic APM With Intake API v2 Support + UDP Support + ProtoBuf
License: MIT License
Hi,
I don't know if it's version related to the used HTTP Client but I face some issues with the APM Server when I leave the host
configuration empty.
HTTP/1.1 400 Bad Request: too many Host headers
Content-Type: text/plain; charset=utf-8
Connection: close
400 Bad Request: too many Host headers
After digging in the request using TcpDump/Wireshark, it looks like the HTTP Client forces a host header when it detects an empty host header without removing the empty one. It's not really an issue with the library but I think users should be informed of this potential issue.
Hi,
Thanks for the awesome work.
I'm trying to use your library and I'm wondering where did you found that you can use Protobuf with the APM Server ?
I can't find any information in the ELK documentation. The only mention concerns logstash.
Thanks
Hello,
Your project seems promising for our system.
Could you maybe incorporate an example in the README of how to use your code?
Or is the project not completed yet?
Best regards
Hi
I face a weird error when just starting a transaction coming from Protobuf internals.
Error occurred during parsing: Error occurred during parsing: String field only accepts string value
The error happens during the transactionEvent->setRequest() call.
Here is the stack trace
Google\Protobuf\Internal\GPBDecodeException
in vendor/google/protobuf/src/Google/Protobuf/Internal/Message.php (line 1256)
in vendor/google/protobuf/src/Google/Protobuf/Internal/Message.php->parseFromJsonStream (line 742)
in vendor/subzerobo/elastic-apm-php-agent/src/Wrappers/Traits/EventTrait.php->mergeFromJsonString (line 290)
in vendor/subzerobo/elastic-apm-php-agent/src/Wrappers/Traits/EventTrait.php->setRequest (line 101)
in vendor/subzerobo/elastic-apm-php-agent/src/Wrappers/TransactionEvent.php->initContext (line 52)
in vendor/subzerobo/elastic-apm-php-agent/src/Factories/DefaultEventFactory.php->__construct (line 51)
in vendor/subzerobo/elastic-apm-php-agent/src/ApmAgent.php->createTransaction (line 132)
ApmAgent->startTransaction()
It's as if the output of json_encoding my request has a wrong structure.
Did you face this someday ?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.