-
-
Notifications
You must be signed in to change notification settings - Fork 12
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
Messages not being sent to/received by Azure Insights #42
Comments
According to the Azure documentation it looks like the instrumentation keys are being phased out in favor of connection strings. It's possible that this is the source of the disconnect? |
@kf6kjg Any fix for this? |
None that I'm aware of at this time. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
AFAICT this is still a problem, though I've not tried reproducing it since I reported it. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
I recently got application insights logging working just fine, using next.js and next-logger, pino-ms, and pino-applicationinsights. I am using the connection string in place of the instrumentation key. The MS docs don't make it very clear. But it seems anywhere you would use an instrumentation key ("iKey") you can use a connection string. sainsburys-tech/next-logger#12 In next.config.js, if |
As I've had this working, I recommend closing the issue. Maybe the issue was solved by some other related dependency, maybe INSTRUMENTATION_KEY just does not work anymore, idk. |
If that be the case, then maybe a documentation update is all that is needful. |
I seem to have been mistaken in my previous analysis. In azure portal under "Diagnose and Solve Problems" it shows "Application Logs" (stdout) from my node server, without any of my logging code. |
Application Insights != stdout. I’d expect nothing on stdout.
…On Fri, Mar 4, 2022 at 1:14 AM Devin Rhode ***@***.***> wrote:
I seem to have been mistaken in my previous analysis. In azure portal
under "Diagnose and Solve Problems" it shows "Application Logs" (stdout)
from my node server, without any of my logging code.
—
Reply to this email directly, view it on GitHub
<#42 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAI2Q2F4IPBK5ROK5TLDSKLU6HH7JANCNFSM42NQ7QLA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Yeah I noticed when ApplicationInsights setup code runs, there isn't anything printed to stdout except this:
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
🐛 Bug Report
The messages sent to Applications Insights do not appear to be being received.
To Reproduce
Steps to reproduce the behavior:
The REDACTED value in the above comes from the Application Insights Instrumentation Key line, the location of which on the Azure Portal interface is highlighted in green here:
Open an additional terminal and run the following
az login az monitor app-insights query --app REDACTED --analytics-query 'traces'
The REDACTED value here is the
Application ID
located under theAPI Access
sidebar.Alternatively, use the
Logs
sidebar and query for traces.Expected behavior
The logger to send the log object to the Azure Insights service and then the latter to be able to show the resulting entry.
Your Environment
node:14-alpine3.11
Docker image.The text was updated successfully, but these errors were encountered: