PHPackages                             wp-graphql/wp-graphql-insights - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. wp-graphql/wp-graphql-insights

AbandonedArchivedWordpress-plugin[API Development](/categories/api)

wp-graphql/wp-graphql-insights
==============================

Insights for WPGraphQL. Performance and error logging.

0.3.0(7y ago)124.0k6[3 issues](https://github.com/wp-graphql/wp-graphql-insights/issues)[1 PRs](https://github.com/wp-graphql/wp-graphql-insights/pulls)GPL-3.0+PHP

Since Mar 18Pushed 5y ago1 watchersCompare

[ Source](https://github.com/wp-graphql/wp-graphql-insights)[ Packagist](https://packagist.org/packages/wp-graphql/wp-graphql-insights)[ RSS](/packages/wp-graphql-wp-graphql-insights/feed)WikiDiscussions master Synced yesterday

READMEChangelog (3)DependenciesVersions (8)Used By (0)

Deprecated
==========

[](#deprecated)

The features of this plugin have been merged into WPGraphQL core.

See:

---

[![Logo](https://camo.githubusercontent.com/e9b988aab2a25256ee9e385d37c0a485d4248e2c43f78ceea67d774416890362/68747470733a2f2f7777772e77706772617068716c2e636f6d2f77702d636f6e74656e742f75706c6f6164732f323031372f30362f77706772617068716c2d6c6f676f2d65313530323831393038313834392e706e67)](https://camo.githubusercontent.com/e9b988aab2a25256ee9e385d37c0a485d4248e2c43f78ceea67d774416890362/68747470733a2f2f7777772e77706772617068716c2e636f6d2f77702d636f6e74656e742f75706c6f6164732f323031372f30362f77706772617068716c2d6c6f676f2d65313530323831393038313834392e706e67)

WPGraphQL Insights
==================

[](#wpgraphql-insights)

[![Build Status](https://camo.githubusercontent.com/621c74da8c8b9f252f3aeafff13db5f5eaf129841315f90fb6a92d86015a3156/68747470733a2f2f7472617669732d63692e6f72672f77702d6772617068716c2f77702d6772617068716c2d696e7369676874732e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/wp-graphql/wp-graphql-insights)[![Coverage Status](https://camo.githubusercontent.com/583c743c35619a15ca3cc160038ec27686b25f7ec62c6c5bba09cf207912fa6a/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f77702d6772617068716c2f77702d6772617068716c2d696e7369676874732f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/wp-graphql/wp-graphql-insights?branch=master)

This adds tracing to WPGraphQL, per the proposed Apollo Tracing Spec: .

[![Demo GIF showing usage in GraphiQL](https://github.com/wp-graphql/wp-graphql-insights/raw/master/img/wp-graphql-insights-tracing-demo.gif)](https://github.com/wp-graphql/wp-graphql-insights/blob/master/img/wp-graphql-insights-tracing-demo.gif)

Install / Activate the Plugin
-----------------------------

[](#install--activate-the-plugin)

To install/activate the plugin, download from Github, unzip, and place in your plugins directory as `wp-graphql-insights`then activate like any other plugin.

There is no admin screen, the plugin will automatically add tracing to your GraphQL (v0.0.18+) requests.

Use Trace data on the server, exclude it from the GraphQL response
------------------------------------------------------------------

[](#use-trace-data-on-the-server-exclude-it-from-the-graphql-response)

You might want to have Tracing enabled on the server to allow for tools to make use of that data, but you might **not**want to include tracing in the response.

Here's an example of disabling the trace from the response of the GraphQL Request (so the consumer won't see it), but making use of the trace data on the server, in this case saving the trace to an options table. But you could do anything like send the trace to a remote service, or schedule a Cron to do something with it.

```
add_filter( 'graphql_tracing_include_in_response', '__return_false' );
add_action( 'graphql_execute', function() {
	$trace = \WPGraphQL\Extensions\Insights\Tracing::get_trace();
	update_option( 'graphql_trace_yo', $trace );
}, 100 );

```

Using with Apollo Optics
------------------------

[](#using-with-apollo-optics)

Currently, there is no built-in solution for sending data to Apollo Optics, but there has been discussion regarding potential solutions for getting WPGraphQL Insights trace data over to Optics, so hopefully there will be official Apollo Optics support soon!

###  Health Score

31

—

LowBetter than 66% of packages

Maintenance15

Infrequent updates — may be unmaintained

Popularity26

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 96.6% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~296 days

Total

2

Last Release

2730d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1260765?v=4)[Jason Bahl](/maintainers/jasonbahl)[@jasonbahl](https://github.com/jasonbahl)

---

Top Contributors

[![jasonbahl](https://avatars.githubusercontent.com/u/1260765?v=4)](https://github.com/jasonbahl "jasonbahl (57 commits)")[![dpnolte](https://avatars.githubusercontent.com/u/1792525?v=4)](https://github.com/dpnolte "dpnolte (2 commits)")

---

Tags

analyticsgraphqlinsightsinstrumentationopticsreportingtracingwordpresswpgraphql

### Embed Badge

![Health badge](/badges/wp-graphql-wp-graphql-insights/health.svg)

```
[![Health](https://phpackages.com/badges/wp-graphql-wp-graphql-insights/health.svg)](https://phpackages.com/packages/wp-graphql-wp-graphql-insights)
```

###  Alternatives

[exsyst/swagger

A php library to manipulate Swagger specifications

35816.3M7](/packages/exsyst-swagger)[hubspot/api-client

Hubspot API client

24015.5M18](/packages/hubspot-api-client)[pocketmine/bedrock-protocol

An implementation of the Minecraft: Bedrock Edition protocol in PHP

172437.8k11](/packages/pocketmine-bedrock-protocol)[botman/driver-telegram

Telegram driver for BotMan

94452.6k6](/packages/botman-driver-telegram)[emartech/emarsys-magento2-extension

Magento2 integration for the Emarsys Marketing Platform

14273.9k](/packages/emartech-emarsys-magento2-extension)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
