Skip to content

Commit

Permalink
Merge branch 'main' into sanitize-http.url
Browse files Browse the repository at this point in the history
  • Loading branch information
cijothomas authored Apr 8, 2021
2 parents 275d431 + d073906 commit 8c5360e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -116,13 +116,15 @@ public override void OnStartActivity(Activity activity, object payload)
{
AspNetInstrumentationEventSource.Log.RequestIsFilteredOut(activity.OperationName);
activity.IsAllDataRequested = false;
activity.ActivityTraceFlags &= ~ActivityTraceFlags.Recorded;
return;
}
}
catch (Exception ex)
{
AspNetInstrumentationEventSource.Log.RequestFilterException(ex);
activity.IsAllDataRequested = false;
activity.ActivityTraceFlags &= ~ActivityTraceFlags.Recorded;
return;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,13 +120,15 @@ public override void OnStartActivity(Activity activity, object payload)
{
AspNetCoreInstrumentationEventSource.Log.RequestIsFilteredOut(activity.OperationName);
activity.IsAllDataRequested = false;
activity.ActivityTraceFlags &= ~ActivityTraceFlags.Recorded;
return;
}
}
catch (Exception ex)
{
AspNetCoreInstrumentationEventSource.Log.RequestFilterException(ex);
activity.IsAllDataRequested = false;
activity.ActivityTraceFlags &= ~ActivityTraceFlags.Recorded;
return;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -113,13 +113,15 @@ public override void OnStartActivity(Activity activity, object payload)
{
HttpInstrumentationEventSource.Log.RequestIsFilteredOut(activity.OperationName);
activity.IsAllDataRequested = false;
activity.ActivityTraceFlags &= ~ActivityTraceFlags.Recorded;
return;
}
}
catch (Exception ex)
{
HttpInstrumentationEventSource.Log.RequestFilterException(ex);
activity.IsAllDataRequested = false;
activity.ActivityTraceFlags &= ~ActivityTraceFlags.Recorded;
return;
}

Expand Down

0 comments on commit 8c5360e

Please sign in to comment.