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

Tie logs to an APM? #90

Open
jamesmehorter opened this issue Sep 25, 2023 · 2 comments
Open

Tie logs to an APM? #90

jamesmehorter opened this issue Sep 25, 2023 · 2 comments

Comments

@jamesmehorter
Copy link

Hello,

Logs sent to NR via this lambda are not related to any specific APM. Is there a way for this lambda to set the appropriate entity.guid, entity.guids, and entity.name fields in the log JSON so that logs may be related/tied to a specific APM? (I believe these fields would accomplish that linking?)

(I understand using an infrastructure agent typically accomplishes this, though we have reasons for shipping logs separately)

@jamesmehorter
Copy link
Author

jamesmehorter commented Oct 5, 2023

The New Relic PHP Agent team has just released https://github.com/newrelic/newrelic-php-agent/releases/tag/v10.13.0.2 which does allow us to decorate logs being forwarded by an external solution (e.g. from cloudwatch using this lambda) with the correct entity.* attributes which will link logs to the correct APM.

@jamesmehorter
Copy link
Author

This NR_TAGS env var seems it would also accomplish this linking, but would require one lambda running per application, e.g. as a sidecar container running along side the application container

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

No branches or pull requests

1 participant