Tracing is not working with amqplib

Im have an application with many microservices in nestjs with rabbitmq and im trying make a distributed tracing. Some microservices make a http request to others and this work fine but the microservices that communicate by rabbitmq doesn’t show in service map.

Example, HubApi make a http request to HubManager and after all send the response to queue in rabbitmq and HubIntegrators consume that queue. In service map I see just HubApi and HubManager and not HubIntegrators. Why the HubIntegrators is not in the map?

Im using amqplib in version 0.8.0 wich have a amqp version 0.9.1.
I add a environment variable NEW_RELIC_NO_CONFIG_FILE=true in dockerfile and the follows environment in docker-compose: NEW_RELIC_DISTRIBUTED_TRACING_ENABLED=true, NEW_RELIC_LICENSE_KEY=“lincese key”, NEW_RELIC_APP_NAME=HubApi, NEW_RELIC_ENABLED=true.

I need help to understand what is wrong.

Hey there @marcio.sales ,

Thanks for reaching out to the New Relic Community! I may be able to shed a bit of light on your situation here. I believe there may be a compatibility issue. As a reference, Ive included some info HERE that may help.



This may help as well


Hi there!! Thank you so much for help! This really help me. But now I have another problem. The first problem was the headers its not sended to the rabbit. Now my first app(HubApi) its send the headers to my second app and my second app call two anothers apps, the first app works fine, but after call the first app when calls the second app, the headers is not send!. So after first call the headers are missing.