Title: MetrixWire APM
Author: platkadigital
Published: <strong>2026 年 8 月 26 日</strong>
Last modified: 2026 年 8 月 26 日

---

搜尋外掛

![](https://s.w.org/plugins/geopattern-icon/metrixwire-apm.svg)

# MetrixWire APM

 由 [platkadigital](https://profiles.wordpress.org/platkadigital/) 開發

[下載](https://downloads.wordpress.org/plugin/metrixwire-apm.1.1.0.zip)

 * [詳細資料](https://tw.wordpress.org/plugins/metrixwire-apm/#description)
 * [使用者評論](https://tw.wordpress.org/plugins/metrixwire-apm/#reviews)
 *  [安裝方式](https://tw.wordpress.org/plugins/metrixwire-apm/#installation)
 * [開發資訊](https://tw.wordpress.org/plugins/metrixwire-apm/#developers)

 [技術支援](https://wordpress.org/support/plugin/metrixwire-apm/)

## 外掛說明

MetrixWire APM traces every WordPress request end-to-end: response time, status,
and (when `SAVEQUERIES`
 is enabled) each `$wpdb` query as its own span. Detectors
on the MetrixWire dashboard flag N+1 queries, slow endpoints, slow queries, and 
unhandled exceptions from the traces this plugin sends.

No code changes are required — activate the plugin, paste your API key and endpoint
under
 **Settings  MetrixWire**, and traces start flowing.

For the absolute earliest possible trace start (before regular plugins load), see
the must-use plugin
 variant bundled with the `metrixwire/php` Composer package 
instead.

#### External services

This plugin sends trace data to the MetrixWire endpoint you configure — your own
instance, or
 metrixwire.com if you use the hosted service. Each request contains
the HTTP method, path, response status, duration, and (when `SAVEQUERIES` is enabled)
the SQL text and duration of each database query. Nothing is sent until you enter
an API key and endpoint, and nothing is sent while the Enabled toggle is off. Traces
leave the site on the `shutdown` hook, after the response has already reached the
visitor.

## 安裝方式

 1. Upload the `metrixwire-apm` folder to `/wp-content/plugins/`, or install the zip
    via **Plugins  Add New  Upload Plugin**.
 2. Activate the plugin through the **Plugins** menu.
 3. Go to **Settings  MetrixWire** and enter your project’s API key and endpoint URL(
    find both in your
     MetrixWire dashboard’s install guide).
 4. Optionally add `define( 'SAVEQUERIES', true );` to `wp-config.php` to capture per-
    query spans.
 5. Click **Test Connection** to confirm the key and endpoint are valid before saving.

## 常見問題集

### Can I configure this via wp-config.php instead of the settings screen?

Yes. Define `METRIXWIRE_KEY`, `METRIXWIRE_ENDPOINT`, and optionally `METRIXWIRE_ENABLED`
as constants in
 wp-config.php — they take precedence over the saved settings, and
the settings screen shows the covered fields as read-only.

### Why aren’t database query spans showing up?

SAVEQUERIES must be defined as a constant in `wp-config.php`; WordPress reads it
before any plugin loads,
 so it can’t be turned on from the settings screen at runtime.

### Does this slow down my site?

Traces are sent on the `shutdown` hook, after the response has already been sent
to the visitor, over a
 short-timeout non-blocking request. Failures to reach MetrixWire
are swallowed silently.

### Does it work on multisite?

Yes. Each site keeps its own API key, endpoint, and toggle, and uninstalling removes
those options from
 every site in the network.

## 使用者評論

這個外掛目前沒有任何使用者評論。

## 參與者及開發者

以下人員參與了開源軟體〈MetrixWire APM〉的開發相關工作。

參與者

 *   [ platkadigital ](https://profiles.wordpress.org/platkadigital/)

[將〈MetrixWire APM〉外掛本地化為台灣繁體中文版](https://translate.wordpress.org/projects/wp-plugins/metrixwire-apm)

### 對開發相關資訊感興趣？

任何人均可[瀏覽程式碼](https://plugins.trac.wordpress.org/browser/metrixwire-apm/)、
查看 [SVN 存放庫](https://plugins.svn.wordpress.org/metrixwire-apm/)，或透過 [RSS](https://plugins.trac.wordpress.org/log/metrixwire-apm/?limit=100&mode=stop_on_copy&format=rss)
訂閱[開發記錄](https://plugins.trac.wordpress.org/log/metrixwire-apm/)。

## 變更記錄

#### 1.1.0

 * Renamed the plugin slug and text domain to `metrixwire-apm`, with translation-
   ready strings and a
    bundled `.pot` template.
 * Settings screen rebuilt on the WordPress Settings API, with a “Settings” shortcut
   on the Plugins row.
 * wp-config.php constants now render as read-only values per field instead of disabling
   the form, so
    saving no longer clears the options they cover.
 * Options are prefixed `metrixwire_apm_*`; activation migrates values saved by 
   the 1.0 plugin.
 * Uninstall now clears options on every site of a multisite network.
 * Traces are posted with `wp_remote_post()` instead of cURL, so the site’s HTTP
   transport, proxy
    settings and filters apply.

#### 1.0.0

 * Initial release: settings screen, wp-config.php constant override, test-connection
   check, automatic
    request + database query tracing.

## 中繼資料

 *  版本 **1.1.0**
 *  最後更新 **1 週前**
 *  啟用安裝數 **少於 10 次**
 *  WordPress 版本需求 ** 6.0 或更新版本 **
 *  已測試相容的 WordPress 版本 **7.1**
 *  PHP 版本需求 ** 8.1 或更新版本 **
 *  語言
 * [English (US)](https://wordpress.org/plugins/metrixwire-apm/)
 * 標籤:
 * [apm](https://tw.wordpress.org/plugins/tags/apm/)[database](https://tw.wordpress.org/plugins/tags/database/)
   [monitoring](https://tw.wordpress.org/plugins/tags/monitoring/)[observability](https://tw.wordpress.org/plugins/tags/observability/)
   [performance](https://tw.wordpress.org/plugins/tags/performance/)
 *  [進階檢視](https://tw.wordpress.org/plugins/metrixwire-apm/advanced/)

## 評分

這個項目尚無任何評論記錄。

[撰寫評分](https://wordpress.org/support/plugin/metrixwire-apm/reviews/#new-post)

[查看全部使用者評論](https://wordpress.org/support/plugin/metrixwire-apm/reviews/)

## 參與者

 *   [ platkadigital ](https://profiles.wordpress.org/platkadigital/)

## 技術支援

使用者可在技術支援論壇提出意見反應或使用問題。

 [檢視技術支援論壇](https://wordpress.org/support/plugin/metrixwire-apm/)