File tree 2 files changed +8
-1
lines changed
2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -996,7 +996,7 @@ class Config {
996
996
this . _setBoolean ( opts , 'llmobs.agentlessEnabled' , options . llmobs ?. agentlessEnabled )
997
997
this . _setString ( opts , 'llmobs.mlApp' , options . llmobs ?. mlApp )
998
998
this . _setBoolean ( opts , 'logInjection' , options . logInjection )
999
- this . _setString ( opts , 'lookup' , options . lookup )
999
+ this . _setValue ( opts , 'lookup' , options . lookup )
1000
1000
this . _setBoolean ( opts , 'middlewareTracingEnabled' , options . middlewareTracingEnabled )
1001
1001
this . _setBoolean ( opts , 'openAiLogsEnabled' , options . openAiLogsEnabled )
1002
1002
this . _setValue ( opts , 'peerServiceMapping' , options . peerServiceMapping )
Original file line number Diff line number Diff line change @@ -1636,6 +1636,13 @@ describe('Config', () => {
1636
1636
expect ( config . tags ) . to . include ( { foo : 'bar' , baz : 'qux' } )
1637
1637
} )
1638
1638
1639
+ it ( 'should not transform the lookup parameter' , ( ) => {
1640
+ const lookup = ( ) => 'test'
1641
+ const config = new Config ( { lookup : lookup } )
1642
+
1643
+ expect ( config . lookup ) . to . equal ( lookup )
1644
+ } )
1645
+
1639
1646
it ( 'should not set DD_INSTRUMENTATION_TELEMETRY_ENABLED if AWS_LAMBDA_FUNCTION_NAME is present' , ( ) => {
1640
1647
process . env . AWS_LAMBDA_FUNCTION_NAME = 'my-great-lambda-function'
1641
1648
You can’t perform that action at this time.
0 commit comments