Releases: elastic/elastic-transport-php
Release 8.10.0
Added the support for OpenTelemetry
We introduced in #27 and 2be33cd the support of OpenTelemetry for the HTTP send request. At the moment, the support is only for synchronous HTTP call.
To enable the OpenTelemetry you need to set the ENV variable OTEL_PHP_INSTRUMENTATION_ELASTICSEARCH_ENABLED
to true.
We added the support natively in the Transport:sendRequest()
function. By default, the Transport create a span from a Tracer provider (e.g. Global) with the following attributes:
http.request.method
url.full
server.address
server.port
If the $request
sent using Transport::sendRequest($request)
is a PSR-7 ServerRequest we get the attribute with name otel-elastic-transport
and we pass to the OTel span as additional attributes. In this way, libraries like elasticsearch-php
can inject specific OTel attributes (e.g. db.operation.name
).
We created an OpenTelemetry class to provide all the configuration.
Release 8.8.0
Release 8.7.0
This release contains the following new feature:
- Allow installation of psr/http-message v2.0 #17
Release 8.6.0
Release 8.5.0
This release contains the following fix:
- Fixed the full body message in debug() log for Transport #11
Release 8.4.0
Release 8.3.0
Release created to be compatible with 8.3 Elastic PHP clients.
Release 8.2.0
Release created to be compatible with 8.2 Elastic PHP clients.
Release 7.17.0
Release created to be compatible with 7.17 Elastic PHP clients.
Release 8.1.0
Release created to be compatible with 8.1 Elastic PHP clients.