Giter Club home page Giter Club logo

newrelic-node-bug-example's Introduction

Purpose

This repo reproduces the bug reported in newrelic/node-newrelic-aws-sdk#175

Based on Newrelic's example node repo

To Run

Use node 14+

cd library && npm i && npm link && cd ..
cd main && npm link @example/newrelic-node-bug-example-library && npm i

npm run start

Example output

> [email protected] start newrelic-node-bug-example/main
> node -r ./instrumentation index.js

[NEWRELIC] instrumenting ./nifty-messages
[NEWRELIC] instrumenting method 'publish'
[NEWRELIC] instrumenting method 'purge'
[NEWRELIC] instrumenting callbacks of method 'getMessage'
[NEWRELIC] instrumenting callbacks of method 'subscribe'
newrelic-node-bug-example/library/node_modules/@aws-sdk/middleware-stack/dist-cjs/MiddlewareStack.js:130
                        throw new Error(`Duplicate middleware name '${name}'`);
                        ^

Error: Duplicate middleware name 'NewRelicHeader'
    at Object.add (newrelic-node-bug-example/library/node_modules/@aws-sdk/middleware-stack/dist-cjs/MiddlewareStack.js:130:31)
    at Object.applyToStack (newrelic-node-bug-example/library/node_modules/@newrelic/aws-sdk/lib/v3/smithy-client.js:33:19)
    at Object.use (newrelic-node-bug-example/library/node_modules/@aws-sdk/middleware-stack/dist-cjs/MiddlewareStack.js:167:20)
    at S3Client.wrapShim (newrelic-node-bug-example/library/node_modules/@newrelic/aws-sdk/lib/v3/util.js:33:26)
    at new WrappedClass (newrelic-node-bug-example/library/node_modules/newrelic/lib/shim/shim.js:2048:30)
    at new S3Client (newrelic-node-bug-example/library/node_modules/@aws-sdk/client-s3/dist-cjs/S3Client.js:31:9)
    at new S3StreamLogger (newrelic-node-bug-example/library/node_modules/s3-streamlogger/index.js:69:25)
    at new Logger (newrelic-node-bug-example/library/log-generator.js:28:23)
    at Object.<anonymous> (newrelic-node-bug-example/main/index.js:13:1)
    at Module._compile (internal/modules/cjs/loader.js:1085:14)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] start: `node -r ./instrumentation index.js`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the [email protected] start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

newrelic-node-bug-example's People

Contributors

bizob2828 avatar snyk-bot avatar jordigh avatar coreyarnold avatar dependabot[bot] avatar mrickard avatar jmartin4563 avatar skmichaeldavis avatar garbados avatar michaelgoin avatar

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.