@mcp-com-ai/plugin-otel 1.1.0 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{definePlugin as m,defineCommand as s,HAPI_CLI_API_VERSION as c}from"@mcp-com-ai/plugin-sdk";import{pkg as d,telemetry as y}from"@mcp-com-ai/core";import{loadGlobalConfig as o,saveGlobalConfig as u}from"@mcp-com-ai/shared-utils";var r="@mcp-com-ai/plugin-otel",a="1.
|
|
2
|
+
import{definePlugin as m,defineCommand as s,HAPI_CLI_API_VERSION as c}from"@mcp-com-ai/plugin-sdk";import{pkg as d,telemetry as y}from"@mcp-com-ai/core";import{loadGlobalConfig as o,saveGlobalConfig as u}from"@mcp-com-ai/shared-utils";var r="@mcp-com-ai/plugin-otel",a="1.2.0",p="Telemetry / OpenTelemetry surface for the HAPI CLI. Opt-in/out, status, and flush controls.";var g=s({name:"status",description:"Show current telemetry configuration and opt-out state",async run(i,t){let e=await o(),l=e.analyticsOptout===!0||process.env.HAPI_ANALYTICS_OPTOUT==="true"||process.env.HAPI_TELEMETRY_OPTOUT==="true";return t.stdout.write(`
|
|
3
3
|
HAPI telemetry status
|
|
4
4
|
`),t.stdout.write(` Opt-out (config): ${e.analyticsOptout===!0}
|
|
5
5
|
`),t.stdout.write(` Opt-out (env): ${process.env.HAPI_ANALYTICS_OPTOUT==="true"||process.env.HAPI_TELEMETRY_OPTOUT==="true"}
|