-
Notifications
You must be signed in to change notification settings - Fork 123
Conversation
...plicationInsights.AspNetCore/DiagnosticListeners/Implementation/HostingDiagnosticListener.cs
Outdated
Show resolved
Hide resolved
...plicationInsights.AspNetCore/DiagnosticListeners/Implementation/HostingDiagnosticListener.cs
Outdated
Show resolved
Hide resolved
...plicationInsights.AspNetCore/DiagnosticListeners/Implementation/HostingDiagnosticListener.cs
Outdated
Show resolved
Hide resolved
...plicationInsights.AspNetCore/DiagnosticListeners/Implementation/HostingDiagnosticListener.cs
Outdated
Show resolved
Hide resolved
...plicationInsights.AspNetCore/DiagnosticListeners/Implementation/HostingDiagnosticListener.cs
Outdated
Show resolved
Hide resolved
...plicationInsights.AspNetCore/DiagnosticListeners/Implementation/HostingDiagnosticListener.cs
Outdated
Show resolved
Hide resolved
....ApplicationInsights.AspNetCore/DiagnosticListeners/Implementation/MvcDiagnosticsListener.cs
Outdated
Show resolved
Hide resolved
src/Microsoft.ApplicationInsights.AspNetCore/Microsoft.ApplicationInsights.AspNetCore.csproj
Outdated
Show resolved
Hide resolved
src/Microsoft.ApplicationInsights.AspNetCore/Microsoft.ApplicationInsights.AspNetCore.csproj
Outdated
Show resolved
Hide resolved
src/Microsoft.ApplicationInsights.AspNetCore/RequestTrackingTelemetryModule.cs
Outdated
Show resolved
Hide resolved
src/Microsoft.ApplicationInsights.AspNetCore/RequestTrackingTelemetryModule.cs
Outdated
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. continuing to review this....
// Only reply back with AppId if we got an indication that we need to set one | ||
if (!string.IsNullOrWhiteSpace(requestTelemetry.Source)) | ||
{ | ||
SetAppIdInResponseHeader(httpContext, requestTelemetry); |
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.
if we chose to replyback with our app-id only when source only does the same, - i propose to make similar change in asp.net as well to be consistent.
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.
As we discussed couple weeks ago, this actually breaks the existing propagation of appId back to JavaScript if JavaScript could not submit a header "Request-Context" due to header restriction. The suggestion was to put it behind another feature flag "AppServiceONBD" where we can enable it. What do you think?
...plicationInsights.AspNetCore/DiagnosticListeners/Implementation/HostingDiagnosticListener.cs
Outdated
Show resolved
Hide resolved
...plicationInsights.AspNetCore/DiagnosticListeners/Implementation/HostingDiagnosticListener.cs
Outdated
Show resolved
Hide resolved
...plicationInsights.AspNetCore/DiagnosticListeners/Implementation/HostingDiagnosticListener.cs
Show resolved
Hide resolved
...plicationInsights.AspNetCore/DiagnosticListeners/Implementation/HostingDiagnosticListener.cs
Show resolved
Hide resolved
...icrosoft.ApplicationInsights.AspNetCore/Implementation/TelemetryConfigurationOptionsSetup.cs
Show resolved
Hide resolved
...plicationInsights.AspNetCore/DiagnosticListeners/Implementation/HostingDiagnosticListener.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.
@cijothomas , addressed most of the comments, some questions/answers are posted as well, please take a look.
...plicationInsights.AspNetCore/DiagnosticListeners/Implementation/HostingDiagnosticListener.cs
Show resolved
Hide resolved
...plicationInsights.AspNetCore/DiagnosticListeners/Implementation/HostingDiagnosticListener.cs
Outdated
Show resolved
Hide resolved
// Only reply back with AppId if we got an indication that we need to set one | ||
if (!string.IsNullOrWhiteSpace(requestTelemetry.Source)) | ||
{ | ||
SetAppIdInResponseHeader(httpContext, requestTelemetry); |
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.
As we discussed couple weeks ago, this actually breaks the existing propagation of appId back to JavaScript if JavaScript could not submit a header "Request-Context" due to header restriction. The suggestion was to put it behind another feature flag "AppServiceONBD" where we can enable it. What do you think?
...plicationInsights.AspNetCore/DiagnosticListeners/Implementation/HostingDiagnosticListener.cs
Outdated
Show resolved
Hide resolved
...plicationInsights.AspNetCore/DiagnosticListeners/Implementation/HostingDiagnosticListener.cs
Show resolved
Hide resolved
...icrosoft.ApplicationInsights.AspNetCore/Implementation/TelemetryConfigurationOptionsSetup.cs
Show resolved
Hide resolved
...plicationInsights.AspNetCore/DiagnosticListeners/Implementation/HostingDiagnosticListener.cs
Show resolved
Hide resolved
...plicationInsights.AspNetCore/DiagnosticListeners/Implementation/HostingDiagnosticListener.cs
Show resolved
Hide resolved
...icrosoft.ApplicationInsights.AspNetCore/Implementation/TelemetryConfigurationOptionsSetup.cs
Show resolved
Hide resolved
src/Microsoft.ApplicationInsights.AspNetCore/RequestTrackingTelemetryModule.cs
Outdated
Show resolved
Hide resolved
...plicationInsights.AspNetCore/DiagnosticListeners/Implementation/HostingDiagnosticListener.cs
Outdated
Show resolved
Hide resolved
...icrosoft.ApplicationInsights.AspNetCore/Implementation/TelemetryConfigurationOptionsSetup.cs
Show resolved
Hide resolved
@@ -115,7 +115,7 @@ public partial class ContextTagKeys | |||
[global::Bond.Id(505)] | |||
public string UserAccountId { get; set; } | |||
|
|||
[global::Bond.Attribute("Description", "The browser's user agent string as reported by the browser. This property will be used to extract information regarding the customer's browser but will not be stored. Use custom properties to store the original user agent.")] | |||
[global::Bond.Attribute("Description", "The browser's user agent string as reported by the browser. This property will be used to extract informaiton regarding the customer's browser but will not be stored. Use custom properties to store the original user agent.")] |
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.
Informaiton?
@@ -135,7 +135,7 @@ public partial class ContextTagKeys | |||
[global::Bond.Id(705)] | |||
public string CloudRole { get; set; } | |||
|
|||
[global::Bond.Attribute("Description", "Name of the instance where the application is running. Computer name for on-premises, instance name for Azure.")] | |||
[global::Bond.Attribute("Description", "Name of the instance where the application is running. Computer name for on-premisis, instance name for Azure.")] |
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.
premises is correct?!
@@ -28,9 +28,9 @@ namespace AI | |||
{ | |||
using System.Collections.Generic; | |||
|
|||
[global::Bond.Attribute("Description", "Instances of Message represent printf-like trace statements that are text-searched. Log4Net, NLog and other text-based log file entries are translated into instances of this type. The message does not have measurements.")] | |||
[global::Bond.Attribute("Description", "Instances of Message represent printf-like trace statements that are text-searched. Log4Net, NLog and other text-based log file entries are translated into intances of this type. The message does not have measurements.")] |
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.
instances is correct?! Review of the wording of all changes here?
@@ -59,7 +59,7 @@ public partial class RemoteDependencyData | |||
[global::Bond.Id(61), global::Bond.Required] | |||
public string duration { get; set; } | |||
|
|||
[global::Bond.Attribute("Description", "Indication of successful or unsuccessful call.")] | |||
[global::Bond.Attribute("Description", "Indication of successfull or unsuccessfull call.")] |
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.
Just one "l" as before
@@ -63,7 +58,7 @@ public partial class RequestData | |||
[global::Bond.Id(60), global::Bond.Required] | |||
public string responseCode { get; set; } | |||
|
|||
[global::Bond.Attribute("Description", "Indication of successful or unsuccessful call.")] | |||
[global::Bond.Attribute("Description", "Indication of successfull or unsuccessfull call.")] |
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.
same here
WIP PR to double-check logic before I start merging with develop and utilize feature flags:
The rest of PR is some auto-generated files update.
P.S. Request objects used to be leveraging Object Pool in this PR, but Hosting Diagnostics listener returns them back to pool too early (after Processors but before Channel stopped using ITelemetry item), so it requires making Pool visible from inside Channels to return appropriately or it requires cloning only sampled in items and returning original request back to object pool before channels.