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

Enable use of OpenTelemetry.Extensions.Hosting #7253

Merged
merged 2 commits into from
Apr 6, 2021

Conversation

madelinegordon
Copy link
Contributor

@madelinegordon madelinegordon commented Mar 27, 2021

Issue describing the changes in this PR

resolves #7007

Pull request checklist

  • 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
  • I have added all required tests (Unit tests, E2E tests)

Additional information

Additional PR information

@@ -54,7 +54,8 @@ private static ExpectedDependencyBuilder CreateExpectedDependencies()
.Optional<JobHostService>() // Missing when host is offline.
.Optional<FunctionsSyncService>() // Conditionally registered.
.OptionalExternal("Microsoft.AspNetCore.DataProtection.Internal.DataProtectionHostedService", "Microsoft.AspNetCore.DataProtection", "adb9793829ddae60") // Popularly-registered by DataProtection.
.OptionalExternal("Microsoft.Extensions.Diagnostics.HealthChecks.HealthCheckPublisherHostedService", "Microsoft.Extensions.Diagnostics.HealthChecks", "adb9793829ddae60"); // Popularly-registered by Health Check Monitor.
.OptionalExternal("Microsoft.Extensions.Diagnostics.HealthChecks.HealthCheckPublisherHostedService", "Microsoft.Extensions.Diagnostics.HealthChecks", "adb9793829ddae60") // Popularly-registered by Health Check Monitor.
.OptionalExternal("OpenTelemetry.Extensions.Hosting.Implementation.TelemetryHostedService", "OpenTelemetry.Extensions.Hosting", "adb9793829ddae60");

Choose a reason for hiding this comment

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

The 3rd parameter is "assemblyPublicKeyToken" , which is wrong here. The correct one is "7bd6737fe5b67e3c"
-- which you can get with "sn -T " on VS developer command prompt, for example.

Please add a short comment here (something like enable OpenTelemetry.Net instrumentation library).

In addition, please add a row to the release_notes.md in the root of the repository like

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thank you for your review!

Copy link

@panuva-sympa panuva-sympa left a comment

Choose a reason for hiding this comment

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

This will be highly useful to get e.g. NewRelic and other instrumentations supported by OpenTelemetry.Net to work with Azure Functions.

Please fix the assemblyPublicKeyToken to the correct one and add the row to release_notes.md. In addition please tick the boxes on the PR checklist in the PR description.

After these changes, let's try to get approval from the team.

fabiocav
fabiocav previously approved these changes Apr 3, 2021
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.

This looks good. Can you please go through the PR checklist above as well? Thanks!

ankitkumarr
ankitkumarr previously approved these changes Apr 5, 2021
@madelinegordon madelinegordon merged commit 97a7f74 into dev Apr 6, 2021
@madelinegordon madelinegordon deleted the magordon/enabledependency branch April 6, 2021 17:22
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

Successfully merging this pull request may close these issues.

Host Error with OpenTelemetry.Extensions.Hosting
4 participants