Skip to content

Commit

Permalink
Merge branch 'update_versioned_tests' of https://github.com/sumitsuth…
Browse files Browse the repository at this point in the history
…ar/node-newrelic into update_versioned_tests
  • Loading branch information
sumitsuthar committed Jun 3, 2024
2 parents 22378c2 + d15b00f commit 6b419cb
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
6 changes: 6 additions & 0 deletions documentation/feature-flags.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,9 @@ Any prerelease flags can be enabled or disabled in your agent config by adding a
* Configuration: `{ feature_flag: { legacy_context_manager: true|false }}`
* Environment Variable: `NEW_RELIC_FEATURE_FLAG_LEGACY_CONTEXT_MANAGER`
* Description: The legacy context manager was replaced by AsyncLocalContextManager for async context propagation. If your application is not recording certain spans or creating orphaned data, you may want to enable this older context manager. Enabling this feature flag may increase the agent's use of memory and CPU.

#### kakfajs_instrumentation
* Enabled by default: `false`
* Configuration: `{ feature_flag: { kafkajs_instrumentation: true|false }}`
* Environment Variable: `NEW_RELIC_FEATURE_FLAG_KAFKAJS_INSTRUMENTATION`
* Description: Enables instrumentation of `kafkajs`.
3 changes: 2 additions & 1 deletion lib/feature_flags.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ exports.prerelease = {
reverse_naming_rules: false,
undici_async_tracking: true,
unresolved_promise_cleanup: true,
legacy_context_manager: false
legacy_context_manager: false,
kafkajs_instrumentation: false
}

// flags that are no longer used for released features
Expand Down
3 changes: 2 additions & 1 deletion test/unit/feature_flag.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ const used = [
'undici_instrumentation',
'undici_async_tracking',
'aws_bedrock_instrumentation',
'langchain_instrumentation'
'langchain_instrumentation',
'kafkajs_instrumentation'
]

tap.test('feature flags', (t) => {
Expand Down

0 comments on commit 6b419cb

Please sign in to comment.