newrelic / node-newrelic

New Relic Node.js agent code base. Developers are welcome to create pull requests here, please see our contributing guidelines. For New Relic technical support, please go to http://support.newrelic.com.
Apache License 2.0
965 stars 389 forks source link

Add supportability tracking metrics for langchain bedrock and azure openai #2045

Closed bizob2828 closed 4 months ago

bizob2828 commented 4 months ago

Description

We have requests from product management to add instrumentation for langchain js bedrock and azure open ai. Unfortunately it does not leverage the instrumentation we already have for bedrock and openai. We'd like to track our customer usage of these libraries before adding support as the maintenance cost of the same library in two different implementation is high.

Acceptance Criteria

As a New Relic product manager I want the ability to track how many customers are using @azure/openai and @langchain/community/llms/bedrock

Additional context

To automatically add tracking metrics for libraries you can register a module here as long as the type is MODULE_TYPE.TRACKING. You will also have to file a PR in angler.

workato-integration[bot] commented 4 months ago

https://new-relic.atlassian.net/browse/NR-232888