Skip to content

[CX-2998] newrelic and airbrake integration#11

Open
kshitij-partech wants to merge 11 commits into
mainfrom
newrelic-integration
Open

[CX-2998] newrelic and airbrake integration#11
kshitij-partech wants to merge 11 commits into
mainfrom
newrelic-integration

Conversation

@kshitij-partech
Copy link
Copy Markdown
Collaborator

No description provided.

@kvlad-par
Copy link
Copy Markdown

kvlad-par commented Apr 10, 2026

⚠️ Snyk checks are incomplete.

Status Scan Engine Critical High Medium Low Total (0)
⚠️ Open Source Security 0 0 0 0 See details
⚠️ Licenses 0 0 0 0 See details
Code Security 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

Comment thread Dockerfile
@kshitij-partech kshitij-partech changed the title newrelic and airbrake integration [CX-2998] newrelic and airbrake integration Apr 21, 2026
@kshitij-partech kshitij-partech requested a review from Copilot April 24, 2026 05:35
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds observability integrations (Airbrake + New Relic) to the Gin HTTP server and MySQL access layer, wiring config values from secrets/env and updating build/runtime packaging to support the new setup.

Changes:

  • Add Airbrake recovery middleware + logrus Airbrake hook wiring.
  • Add New Relic HTTP (nrgin) and MySQL (nrmysql) instrumentation hooks.
  • Update config struct/parsing to include observability keys; bump Go toolchain version and adjust Docker packaging.

Reviewed changes

Copilot reviewed 6 out of 7 changed files in this pull request and generated 6 comments.

Show a summary per file
File Description
middleware/middleware.go Introduces AirbrakeRecovery() middleware and a global hook setter.
main.go Wires Airbrake + New Relic initialization, switches to gin.New(), and adds middleware stack changes.
db/db.go Switches Gorm MySQL driver to nrmysql for New Relic datastore instrumentation.
config/config.go Adds Airbrake/New Relic config fields and parses additional secret keys.
go.mod Adds new dependencies and bumps go toolchain version.
go.sum Records dependency checksum updates for the new observability dependencies.
Dockerfile Simplifies runtime image to only copy a prebuilt server binary.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread main.go
Comment thread go.mod
Comment thread Dockerfile
Comment thread config/config.go Outdated
Comment thread db/db.go Outdated
Comment thread main.go Outdated
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.

4 participants