-
Notifications
You must be signed in to change notification settings - Fork 200
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
Error sending telemetry items: instrumentationKey must be non-null #1948
Comments
did you notice this error in your log:
have you fixed the ssl cert issue? please follow the instruction listed under |
@heyams that error was prior to the latest run:
It looks like @jepperip in the meantime, can you check the connection string that is displayed in your Application Insights resource in the Azure Portal, and using that? It should have a different |
Thanks for the quick replies. @heyams yes I have fixed that error. I understand that the logs are confusing because of 1. multiple runs and 2. its from 3 different containers. I'm in the processes of re-running the whole thing to produce a cleaner log file from only one container, if you need it. @trask I am using the connection string from the portal in the applicationinsights.json config, without having changed it. It looks like this: |
thanks @jepperip for clarification. we figured out what caused the failure. I'm working on a fix and will inform you when it becomes available. |
fyi: the fix has been released in 3.2.3. |
I am trying to send logs from a Apache Camel application running in a Docker container to Application Insights.
I have created an Application Insight resource and provided the application with my connection string.
I can connect to the app via the Live Metrics in AI and see that logs are coming in, but when I try to view historic transaction I see no logs.
When looking in the applicationinsights-logs I can see that the agent is starting without complaints. But, after running a while I get this:
When looking at the source-code the instrumenation key seems to be missing from the context in com.microsoft.applicationinsights.agent.internal.httpclient.RedirectPolicy
I've tried providing the connection string in the applicationinsights.json-file and via the env-var APPLICATIONINSIGHTS_CONNECTION_STRING without seeing any difference.
I've also tried to provide the instrumentation key explicitly by providing it via APPINSIGHTS_INSTRUMENTATIONKEY without success.
I have tried running a similar setup outside the Docker container, with Camel and the same connection string, and it works fine.
Now, I understand that there may be multiple causes to why I'm not seeing my logs in AI so for this report I'm focusing on the error I get in the logs.
Might be relevant that I get other exceptions before this, so I thought this was related: #1927 but I have upgraded to v3.2.2 as suggested in that issue.
Expected behavior
No error regarding missing instrumentation key when connection string has been provided.
Actual behavior
Getting error "instrumentationKey must be non-null when using ikey redirect policy" when connection string has been provided.
System information
Please provide the following information:
Logs
applicationinsights.log
The logs is from 3 different applications. They all run the same Java and Linux versions. You can see that I have tried different configurations. My last run starts at line 513. I get all kinds of fun exceptions during my runs.
The text was updated successfully, but these errors were encountered: