nipwaayoni/elastic-apm-php-agent
Laravel-friendly Elastic APM PHP agent for instrumenting apps and sending performance data, errors, and transactions to an Elastic APM Server. Helps monitor response times, slow queries, and exceptions with simple setup and configurable reporting.
Agent::send() method no longer returns a bool. The method now has a void return type and will rely on exceptions to communicate failure.Connector::commit() method no longer returns a bool. The method now has a void return type and will rely on exceptions to communicate failure.Span objects now default to "sync: true" indicating they are blocking. The APM schema defines sync as "Indicates whether the span was executed synchronously or asynchronously." Since most PHP execution is synchronous, this default makes sense. A new AsyncSpan class has been added to represent asynchronously executed spans.EventFactoryInterface now includes a newAsyncSpan method which must be implemented.AgentBuilder::withTagData() method is deprecated in favor of AgentBuilder::withLabelData(), in keeping with Elastic and other agents.active, appName, appVersion and backtraceLimit are all deprecated in favor of more commonly used names. See the configuration legacy options for details and alternatives.Config::get() method is deprecated in favor of named accessors. Furthermore, the behavior of the Config class to carry arbitrary key/value pairs is also deprecated. A future release will only allow known configuration keys.EventFactoryInterface has been changed, in case you are injecting your custom Event Factory, you will be affected.Transaction::setSpans, Transaction::getSpans, Transaction::getErrors and Transaction::setErrors has been removed given the schema change rendered the these method unnecessary.Agent constructor must now be a Config object rather than an array of configuration values.Agent constructor must now be a ContextCollection object rather than an array of context values.Agent constructor parameters have changed and are now required. Direct creation of an Agent is discouraged in favor of using the AgentBuilder class.Config class no longer accepts httpClient, env or cookies keys and will cause an UnsupportedConfigurationValueException if given.ContextCollection object or through the AgentBuilder class.Transaction class constructors no longer accept a start time. You must now pass the start time to the Transaction::start() method consistent with Span objects.EventFactoryInterface::newTransaction method signature has changed to remove the $start argument.How can I help you explore Laravel packages today?