-
Notifications
You must be signed in to change notification settings - Fork 53
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
NEW_RELIC_ENABLED env var not respected #215
Comments
Hi @rittneje Currently, we see that different language agent is using a different env var to enable instrumentation, as mentioned here. Since lambda extension supports all language runtimes, it should respect all agent specific env vars. We will look into the issue such that lambda extension should respect the agent enable environment variable. |
Work has been completed on this issue. |
@chaudharysaket Where was this fixed? I don't see any relevant commits, and there is no mention of NEW_RELIC_ENABLED in the source code. |
Hi @rittneje Could you please help us understand cases where |
@chaudharysaket As clearly mentioned in the issue description, the bug is that |
Okay. We will look into the issue shortly such that extension will abide by the |
@chaudharysaket The other thing I will share is that |
Work has been completed on this issue. |
@chaudharysaket This issue needs to be reopened. You only considered “false” not “0”. |
Description
If we set NEW_RELIC_ENABLED=0, the Go agent won't report anything. However, the extension does not respect this env var. Consequently, it waits for telemetry that will never come, and ends up timing out 200 ms before actual timeout. (From AWS's perspective, the function was running the whole time and we get billed for it.)
newrelic-lambda-extension/main.go
Lines 269 to 300 in a8461c8
Steps to Reproduce
See above.
Expected Behavior
Extension should be a no-op if NEW_RELIC_ENABLED=0.
Relevant Logs / Console output
Your Environment
Additional context
The text was updated successfully, but these errors were encountered: