Ingestion service data delivery status#1887
Conversation
...oft.ApplicationInsights.Test/Microsoft.ApplicationInsights.Tests/Channel/TransmissionTest.cs
Show resolved
Hide resolved
...oft.ApplicationInsights.Test/Microsoft.ApplicationInsights.Tests/Channel/TransmissionTest.cs
Show resolved
Hide resolved
BASE/src/Microsoft.ApplicationInsights/Channel/TransmissionStatusEventArgs.cs
Show resolved
Hide resolved
...oft.ApplicationInsights.Test/Microsoft.ApplicationInsights.Tests/Channel/TransmissionTest.cs
Show resolved
Hide resolved
...oft.ApplicationInsights.Test/Microsoft.ApplicationInsights.Tests/Channel/TransmissionTest.cs
Show resolved
Hide resolved
cijothomas
left a comment
There was a problem hiding this comment.
Left comments.
We need sample usage code in the PR description to help users onboard to this feature as well.
|
I was looking through the PR code and got a question: Would the metric be accurate if it does not include the failures? |
Plan was to add complete working solution in samples folder. I mentioned it n |
BASE/src/Microsoft.ApplicationInsights/Channel/TransmissionStatusEventArgs.cs
Outdated
Show resolved
Hide resolved
BASE/src/Microsoft.ApplicationInsights/Extensibility/Implementation/Tracing/CoreEventSource.cs
Outdated
Show resolved
Hide resolved
...oft.ApplicationInsights.Test/Microsoft.ApplicationInsights.Tests/Channel/TransmissionTest.cs
Show resolved
Hide resolved
|
@rajkumar-rangaraj if customers are using the in-memory channel, is there a way to subscribe to the transmission status update?
|
Changes will work only for |
…crosoft/ApplicationInsights-dotnet into rajrang/ingestionstatusmetric
changing to ubuntu-latest (18.04 for now) reverting moving to ubuntu-latest Remove EmptyApp tests as its covered eslewhere (#2025) * Remove EmptyApp tests as its covered eslewhere * cleanup Ingestion service data delivery status (#1887) * Added eventhandler to transmission * Updated public API * Modified changelog.md * Added more tests * Fix API * Added coverage for timeout * Update to API * Modified comment in transmission. * PR Comments * PR feedback * Fix test * Added TransmissionStatusEvent to InMemoryChannel. * Remove Inmemory change Co-authored-by: Cijo Thomas <[email protected]> Co-authored-by: Timothy Mothra <[email protected]> update version of Microsoft.AspNetCore.Hosting to 2.1.0 (and fix major test bug) (#2026) * Refactor tests and fix several issues in one go * remove unwanted changes * update changelog Co-authored-by: Timothy Mothra Lee <[email protected]> changing to posix updating orderby
changing to ubuntu-latest (18.04 for now) reverting moving to ubuntu-latest Remove EmptyApp tests as its covered eslewhere (#2025) * Remove EmptyApp tests as its covered eslewhere * cleanup Ingestion service data delivery status (#1887) * Added eventhandler to transmission * Updated public API * Modified changelog.md * Added more tests * Fix API * Added coverage for timeout * Update to API * Modified comment in transmission. * PR Comments * PR feedback * Fix test * Added TransmissionStatusEvent to InMemoryChannel. * Remove Inmemory change Co-authored-by: Cijo Thomas <[email protected]> Co-authored-by: Timothy Mothra <[email protected]> update version of Microsoft.AspNetCore.Hosting to 2.1.0 (and fix major test bug) (#2026) * Refactor tests and fix several issues in one go * remove unwanted changes * update changelog Co-authored-by: Timothy Mothra Lee <[email protected]> changing to posix updating orderby
changing to ubuntu-latest (18.04 for now) reverting moving to ubuntu-latest Remove EmptyApp tests as its covered eslewhere (#2025) * Remove EmptyApp tests as its covered eslewhere * cleanup Ingestion service data delivery status (#1887) * Added eventhandler to transmission * Updated public API * Modified changelog.md * Added more tests * Fix API * Added coverage for timeout * Update to API * Modified comment in transmission. * PR Comments * PR feedback * Fix test * Added TransmissionStatusEvent to InMemoryChannel. * Remove Inmemory change Co-authored-by: Cijo Thomas <[email protected]> Co-authored-by: Timothy Mothra <[email protected]> update version of Microsoft.AspNetCore.Hosting to 2.1.0 (and fix major test bug) (#2026) * Refactor tests and fix several issues in one go * remove unwanted changes * update changelog Co-authored-by: Timothy Mothra Lee <[email protected]> changing to posix updating orderby removing unused usings and space
changing to ubuntu-latest (18.04 for now) reverting moving to ubuntu-latest Remove EmptyApp tests as its covered eslewhere (#2025) * Remove EmptyApp tests as its covered eslewhere * cleanup Ingestion service data delivery status (#1887) * Added eventhandler to transmission * Updated public API * Modified changelog.md * Added more tests * Fix API * Added coverage for timeout * Update to API * Modified comment in transmission. * PR Comments * PR feedback * Fix test * Added TransmissionStatusEvent to InMemoryChannel. * Remove Inmemory change Co-authored-by: Cijo Thomas <[email protected]> Co-authored-by: Timothy Mothra <[email protected]> update version of Microsoft.AspNetCore.Hosting to 2.1.0 (and fix major test bug) (#2026) * Refactor tests and fix several issues in one go * remove unwanted changes * update changelog Co-authored-by: Timothy Mothra Lee <[email protected]> changing to posix updating orderby removing unused usings and space updating trx folder path udoing
changing to ubuntu-latest (18.04 for now) reverting moving to ubuntu-latest Remove EmptyApp tests as its covered eslewhere (#2025) * Remove EmptyApp tests as its covered eslewhere * cleanup Ingestion service data delivery status (#1887) * Added eventhandler to transmission * Updated public API * Modified changelog.md * Added more tests * Fix API * Added coverage for timeout * Update to API * Modified comment in transmission. * PR Comments * PR feedback * Fix test * Added TransmissionStatusEvent to InMemoryChannel. * Remove Inmemory change Co-authored-by: Cijo Thomas <[email protected]> Co-authored-by: Timothy Mothra <[email protected]> update version of Microsoft.AspNetCore.Hosting to 2.1.0 (and fix major test bug) (#2026) * Refactor tests and fix several issues in one go * remove unwanted changes * update changelog Co-authored-by: Timothy Mothra Lee <[email protected]> changing to posix updating orderby removing unused usings and space updating trx folder path udoing
Ingestion service delivery status
Users could track ingestion service response by subscribing to transmission event. Notification is sent to subscriber whenever channel makes an attempt to send telemetry to the Ingestion service. The notification event includes information about the response, and also the telemetry items which were part of the transmission. Subscriber could extract information from ingestion response. For example, following metrics could be extracted.
Changes
(Please provide a brief description of the changes here.)
TransmissionStatusEventinTransmissioncould be wired up throughServerTelemetryChannel. Subscriber will utilize a public property inServerTelemetryChannelto attach an eventFor another example, please refer test method
TestTransmissionStatusEventWithEventsFromMultipleIKeyinTransmissionTest.csSendAsynccompletion (once response is received from ingestion service) inTransmission. This passesSenderasMicrosoft.ApplicationInsights.Channel.TransmissionandTransmissionStatusEventArgswithMicrosoft.ApplicationInsights.Extensibility.Implementation.HttpWebResponseWrapperto subscriberTransmissionandHttpWebResponseWrapperChecklist