elastic / elastic/apm-agent-php
Add support for PHP Elasticsearch client v7
- Dominant language
- PHP
- Stars
- 268
- Forks
- 86
- PR merge metrics
- No merged PRs in 30d
Description
Currently Elastic APM PHP Agent captures only low level HTTP requests made PHP Elasticsearch client.
This issue requests to enhance support for PHP Elasticsearch client and capture high level data as other Elastic APM Agents do such as:
- origin Class@method
- HTTP request payload
- Time taken
- [ ] Make sure we cover #728
### Links
The relevant Agent spec section: https://github.com/elastic/apm/blob/main/specs/agents/tracing-instrumentation-db.md#elasticsearch
Implements
- [ ] Add span. Like `/index/_search`
- [ ] Add requests type - `GET, POST, ...`
- [ ] Add url. Example - https://localhost:9200/index/_search?q=user.id:kimchy
- [ ] Add body request
- [ ] Add tests
Contributor guide
Assessment
This issue has not been assessed yet.