Skip to content

OTel related package update #11216

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

Merged
merged 6 commits into from
Aug 11, 2025
Merged

OTel related package update #11216

merged 6 commits into from
Aug 11, 2025

Conversation

RohitRanjanMS
Copy link
Member

@RohitRanjanMS RohitRanjanMS commented Jul 29, 2025

Updating Otel related packages. This led to a major version bump in some of the dependent packages.

IMPORTANT: The dependencies in WebHost have changed and MUST be reviewed before proceeding. Please follow up with brettsam, fabiocav or mathewc for approval.

Previous file: D:\a_work\1\s\out\bin\WebJobs.Script.Tests\debug\Microsoft.Azure.WebJobs.Script.WebHost.deps.json
New file:      D:\a_work\1\s\out\bin\WebJobs.Script.WebHost\debug\Microsoft.Azure.WebJobs.Script.WebHost.deps.json


Changed:
- Azure.Monitor.OpenTelemetry.Exporter.dll: 1.3.0.0/1.300.24.10803 -> 1.4.0.0/1.400.25.25902
- Microsoft.Extensions.Configuration.Binder.dll: 8.0.0.0/8.0.724.31311 -> 9.0.0.0/9.0.24.52809
- Microsoft.Extensions.DependencyInjection.Abstractions.dll: 8.0.0.0/8.0.1024.46610 -> 9.0.0.0/9.0.625.26613
- Microsoft.Extensions.DependencyInjection.dll: 8.0.0.0/8.0.1024.46610 -> 9.0.0.0/9.0.24.52809
- Microsoft.Extensions.Logging.Abstractions.dll: 8.0.0.0/8.0.1325.6609 -> 9.0.0.0/9.0.625.26613
- Microsoft.Extensions.Logging.dll: 8.0.0.0/8.0.1024.46610 -> 9.0.0.0/9.0.24.52809
- Microsoft.Extensions.Options.dll: 8.0.0.0/8.0.224.6711 -> 9.0.0.0/9.0.625.26613
- OpenTelemetry.Api.dll: 1.0.0.0/1.9.0.1312 -> 1.0.0.0/1.12.0.1644
- OpenTelemetry.Api.ProviderBuilderExtensions.dll: 1.0.0.0/1.9.0.1312 -> 1.0.0.0/1.12.0.1644
- OpenTelemetry.dll: 1.0.0.0/1.9.0.1312 -> 1.0.0.0/1.12.0.1644
- OpenTelemetry.Exporter.OpenTelemetryProtocol.dll: 1.0.0.0/1.9.0.1312 -> 1.0.0.0/1.12.0.1644
- OpenTelemetry.Extensions.Hosting.dll: 1.0.0.0/1.9.0.1312 -> 1.0.0.0/1.12.0.1644
- OpenTelemetry.Instrumentation.AspNetCore.dll: 1.9.0.42/1.9.0.42 -> 1.12.0.490/1.12.0.490
- OpenTelemetry.Instrumentation.Http.dll: 1.9.0.41/1.9.0.41 -> 1.12.0.493/1.12.0.493
- OpenTelemetry.Instrumentation.Runtime.dll: 1.9.0.57/1.9.0.57 -> 1.12.0.496/1.12.0.496
- OpenTelemetry.PersistentStorage.Abstractions.dll: 1.0.0.0/1.0.0.0 -> 1.0.1.378/1.0.1.378
- OpenTelemetry.PersistentStorage.FileSystem.dll: 1.0.0.0/1.0.0.0 -> 1.0.1.378/1.0.1.378


Removed:
- Azure.Monitor.OpenTelemetry.AspNetCore.dll: 1.2.0.0/1.200.24.16203
- Azure.Monitor.OpenTelemetry.LiveMetrics.dll: 1.0.0.0/1.0.24.15803
- OpenTelemetry.Exporter.Console.dll: 1.0.0.0/1.6.0.1006


Added:
- Microsoft.Extensions.Configuration.Abstractions.dll: 9.0.0.0/9.0.625.26613
- Microsoft.Extensions.Configuration.dll: 9.0.0.0/9.0.24.52809
- Microsoft.Extensions.Diagnostics.Abstractions.dll: 9.0.0.0/9.0.625.26613
- Microsoft.Extensions.FileProviders.Abstractions.dll: 9.0.0.0/9.0.625.26613
- Microsoft.Extensions.Hosting.Abstractions.dll: 9.0.0.0/9.0.625.26613
- Microsoft.Extensions.Logging.Configuration.dll: 9.0.0.0/9.0.24.52809
- Microsoft.Extensions.Options.ConfigurationExtensions.dll: 9.0.0.0/9.0.24.52809
- Microsoft.Extensions.Primitives.dll: 9.0.0.0/9.0.625.26613
- System.Diagnostics.DiagnosticSource.dll: 9.0.0.0/9.0.625.26613

Issue describing the changes in this PR

resolves #11220

Pull request checklist

IMPORTANT: Currently, changes must be backported to the in-proc branch to be included in Core Tools and non-Flex deployments.

  • Backporting to the in-proc branch is not required
    • Otherwise: Link to backporting PR
  • My changes do not require documentation changes
    • Otherwise: Documentation issue linked to PR
  • My changes should not be added to the release notes for the next release
    • Otherwise: I've added my notes to release_notes.md
  • My changes do not need to be backported to a previous version
    • Otherwise: Backport tracked by issue/PR #issue_or_pr
  • My changes do not require diagnostic events changes
    • Otherwise: I have added/updated all related diagnostic events and their documentation (Documentation issue linked to PR)
  • I have added all required tests (Unit tests, E2E tests)

@RohitRanjanMS RohitRanjanMS changed the title Initial commit. OTel related package update Jul 30, 2025
@RohitRanjanMS RohitRanjanMS marked this pull request as ready for review August 4, 2025 17:03
@Copilot Copilot AI review requested due to automatic review settings August 4, 2025 17:03
@RohitRanjanMS RohitRanjanMS requested review from fabiocav, brettsam, mathewc and a team as code owners August 4, 2025 17:03
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR updates OpenTelemetry (OTel) related packages to newer versions, removing the Azure Monitor ASP.NET Core package and updating dependencies from v8 to v9 for several Microsoft Extensions packages.

  • Replaces Azure.Monitor.OpenTelemetry.AspNetCore with Azure.Monitor.OpenTelemetry.Exporter
  • Updates OpenTelemetry packages from 1.9.0 to 1.12.0
  • Upgrades Microsoft.Extensions packages from 8.x to 9.x versions

Reviewed Changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated no comments.

Show a summary per file
File Description
WebJobs.Script.csproj Updates OTel package references and removes Azure Monitor ASP.NET Core dependency
OpenTelemetryConfigurationExtensions.cs Removes LiveMetrics configuration code to match package changes
runtimeassemblies.json Removes Azure.Monitor.OpenTelemetry.AspNetCore from runtime assemblies
Test project files Updates package references to match new versions
release_notes.md Documents the OTel package updates
Comments suppressed due to low confidence (1)

src/WebJobs.Script/Diagnostics/OpenTelemetry/OpenTelemetryConfigurationExtensions.cs:229

  • The removed method ConfigureAzureMonitorOptions for LiveMetricsExporterOptions suggests there was previously an overload or duplicate method name. The remaining method with the same name handles AzureMonitorExporterOptions. Consider verifying that all calls to this method are correctly routing to the remaining overload.
}

Copy link
Contributor

@jviau jviau left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just want to confirm we are okay with the 9.x revs in regard to extension impact.

@RohitRanjanMS
Copy link
Member Author

I reviewed API changes with Fabio and Matthew; we don't anticipate any issue.

Copy link
Member

@fabiocav fabiocav left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approving with one non-blocking comment.

@RohitRanjanMS RohitRanjanMS merged commit 19c97ab into dev Aug 11, 2025
9 checks passed
@RohitRanjanMS RohitRanjanMS deleted the roranjan/package-update branch August 11, 2025 18:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update Otel related nuget packages.
4 participants