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 @@ -992,7 +992,7 @@ class Config {
992
992
this . _setBoolean ( opts , 'llmobs.agentlessEnabled' , options . llmobs ?. agentlessEnabled )
993
993
this . _setString ( opts , 'llmobs.mlApp' , options . llmobs ?. mlApp )
994
994
this . _setBoolean ( opts , 'logInjection' , options . logInjection )
995
- this . _setString ( opts , 'lookup' , options . lookup )
995
+ this . _setValue ( opts , 'lookup' , options . lookup )
996
996
this . _setBoolean ( opts , 'middlewareTracingEnabled' , options . middlewareTracingEnabled )
997
997
this . _setBoolean ( opts , 'openAiLogsEnabled' , options . openAiLogsEnabled )
998
998
this . _setValue ( opts , 'peerServiceMapping' , options . peerServiceMapping )
Original file line number Diff line number Diff line change @@ -1614,6 +1614,13 @@ describe('Config', () => {
1614
1614
expect ( config . tags ) . to . include ( { foo : 'bar' , baz : 'qux' } )
1615
1615
} )
1616
1616
1617
+ it ( 'should not transform the lookup parameter' , ( ) => {
1618
+ const lookup = ( ) => 'test'
1619
+ const config = new Config ( { lookup : lookup } )
1620
+
1621
+ expect ( config . lookup ) . to . equal ( lookup )
1622
+ } )
1623
+
1617
1624
it ( 'should not set DD_INSTRUMENTATION_TELEMETRY_ENABLED if AWS_LAMBDA_FUNCTION_NAME is present' , ( ) => {
1618
1625
process . env . AWS_LAMBDA_FUNCTION_NAME = 'my-great-lambda-function'
1619
1626
You can’t perform that action at this time.
0 commit comments