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

Bump app insights dependencies #2906

Closed
wants to merge 1 commit into from

Conversation

ilmax
Copy link

@ilmax ilmax commented Aug 25, 2022

Fixes #2900

I've updated all the application insights dependencies to 2.21 and the SnapshotCollector to the latest stable 1.4.3, anything else that needs to be done here @JoshLove-msft ?

@ilmax
Copy link
Author

ilmax commented Sep 8, 2022

@mathewc By any chance, can you have a look at this one?

@mathewc
Copy link
Member

mathewc commented Sep 8, 2022

Looks good to me - @brettsam see any issues here? I notice that even the Functions Host hasn't pulled in this new version yet - it's still on 2.20.

@brettsam
Copy link
Member

I swear there was a reason we had to abandon updates to this package -- maybe a dependency could cause v3 to break if we took it due to some major bump?

Let me try to figure it out...

@brettsam
Copy link
Member

That doesn't seem to be it -- we may have just started doing these changes directly in azure-functions-host for convenience. That meant we didn't have to do a release, etc, just to bump to a newer version.

@ilmax -- I assume the end-goal for these versions to be in Functions production?

@brettsam
Copy link
Member

n/m -- appears to be a WebJobs requirement based on the linked issue. Right now, customers should be able to directly reference the required App Insights nuget packages in their WebJobs app; nothing should be preventing that...

Unfortunately, our release flow for these packages is slow due to the dependency in Functions production. So once this is in, the flow needs to be:

  1. We should probably follow-up and sever the project dependency on WebJobs.Host so we don't need a full release of everything just for this. Instead, we can have it depend on the last deployed nuget...
  2. Get an official build and move it all the way to host in v3.x and dev.
  3. Wait until this makes its way to production.
  4. Then publish this package on nuget.

@brettsam
Copy link
Member

/azp run

@azure-pipelines
Copy link

Azure Pipelines could not run because the pipeline triggers exclude this branch/path.

@brettsam
Copy link
Member

The build fails here b/c of some test dependencies. Let me pull this and fix it up.

@ilmax
Copy link
Author

ilmax commented Sep 16, 2022

n/m -- appears to be a WebJobs requirement based on the linked issue. Right now, customers should be able to directly reference the required App Insights nuget packages in their WebJobs app; nothing should be preventing that...

So we just need to reference the right version of AppInsights to fix the issue? I'd like still to update AppInsight package here to do the right thing by default, since the old ServiceBus library is deprecated and the new one isn't supported properly by the referenced version of the AppInsights library

@brettsam
Copy link
Member

Any direct reference in your project will override what we reference here and should get you running with the latest; this shouldn't be blocking anyone. It's not required that we update (although it's a nicer experience).

That being said, I've created a new PR to update b/c it was easier to manage from testing, etc. I'm going to close this one in favor of that: #2916

@brettsam brettsam closed this Sep 16, 2022
@JoshLove-msft
Copy link
Member

Any direct reference in your project will override what we reference here and should get you running with the latest; this shouldn't be blocking anyone. It's not required that we update (although it's a nicer experience).

Is this true for the Isolated worker? I was under the impression that users couldn't influence the dependencies used there.

@ilmax
Copy link
Author

ilmax commented Sep 29, 2022

Is this true for the Isolated worker?

I updated my webjobs and referenced the 2.21 version of application insights, but still the issue is not resolved, within application insights I still don't have end to end tracing of service bus messages.

@brettsam Any updates on #2916? This is causing real issues to customers. Any ETA on when the PR one can be merged an a new version of the WebJob SDK be released?

@brettsam
Copy link
Member

@ilmax -- to be clear, you are running a WebJobs app, not a Functions app?

You may need to explain what you're trying to do. WebJobs and Functions don't do much with SB tracing so if updating to 2.21.0 didn't work, we may need to follow up with SB and App Insights teams.

Next release of Functions will include 2.21.0 -- Azure/azure-functions-host#8838

@ilmax
Copy link
Author

ilmax commented Oct 13, 2022

@ilmax -- to be clear, you are running a WebJobs app, not a Functions app?

Correct.

In order to get it working I had to add to every project an additional reference (Microsoft.ApplicationInsights.DependencyCollector v 2.21.0) that's actually where the code for dealing with dependency is.

So it can be worked around, it just takes times, it would be much easier to reference the correct AI version in the sdk.

@brettsam
Copy link
Member

Thanks for confirming you were able to get it working.

The commit is in, but it takes a while (a month maybe) before it can be released to nuget.org as it needs to be released globally in Functions production first.

@ilmax ilmax deleted the feat/update-app-insights branch February 1, 2023 09:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update dependency on Microsoft.ApplicationInsights
4 participants