@@ -405,7 +405,7 @@ test('client span(db) is bridge accordingly(statement test)', (t, end) => {
405405 [ ATTR_SERVER_PORT ] : 5436 ,
406406 [ ATTR_SERVER_ADDRESS ] : '127.0.0.1'
407407 }
408- const expectedHost = agent . config . getHostnameSafe ( '127.0.0.1' )
408+ const expectedHost = agent . config . getHostnameSafe ( )
409409 helper . runInTransaction ( agent , ( tx ) => {
410410 tx . name = 'db-test'
411411 tracer . startActiveSpan ( 'db-test' , { kind : otel . SpanKind . CLIENT , attributes } , ( span ) => {
@@ -456,7 +456,7 @@ test('client span(db) is bridged accordingly(operation test)', (t, end) => {
456456 [ ATTR_SERVER_PORT ] : 5436 ,
457457 [ ATTR_SERVER_ADDRESS ] : '127.0.0.1'
458458 }
459- const expectedHost = agent . config . getHostnameSafe ( '127.0.0.1' )
459+ const expectedHost = agent . config . getHostnameSafe ( )
460460 helper . runInTransaction ( agent , ( tx ) => {
461461 tx . name = 'db-test'
462462 tracer . startActiveSpan ( 'db-test' , { kind : otel . SpanKind . CLIENT , attributes } , ( span ) => {
@@ -504,7 +504,7 @@ test('client span(db) 1.17 is bridged accordingly(operation test)', (t, end) =>
504504 [ ATTR_NET_PEER_PORT ] : 5436 ,
505505 [ ATTR_NET_PEER_NAME ] : '127.0.0.1'
506506 }
507- const expectedHost = agent . config . getHostnameSafe ( '127.0.0.1' )
507+ const expectedHost = agent . config . getHostnameSafe ( )
508508 helper . runInTransaction ( agent , ( tx ) => {
509509 tx . name = 'db-test'
510510 tracer . startActiveSpan ( 'db-test' , { kind : otel . SpanKind . CLIENT , attributes } , ( span ) => {
@@ -555,7 +555,7 @@ test('client span(db) 1.17 mongodb is bridged accordingly(operation test)', (t,
555555 [ ATTR_NET_PEER_PORT ] : 5436 ,
556556 [ ATTR_NET_PEER_NAME ] : '127.0.0.1'
557557 }
558- const expectedHost = agent . config . getHostnameSafe ( '127.0.0.1' )
558+ const expectedHost = agent . config . getHostnameSafe ( )
559559 helper . runInTransaction ( agent , ( tx ) => {
560560 tx . name = 'db-test'
561561 tracer . startActiveSpan ( 'db-test' , { kind : otel . SpanKind . CLIENT , attributes } , ( span ) => {
@@ -779,7 +779,7 @@ test('producer span(legacy) is bridged accordingly', (t, end) => {
779779 helper . runInTransaction ( agent , ( tx ) => {
780780 tx . name = 'prod-test'
781781
782- const expectedHost = agent . config . getHostnameSafe ( 'localhost' )
782+ const expectedHost = agent . config . getHostnameSafe ( )
783783 tracer . startActiveSpan ( 'prod-test' , { kind : otel . SpanKind . PRODUCER , attributes } , ( span ) => {
784784 const segment = agent . tracer . getSegment ( )
785785 assert . equal ( tx . traceId , span . spanContext ( ) . traceId )
@@ -826,7 +826,7 @@ test('producer span is bridged accordingly', (t, end) => {
826826 helper . runInTransaction ( agent , ( tx ) => {
827827 tx . name = 'prod-test'
828828
829- const expectedHost = agent . config . getHostnameSafe ( 'localhost' )
829+ const expectedHost = agent . config . getHostnameSafe ( )
830830 tracer . startActiveSpan ( 'prod-test' , { kind : otel . SpanKind . PRODUCER , attributes } , ( span ) => {
831831 const segment = agent . tracer . getSegment ( )
832832 assert . equal ( tx . traceId , span . spanContext ( ) . traceId )
@@ -861,7 +861,7 @@ test('producer span is bridged accordingly', (t, end) => {
861861
862862test ( 'consumer span is bridged correctly' , ( t , end ) => {
863863 const { agent, tracer } = t . nr
864- const expectedHost = agent . config . getHostnameSafe ( 'localhost' )
864+ const expectedHost = agent . config . getHostnameSafe ( )
865865 const attributes = {
866866 [ ATTR_MESSAGING_SYSTEM ] : 'kafka' ,
867867 [ ATTR_SERVER_ADDRESS ] : '127.0.0.1' ,
@@ -914,7 +914,7 @@ test('consumer span is bridged correctly', (t, end) => {
914914
915915test ( 'messaging consumer skips high security attributes' , ( t , end ) => {
916916 const { agent, tracer } = t . nr
917- const expectedHost = agent . config . getHostnameSafe ( 'localhost' )
917+ const expectedHost = agent . config . getHostnameSafe ( )
918918 const attributes = {
919919 [ ATTR_MESSAGING_SYSTEM ] : 'kafka' ,
920920 [ ATTR_SERVER_ADDRESS ] : '127.0.0.1' ,
0 commit comments