-
Notifications
You must be signed in to change notification settings - Fork 287
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
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
left comments.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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
…crosoft/ApplicationInsights-dotnet into rajrang/ingestionstatusmetric
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
…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.)
TransmissionStatusEvent
inTransmission
could be wired up throughServerTelemetryChannel
. Subscriber will utilize a public property inServerTelemetryChannel
to attach an eventFor another example, please refer test method
TestTransmissionStatusEventWithEventsFromMultipleIKey
inTransmissionTest.cs
SendAsync
completion (once response is received from ingestion service) inTransmission
. This passesSender
asMicrosoft.ApplicationInsights.Channel.Transmission
andTransmissionStatusEventArgs
withMicrosoft.ApplicationInsights.Extensibility.Implementation.HttpWebResponseWrapper
to subscriberTransmission
andHttpWebResponseWrapper
Checklist