elastic / elastic/apm-agent-php

Add support for PHP Elasticsearch client v7

Open
#729 0 comments 0 reactions 1 assignee Claimed by @SergeyKleyman View on GitHub
agent-php enhancement PHP specific technology priority: high triaged
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.