Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Runtime instrumentation error. Request context propagation failed. No trace with id {ID}. Report this issue to New Relic support. #434

Closed
DmytroLitvinov opened this issue Nov 24, 2021 · 8 comments

Comments

@DmytroLitvinov
Copy link
Contributor

DmytroLitvinov commented Nov 24, 2021

Hi there,
After upgrading from version 7.2.2.169 to 7.2.4.171, we started to receive a lot of events (459k) in our Sentry with the next message:

Runtime instrumentation error. Request context propagation failed. No trace with id 139701399167680. Report this issue to New Relic support.

We are using the next tech stack:

  • Python v.3.8.12
  • Django v3.2.9
  • Django Channels v3.0.4
  • New Relic v7.2.4.171

Command which we run to start our gunicorn:
newrelic-admin run-program gunicorn asgi -k uvicorn.workers.UvicornWorker

Seems like it was introduced after that PR

As a temporary solution, we downgrade our version to 7.2.2.169.

@umaannamalai
Copy link
Contributor

Hi @DmytroLitvinov! Thank you for reporting this. Would you be able to open this as a ticket with New Relic support? This will allow our support engineers to work directly with you to gather logging and other relevant information that will help us to debug this issue.

@DmytroLitvinov
Copy link
Contributor Author

Hi @umaannamalai ,
Created new topic in forum.

@zodiacfireworks
Copy link

Same error here

image
image

I'm running with daphne as follows

newrelic-admin run-program daphne -b 0.0.0.0 -p 8000 application.asgi:application --access-log - --verbosity 3

channels==3.0.4
daphne==3.0.2
django==3.2.9
newrelic==7.2.4.171

@vitornere
Copy link

Same error here
(45/ThreadPoolExecutor-0_0) newrelic.core.context ERROR - Runtime instrumentation error. Request context propagation failed. No trace with id 140476278928032. Report this issue to New Relic support.

fastapi==0.70.1
newrelic==7.2.4.171
uvicorn==0.16.0

NEW_RELIC_CONFIG_FILE=newrelic.ini newrelic-admin run-program uvicorn app:app --host 0.0.0.0 --port 5000 --log-level info --workers 5

@TimPansino
Copy link
Contributor

Should be fixed with #441. Feel free to reopen if this issue still occurs on versions >7.4

@TimPansino TimPansino added this to the 7.4.0.172 milestone Jan 20, 2022
@dacevedo12
Copy link

dacevedo12 commented Apr 29, 2022

This just happened to me.

Using

newrelic==7.10.0.175
starlette==0.17.1
gunicorn==20.1.0
uvicorn==0.17.4

newrelic-admin run-program gunicorn 'app.app:APP' -k uvicorn.workers.UvicornWorker

newrelic.core.context ERROR - Runtime instrumentation error. Request context propagation failed. No context attached to request. Report this issue to New Relic support.

@dacevedo12
Copy link

Related to #468?

@dacevedo12
Copy link

Tried updating starlette to 0.19.0, but no improvement.
Manual instrumentation doesn't change anything either.

Had to go all the way back to 7.2.2.169, that version doesn't fail.
Just to clarify, I'm not using FastAPI, just starlette

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants