Skip to content

feat(telemetry): mirror Appsero insights to telemetry.wpgraphql.com - #3785

Merged
jasonbahl merged 4 commits into
wp-graphql:mainfrom
jasonbahl:feat/appsero-telemetry-mirror
Apr 22, 2026
Merged

jasonbahl merged 4 commits into
wp-graphql:mainfrom
jasonbahl:feat/appsero-telemetry-mirror

Conversation

@jasonbahl

Copy link
Copy Markdown
Collaborator

Summary

Adds a non-blocking pre_http_request filter in each WPGraphQL monorepo plugin that uses Appsero so outbound Appsero telemetry for that plugin is mirrored to https://telemetry.wpgraphql.com/api/appsero/ while the original request still goes to Appsero. Each hook scopes by the plugin’s Appsero hash so other Appsero-based plugins on the site are unaffected.

Plugins touched

  • plugins/wp-graphql/wp-graphql.php
  • plugins/wp-graphql-acf/wpgraphql-acf.php
  • plugins/wp-graphql-smart-cache/wp-graphql-smart-cache.php
  • plugins/wp-graphql-ide/wpgraphql-ide.php

Add a non-blocking pre_http_request hook in each WPGraphQL plugin so
Appsero payloads for that plugin are duplicated to our telemetry
endpoint while the original request still goes to Appsero.
@vercel

vercel Bot commented Apr 22, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated (UTC)
wpgraphql-com Skipped Skipped Apr 22, 2026 7:13pm

Update README and WordPress.org readme privacy sections across the
monorepo so opted-in telemetry is described as going to Appsero and
WPGraphQL-operated infrastructure. Remove duplicate Appsero link in
core readme.txt.
@vercel

vercel Bot commented Apr 22, 2026

Copy link
Copy Markdown

@jasonbahl is attempting to deploy a commit to the WPGraphql Team on Vercel.

A member of the Team first needs to authorize it.

@codecov

codecov Bot commented Apr 22, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 84.4%. Comparing base (4f53cb5) to head (f30b695).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff            @@
##              main   #3785     +/-   ##
=========================================
+ Coverage     83.5%   84.4%   +0.9%     
+ Complexity    5197    4275    -922     
=========================================
  Files          286     221     -65     
  Lines        22567   20329   -2238     
=========================================
- Hits         18834   17148   -1686     
+ Misses        3733    3181    -552     
Flag Coverage Δ
wp-graphql-acf-wpunit-twentytwentyfive-single ?
wp-graphql-wpunit-twentytwentyfive-multisite 84.3% <ø> (-0.2%) ⬇️
wp-graphql-wpunit-twentytwentyfive-single 84.3% <ø> (-0.2%) ⬇️
wp-graphql-wpunit-twentytwentyone-multisite 84.3% <ø> (-0.2%) ⬇️
wp-graphql-wpunit-twentytwentyone-single 84.3% <ø> (-0.2%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.
see 236 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Raise wp_remote_post timeout for mirrored telemetry from 0.01 to 5
seconds so slow networks can complete the non-blocking duplicate.
Align mirror wp_remote_post timeout with coding standards.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant