All Projects → SobanVuex → php-newrelic

SobanVuex / php-newrelic

Licence: MIT license
PHP Library for New Relic Agent

Programming Languages

PHP
23972 projects - #3 most used programming language

Projects that are alternatives of or similar to php-newrelic

k8s-metadata-injection
Kubernetes metadata injection for New Relic APM to make a linkage between APM and Infrastructure data.
Stars: ✭ 19 (+35.71%)
Mutual labels:  newrelic, apm
Datav
📊https://datav.io is a modern APM, provide observability for your business, application and infrastructure. It's also a lightweight alternative to Grafana.
Stars: ✭ 2,757 (+19592.86%)
Mutual labels:  newrelic, apm
nr1-status-pages
NR1 Status Pages allows you to collect and display the statuses of key dependencies in one place.
Stars: ✭ 31 (+121.43%)
Mutual labels:  newrelic
atom-php-cs-fixer
Run the 'PHP Coding Standards Fixer' within Atom
Stars: ✭ 30 (+114.29%)
Mutual labels:  apm
nrql-simple
nrql-simple provides a convenient way to interact with the New Relic Insights query API.
Stars: ✭ 13 (-7.14%)
Mutual labels:  newrelic
OneAgent-SDK-for-dotnet
Enables custom tracing of .NET applications in Dynatrace
Stars: ✭ 14 (+0%)
Mutual labels:  apm
ilogtail
Fast and Lightweight Observability Data Collector
Stars: ✭ 1,035 (+7292.86%)
Mutual labels:  apm
atom-gitkraken
Open the current @atom project in GitKraken.
Stars: ✭ 12 (-14.29%)
Mutual labels:  apm
datadog-trace-agent
Datadog Trace Agent archive (pre-6.10.0)
Stars: ✭ 70 (+400%)
Mutual labels:  apm
tester
Test runner for the Atom Editor.
Stars: ✭ 38 (+171.43%)
Mutual labels:  apm
lumen-newrelic
New Relic instrumentation for the Lumen framework
Stars: ✭ 26 (+85.71%)
Mutual labels:  newrelic
Uatu
Android方法调用跟踪 ; 方法耗时统计 ; 方法调用参数以及返回值跟踪 ; 方法调用替换;方法hook
Stars: ✭ 93 (+564.29%)
Mutual labels:  apm
skywalking-python
The Python agent for Apache SkyWalking
Stars: ✭ 152 (+985.71%)
Mutual labels:  apm
pm2-io-apm
PM2.io APM for Node.JS
Stars: ✭ 131 (+835.71%)
Mutual labels:  apm
k8s-webhook-cert-manager
Generate certificate suitable for use with any Kubernetes Mutating Webhook.
Stars: ✭ 59 (+321.43%)
Mutual labels:  newrelic
uptrace
Open source APM: OpenTelemetry traces, metrics, and logs
Stars: ✭ 1,187 (+8378.57%)
Mutual labels:  apm
trace-cocoa-sdk
Catch bugs before they reach production — get detailed crash reports and monitor how your app is performing across the entire install base.
Stars: ✭ 15 (+7.14%)
Mutual labels:  apm
newrelic-istio-adapter
An Istio Mixer adapter to send telemetry data to New Relic.
Stars: ✭ 15 (+7.14%)
Mutual labels:  newrelic
micrometer-registry-newrelic
Micrometer registry implementation that sends data to New Relic as dimensional metrics.
Stars: ✭ 27 (+92.86%)
Mutual labels:  newrelic
elastic-apm-mule3-agent
Elastic APM agent for Mule 3.x
Stars: ✭ 18 (+28.57%)
Mutual labels:  apm

PHP NewRelic

Source Code Packagist Version Build Status Coverage Status Quality Score SensioLabs Insight Software License Total Downloads

OOP Wrapper for NewRelic's PHP Agent.

Installation

To install, use composer:

composer require SobanVuex/php-newrelic:~2.0

Usage

Use the Agent directly or with your own DI with \SobanVuex\NewRelic\Agent.

Examples

Setting the application name

$newrelic = new SobanVuex\NewRelic\Agent('MyApp');
// or
$newrelic = new SobanVuex\NewRelic\Agent('MyApp1;MyApp2');
// or
$newrelic = new SobanVuex\NewRelic\Agent(['MyApp1', 'MyApp2']);
$newrelic = new SobanVuex\NewRelic\Agent();
$newrelic->setAppname('MyApp');
// or
$newrelic->setAppname('MyApp1;MyApp2');
// or
$newrelic->setAppname(['MyApp1', 'MyApp2']);

Mark a transaction as a background job

$newrelic = new SobanVuex\NewRelic\Agent();
$newrelic->backgroundJob();
// or
$newrelic->backgroundJob(PHP_SAPI == 'cli');

Name a transaction

$newrelic = new SobanVuex\NewRelic\Agent();
$newrelic->nameTransaction('myController/myAction');

Testing

$ ./vendor/bin/phpunit

Contributing

Please see CONTRIBUTING for details.

Credits

License

The MIT License (MIT). Please see License File for more information.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].