porsager / porsager/postgres

Instrumentation with new relic

Open
#739 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
8.7k
Forks
374
Avg merge
11d 16h
Merged PRs (30d)
1

Description

I'm trying to instrument the library for monitoring with New Relic.

I'm trying to follow this guide: https://newrelic.github.io/node-newrelic/tutorial-Datastore-Simple.html

The issue is I don't think the library provides any base prototypes I can use the shims on. I looked at the source code and failed to come up with a way of hooking onto the query methods since the Query class is not exposed and the Sql objects also don't have a base class?

Any tips or work arounds?

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading the source around the query methods, the unexposed Query class, and the Sql objects, then compare those entry points with the New Relic datastore instrumentation guide linked in the issue. Determine whether a supported instrumentation hook or workaround can be defined; the issue does not specify a concrete implementation or completion test.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, nodejs, postgresql
Domain
databases, observability
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.