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

Timeout for httpclient for VM metadata service and suppress statsbeat instrumentation #38801

Merged
merged 3 commits into from
Sep 19, 2023

Conversation

vishweshbankwar
Copy link
Member

The change will result in following error for non-Azure VM environments

OpenTelemetry-AzureMonitor-Exporter - EventId: [10], EventName: [VmMetadataFailed], Message: [Failed to get Azure VM Metadata due to an exception. If not hosted in an Azure VM this can safely be ignored. System.AggregateException: One or more errors occurred. (A task was canceled.)
 ---> System.Threading.Tasks.TaskCanceledException: A task was canceled.
   at System.Threading.Tasks.Task.GetExceptions(Boolean includeTaskCanceledExceptions)
   at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
   at System.Threading.Tasks.Task`1.GetResultCore(Boolean waitCompletionNotification)
   at System.Threading.Tasks.Task`1.get_Result()
   at 

@github-actions github-actions bot added the Monitor - Exporter Monitor OpenTelemetry Exporter label Sep 18, 2023
@vishweshbankwar vishweshbankwar changed the title Timeout for httpclient for VM meatdata service and suppress statsbeat instrumentation Timeout for httpclient for VM metadata service and suppress statsbeat instrumentation Sep 18, 2023
@cijothomas
Copy link
Contributor

OpenTelemetry-AzureMonitor-Exporter - EventId: [10], EventName: [VmMetadataFailed], Message: [Failed to get Azure VM Metadata due to an exception. If not hosted in an Azure VM this can safely be ignored. System.AggregateException: One or more errors occurred. (A task was canceled.)

Its not clear what end-users are supposed to do when they see this message.
Lets say the user is on Azure VM and see this message - what should they do?
Or say that the user is non on Azure VM, and see this message - what should they do?
Should they do anything differently based on if the app is on Azure VM vs non Azure VM?

@azure-sdk
Copy link
Collaborator

API change check

API changes are not detected in this pull request.

@TimothyMothra
Copy link
Contributor

If we want something more specific than the "A task was canceled.", we would need to catch the TaskCanceledException and provide a different message. "Connecting to Azure Metadata Service Timedout".

update EventSource message
@TimothyMothra
Copy link
Contributor

Its not clear what end-users are supposed to do when they see this message.

Lets use the same message we use for other Statsbeat errors. This is only for internal telemetry and can safely be ignored.

Copy link
Contributor

@TimothyMothra TimothyMothra left a comment

Choose a reason for hiding this comment

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

LGTM.

@cijothomas
Copy link
Contributor

Its not clear what end-users are supposed to do when they see this message.

Lets use the same message we use for other Statsbeat errors. This is only for internal telemetry and can safely be ignored.

LGTM.

@vishweshbankwar vishweshbankwar merged commit 108a37e into main Sep 19, 2023
15 checks passed
@vishweshbankwar vishweshbankwar deleted the vibankwa/suppress-statsbeat-operation branch September 19, 2023 18:53
m-nash added a commit that referenced this pull request Sep 21, 2023
* Add TraceSpan

* Add TraceSpan

* version funkiness for diagnostics

* Update readme and troubleshooting guide (#38825)

* test utilities (#38828)

* test utilities

* fix usings

* [Storage] Storage Client Options Support Audiences (#38438)

* Initial work for Blob Clients to support Audience

* Export API

* Moved BlobAudience to Models; Added Audience support in DataLake; Addressed PR commeents

* Added audience support for Shares and Queues; Recorded tests; Cannot record tests for files audience tests

* Rerecord failure expected tests

* Adding default scope after resource id is set; Recorded Share Files tests

* Actually removing /.default from tests and correct order of what default to use

* Trying to resolve CI issues with Audience.Equals(string)

* Attempt to fix CI issues

* Cleanup

* Timeout for httpclient for VM metadata service and suppress statsbeat instrumentation (#38801)

* timeout for httpclient and suppress instrument

* Update AzureMonitorExporterEventSource.cs

update EventSource message

---------

Co-authored-by: Timothy Mothra <tilee@microsoft.com>

* Fix offline storage during network errors (#38832)

* Fix offline storage during network errors

* fix net462

* changelog

* remove TraceSpan types

* Fix multiple triggers of the same type adding to DI (#38756)

* Fix multiple triggers of the same type adding to DI

* Compare with created instance

* Enabling ScaleHostEndToEndTest again

* Adding a comment

* export API

* Refactor TryGetHeader on Response

* undo KeyVault

* backout Personalizer

* undo storage

* undo web pub sub

* Fix naming in AddAzureStorageQueuesScaleForTrigger (#38843)

* Add tracing types

* renames

* Support MaxConcurrentCallsPerSession (#38836)

* Storage STG 91 (#38839)

* Fix the ValidateInheritance naming test failures (#38844)

* update

* [RecoveryServicesBackup] Fix LRO issue (#38784)

* Add LRO

* Update CHANGELOG.md

* Update comments

* Add regression tests

* Update assets.json

* update

---------

Co-authored-by: Chengming <v-cruan@microsoft.com>
Co-authored-by: Wei Hu <huwe@microsoft.com>

* Fix the IPAddress serialization issue for Peering (#38824)

* Remove Credential

* API

* refactor

* remove net461 target

* Update AutoRest C# version to 3.0.0-beta.20230920.1 (#38852)

* Update Generator Version 3.0.0-beta.20230920.1

* Update SDK codes

* Update SDK codes

* Update SDK codes

* undo kv

* updates

* missed fies

* Richardcho/cancel add participant (#38794)

* update swagger

* update swagger

* apply swagger updates

* update api

* Revert "apply swagger updates"

This reverts commit 99ebc37.

* auto generate

* add method

* add internal events

* update api

* update api

* update swagger

* auto generate

* add events

* add event processor changes

* fix build

* update api

* update code

* update typo

* fix typo

* add unit tests

* remove dupe file

* update swagger

* fix typo

* fix typo

* fix test

* address PR comments

---------

Co-authored-by: root <root@DESKTOP-6GBNLER>

* [AzureMonitorDistro] disable test (#38840)

* fix test

* investigating test...

* investigating tests

* disable test

* IUtf8JsonSerializable

* Argument

* [AzureMonitorDistro] update OTel ResourceDetectors (#38833)

* update ResourceDetectors

* changelog

* [AzureMonitorExporter] prepare new release. Exporter 1.0.0. Distro beta7 (#38838)

* bump version

* update Readme

* fix date

* fix changelog header

* prepare Distro

* [Storage][DataMovement] Add resource specific checkpoint data classes (#38842)

* RawRequestUriBuilder

* HttpExtensions - 1

* temp

* WIP: HttpPipelineExtensions

* WIP: HttpPipelineExtensions

* Increment version for monitor releases (#38864)

* Increment package version after release of Azure.Monitor.OpenTelemetry.Exporter

* Increment package version after release of Azure.Monitor.OpenTelemetry.AspNetCore

* PipelineProtocolExtensions

* export API

* Increment package version after release of Azure.Identity (#38667)

* add CreateMessage to pipeline

* Add constructor to HttpMessage

* API

* .NET SDK release changes for dataprotection (#38408)

* generating sdk for 2023-05-01

Signed-off-by: SHASHANK SINGH <shashasingh@microsoft.com>

* Addressing breaking change comment

Signed-off-by: SHASHANK SINGH <shashasingh@microsoft.com>

* Changes

Signed-off-by: SHASHANK SINGH <shashasingh@microsoft.com>

* Handling breaking changes

Signed-off-by: SHASHANK SINGH <shashasingh@microsoft.com>

* generating sdk for 2023-05-01

Signed-off-by: SHASHANK SINGH <shashasingh@microsoft.com>

* Addressing breaking change comment

Signed-off-by: SHASHANK SINGH <shashasingh@microsoft.com>

* Changes

Signed-off-by: SHASHANK SINGH <shashasingh@microsoft.com>

* Handling breaking changes

Signed-off-by: SHASHANK SINGH <shashasingh@microsoft.com>

* Updated DataProtectionBackupVaultProperties

* resolved breaking changes in ArmDataProtectionBackupModelFactory

* Add changelog

Signed-off-by: SHASHANK SINGH <shashasingh@microsoft.com>

* fixes

Signed-off-by: SHASHANK SINGH <shashasingh@microsoft.com>

* Renaming parameters

Signed-off-by: SHASHANK SINGH <shashasingh@microsoft.com>

* Update changelog

Signed-off-by: SHASHANK SINGH <shashasingh@microsoft.com>

* Added expected release date

Signed-off-by: SHASHANK SINGH <shashasingh@microsoft.com>

* Renamed NamespacedNameResource

Signed-off-by: SHASHANK SINGH <shashasingh@microsoft.com>

---------

Signed-off-by: SHASHANK SINGH <shashasingh@microsoft.com>
Co-authored-by: SHASHANK SINGH <shashasingh@microsoft.com>
Co-authored-by: Himanshu Agarwal <hiaga@microsoft.com>

* fix chainingclassifier

* Optional

* API

* Utf8JsonRequestBody

* Update MSAL dependencies to latest (#38866)

* STJ type extensions

* move generated oai client into this branch

* pipeline builder for custom policies

* implement Pipeline.Send

* make shared source RawRequestUriBuilder still work without new project ref

* starting to think about policy

* fix

---------

Signed-off-by: SHASHANK SINGH <shashasingh@microsoft.com>
Co-authored-by: Anne Thompson <annelo@microsoft.com>
Co-authored-by: Christopher Scott <chriss@microsoft.com>
Co-authored-by: Jocelyn <41338290+jaschrep-msft@users.noreply.github.com>
Co-authored-by: Amanda Nguyen <48961492+amnguye@users.noreply.github.com>
Co-authored-by: Vishwesh Bankwar <vishweshbankwar@users.noreply.github.com>
Co-authored-by: Timothy Mothra <tilee@microsoft.com>
Co-authored-by: Alexey Rodionov <alrod@inbox.ru>
Co-authored-by: JoshLove-msft <54595583+JoshLove-msft@users.noreply.github.com>
Co-authored-by: Sean McCullough <44180881+seanmcc-msft@users.noreply.github.com>
Co-authored-by: Arthur Ma <arthurma@microsoft.com>
Co-authored-by: Minghao Chen <30464227+HarveyLink@users.noreply.github.com>
Co-authored-by: Chengming <v-cruan@microsoft.com>
Co-authored-by: Wei Hu <huwe@microsoft.com>
Co-authored-by: Azure SDK Bot <53356347+azure-sdk@users.noreply.github.com>
Co-authored-by: richardcho-msft <95773682+richardcho-msft@users.noreply.github.com>
Co-authored-by: root <root@DESKTOP-6GBNLER>
Co-authored-by: Jacob Lauzon <96087589+jalauzon-msft@users.noreply.github.com>
Co-authored-by: Shashank Singh <shashank1306s@gmail.com>
Co-authored-by: SHASHANK SINGH <shashasingh@microsoft.com>
Co-authored-by: Himanshu Agarwal <hiaga@microsoft.com>
yaotongms pushed a commit to yaotongms/azure-sdk-for-net that referenced this pull request Oct 12, 2023
… instrumentation (Azure#38801)

* timeout for httpclient and suppress instrument

* Update AzureMonitorExporterEventSource.cs

update EventSource message

---------

Co-authored-by: Timothy Mothra <tilee@microsoft.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Monitor - Exporter Monitor OpenTelemetry Exporter
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants