Giter Site home page Giter Site logo

node-newrelic-mysql's Issues

mysql: add node 20

Is your feature request related to a problem? Please describe.

  • Add Node 20 to CI and drop 14

Convert CI to GitHub Actions

  • Users can run unit tests at a minimum.

Would aim for all tests functioning for external PR's (forked repos) with these efforts.

Add Node 14 support / Drop Node 8

Is your feature request related to a problem? Please describe.

This experimental repo needs to be brought up to current support standards.

Update Readme

Summary

  • Should conform to new open source template.
    • See the internal repo template project.
  • Clear instructions for development and "building".
  • For Explorer's Hub... would point to main agent area... don't know what that is anymore. Perhaps via tags? Check with Corey
  • Update any out of date information

Depending on the amount of content, may want to run by the docs team. They had a bit of consistency and branding changes to the main agent readme.

@newrelic/mysql: Update README to mark this package as EOLd

This package was experimental. All the functionality was folded into the agent in newrelic/node-newrelic#1136. We don't have any plans to add any functionality in this package. In fact it's causing us more headaches with snyk, and random CI updates.

A/C:

  • Update the README to call that this is EOLd.
  • Remove snyk, dependabot checks.
  • Remove subscriptions in slack in #node-agent-dev

Minimal code cleanup

We are already in decent shape but do a pass for general things outlined in the Engineering Plan.

Helpful regex (ripgrep):

rg --pcre2 '(?<!SELECT)(// |^ *\*(?!/))(?! Copyright|.*Apache|.*eslint)'

Unable to install Mysql , Nginx , Java agent in our aws cloud environment

  1. As we configured our MySql RDS by using admin user , we're unable to deploy the agent since its asking for the Root credentials while deploying it ...
    We have tried with creating the newrelic user by using the comment in new relic site , even though it asking for the same root credentials .. Please look in to this and advise at high priority ...

  2. Also we're facing the issue in deploying the nginx agent , we stuck in this step and no idea how to proceed further to fix it while installing the ngnix agent .
    NGINX status URL (default: http://127.0.0.1/status): http://127.0.0.1:8080/status
    NGINX HTTP status page should be set up with a locally accessible URL in the conf server block.
    See https://docs.newrelic.com/docs/integrations/host-integrations/host-integrations-list/nginx-monitoring-integration#config for more info.
    ==> Installing nginx-open-source-integration...failed.

One or more installations failed. Check the install log for more details: /home/ubuntu/.newrelic/newrelic-cli.log
New Relic installation complete!
Your data is available at https://one.newrelic.com/launcher/nr1-core.explorer?platform[filters]=&platform[accountId]=3271104
FATAL We encountered an error during the installation: exit status 2: See https://docs.newrelic.com/docs/integrations/host-integrations/host-integrations-list/nginx-monitoring-integration#config for more info.. If this problem persists please visit the documentation and support page for additional help here: https://one.newrelic.com/-/06vjAeZLKjP

  1. While installing the Java agent we're facing the below error but java installed and configured in our environment in running status ....
    INFO Validating connectivity to the New Relic platform...
    ✅ Checking for data in New Relic (this may take a few minutes)...success.

FATAL We encountered an error during the installation: we couldn’t install the Java Agent Installer. Make sure Java is installed and running on this host and rerun the newrelic-cli command. If this problem persists please visit the documentation and support page for additional help here: https://one.newrelic.com/-/06vjAeZLKjP

Add copyright to all source files

Every source file in the repository should contain the copyright block heading on top:

/*
* Copyright 2020 New Relic Corporation. All rights reserved.
* SPDX-License-Identifier: Apache-2.0
*/

This includes bash scripts (slightly different commenting style) and code examples. Does not include copy-paste templates.

NOTE: we want the Apache-2.0 license to land first so these are consistent and that license is the current active for the commit(s) applying these changes.


Useful Script

  • Does not update non-JS files.
  • May break when there’s a code directive that needs to be at the top.
  • May need additional modifications for a particular repository.
  • Run git ls-files | grep '\.js$' | grep -Ev '(.eslintrc|^newrelic)' to see list of files
tmp=$(mktemp)   # Create a temporary file
trap "rm -f $tmp; exit 1" 0 1 2 3 13 15

header="/*
 * Copyright 2020 New Relic Corporation. All rights reserved.
 * SPDX-License-Identifier: Apache-2.0
 */
"

for file in $(git ls-files | grep '\.js$' | grep -Ev '(.eslintrc|^newrelic)')
do
    {
    echo -e "$header"
    cat $file
    } > $tmp
    mv $tmp $file
    echo $file
done

rm -f $tmp
trap 0

Make Third Party Notices updateable via standard CLI tool

https://github.com/newrelic/newrelic-oss-cli#third-party-notice-generation-for-npm-based-projects

-----

Portions copyright Node.js contributors. Depending on your existing libraries and package management settings,
your systems may call externally maintained libraries in addition to those listed above.
See [here](https://nodejs.org/en/docs/meta/topics/dependencies/) and [here](https://github.com/nodejs/node/blob/v4.3.1/LICENSE)
for additional details regarding externally maintained libraries and certain related licenses and notices.”

'execute' is not supported in this standalone mysql module

It looks like when 'execute' support was added in 2019 to the main agent mysql instrumentation, this module was not updated and we didn't have an issue to capture.

As such, a couple recent attempts to use mysql2/promise by customers and internal folks have had issues because they are using this function.

Whether we keep this module or merge back into the main agent, we should ensure this functionality works with mysql2/promise usages.

Here's one instance: #47 (comment)

Main agent reference:
https://github.com/newrelic/node-newrelic/blob/main/lib/instrumentation/mysql.js#L134-L136
newrelic/node-newrelic@d64f7de

Effort: Small

Switch to 'main' as default branch

We've settled on main as the new default branch name.

This will involve creating and migrating to the new branch before deleting the prior. We'll also want to ensure we change the base of any existing PR's etc.

Hanselman has some helpful instructions on the blog: https://www.hanselman.com/blog/EasilyRenameYourGitDefaultBranchFromMasterToMain.aspx. I'm sure there are other useful resources out there as well.

  • Change the base of all open PRs (do this first or risk auto-closing when change default)
  • Change default branch in repo settings
  • Copy master branch protection rules to main
  • Setup Snyk to use main
  • Edit any release documents to reference main instead of master (sometimes recommend doing via separate PR to exercise snyk/etc on new branch).
  • Delete master branch once all good.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.