Enable BugSnag error and performance on by default#282
Open
tomlongridge wants to merge 5 commits intomainfrom
Open
Enable BugSnag error and performance on by default#282tomlongridge wants to merge 5 commits intomainfrom
tomlongridge wants to merge 5 commits intomainfrom
Conversation
* feat(common): add OTEL instrumentation * fix: ignore bump and telemetry in coverage * fix: call startActiveSpan without a guard
20dc673 to
7cc5bdc
Compare
Contributor
🎯 Coverage Target Met!📈 Coverage Metrics
📊 Test Statistics
🔍 Files Needing Coverage
📝 Report generated on Node.js v24.10.0 • View workflow • Coverage by Vitest + v8 |
sazap10
reviewed
Dec 15, 2025
also fixes an issue where the script was triggered for npm install commands too
sazap10
reviewed
Dec 16, 2025
sazap10
reviewed
Dec 16, 2025
| "src/pactflow/client/ai.ts", | ||
| "src/pactflow/client/base.ts", | ||
| "scripts/post-coverage-comment.js", | ||
| "scripts/bump.js", |
Contributor
There was a problem hiding this comment.
we should just change this to scripts/*.js
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Goal
Tracks errors and performance of the MCP server.
Design
Uses the OTel Node SDK configured for BugSnag Performance monitoring, with attributes for the transport mode and OS.
The
MCP_SERVER_BUGSNAG_API_KEYcan still be used to set the destination of the data, but if not specified it will go to SmartBear's instance. The variable can be set to an empty value to disable all instrumentation.Changeset
I've moved the environment variable reading to a
config.tsfile so it can be shared.Release stages are used to have BugSnag enabled for end-users when using a published SDK and not in development. This is updated by a new
build:productionscript that's triggered by thepreparephase and the Docker build.Testing
Confirmed the data appears (or not) when configured.