Skip to content

Commit

Permalink
Merge branch 'main' into add-aiconnectionstring-to-nlog-targets
Browse files Browse the repository at this point in the history
  • Loading branch information
saidi-adot authored Sep 22, 2023
2 parents 59b35e9 + 1769773 commit 7596a82
Show file tree
Hide file tree
Showing 17 changed files with 102 additions and 65 deletions.
6 changes: 0 additions & 6 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,3 @@ The PR will trigger build, unit tests, and functional tests automatically. Pleas

### Notes for authors:
- FxCop and other analyzers will fail the build. To see these errors yourself, compile localy using the Release configuration.

### Notes for reviewers:

- We support [comment build triggers](https://docs.microsoft.com/azure/devops/pipelines/repos/github?view=azure-devops&tabs=yaml#comment-triggers)
- `/AzurePipelines run` will queue all builds
- `/AzurePipelines run <pipeline-name>` will queue a specific build
2 changes: 1 addition & 1 deletion .github/workflows/build-and-test-BASE.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
- uses: actions/checkout@v3

- name: Setup dotnet
uses: actions/setup-dotnet@v3.0.3
uses: actions/setup-dotnet@v3.1.0
with:
dotnet-version: |
3.1.x
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build-and-test-LOGGING.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
- uses: actions/checkout@v3

- name: Setup dotnet
uses: actions/setup-dotnet@v3.0.3
uses: actions/setup-dotnet@v3.1.0
with:
dotnet-version: |
3.1.x
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build-and-test-NETCORE.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
- uses: actions/checkout@v3

- name: Setup dotnet
uses: actions/setup-dotnet@v3.0.3
uses: actions/setup-dotnet@v3.1.0
with:
dotnet-version: |
3.1.x
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build-and-test-WEB.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
- uses: actions/checkout@v3

- name: Setup dotnet
uses: actions/setup-dotnet@v3.0.3
uses: actions/setup-dotnet@v3.1.0
with:
dotnet-version: |
3.1.x
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
ref: ${{ matrix.branch }}

- name: Setup dotnet
uses: actions/setup-dotnet@v3.0.3
uses: actions/setup-dotnet@v3.1.0
with:
dotnet-version: |
3.1.x
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/redfield-sanity-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
- uses: actions/checkout@v3

- name: Setup dotnet
uses: actions/setup-dotnet@v3.0.3
uses: actions/setup-dotnet@v3.1.0
with:
dotnet-version: |
3.1.x
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/sanity.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
- uses: actions/checkout@v3

- name: Setup dotnet
uses: actions/setup-dotnet@v3.0.3
uses: actions/setup-dotnet@v3.1.0
with:
dotnet-version: |
3.1.x
Expand Down
2 changes: 1 addition & 1 deletion .props/_GlobalStaticVersion.props
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<SemanticVersionMajor>2</SemanticVersionMajor>
<SemanticVersionMinor>22</SemanticVersionMinor> <!-- If changing the Minor version, also update the Date value. -->
<SemanticVersionPatch>0</SemanticVersionPatch>
<PreReleaseMilestone>beta2</PreReleaseMilestone> <!--Valid values: beta1, beta2, EMPTY for stable -->
<PreReleaseMilestone>beta3</PreReleaseMilestone> <!--Valid values: beta1, beta2, EMPTY for stable -->
<PreReleaseMilestone Condition="'$(Redfield)' == 'True'">redfield</PreReleaseMilestone>
<PreReleaseMilestone Condition="'$(NightlyBuild)' == 'True'">nightly</PreReleaseMilestone> <!-- Overwrite this property for nightly builds from the DEVELOP branch. -->
<!--
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,7 @@ public void InitializeWithActivityWinsOverCallContext()
currentActivity.Stop();
}

[Ignore("ProactiveSamplingDecision is removed and won't work")]
[TestMethod]
public void InitializeWithActivityRecorded()
{
Expand All @@ -299,6 +300,7 @@ public void InitializeWithActivityRecorded()
currentActivity.Stop();
}

[Ignore("ProactiveSamplingDecision is removed and won't work")]
[TestMethod]
public void InitializeWithActivityRecordedOperationIdSet()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -467,7 +467,7 @@ private void ValidateTelemetry<T>(T telemetry, Activity activity, bool isW3C = t
Assert.IsFalse(telemetry.Properties.ContainsKey("tracestate"));
}

Assert.AreEqual(activity.Recorded ? SamplingDecision.SampledIn : SamplingDecision.None, (telemetry as ISupportAdvancedSampling).ProactiveSamplingDecision);
Assert.AreEqual(SamplingDecision.None, (telemetry as ISupportAdvancedSampling).ProactiveSamplingDecision);
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -46,15 +46,6 @@ telemetryItem is OperationTelemetry &&
telemetryProp.Properties.Add(TracestatePropertyKey, currentActivity.TraceStateString);
}

// update proactive sampling decision if Activity is recorded
// sampling processor may change the decision
if (currentActivity.Recorded &&
telemetryItem is ISupportAdvancedSampling supportSamplingTelemetry &&
supportSamplingTelemetry.ProactiveSamplingDecision == SamplingDecision.None)
{
supportSamplingTelemetry.ProactiveSamplingDecision = SamplingDecision.SampledIn;
}

if (string.IsNullOrEmpty(itemOperationContext.Id))
{
if (currentActivity.IdFormat == ActivityIdFormat.W3C)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
using Microsoft.ApplicationInsights.Metrics.Extensibility;

/// <summary>A metric manager coordinates metrics aggregation at a specific scope.
/// It keeps track of the known metrics and is ultimataly respnsibe for correctly
/// initializeing metric data time series.
/// It keeps track of the known metrics and is ultimately responsibe for correctly
/// initializing metric data time series.
/// Note that a metric manager deals with zero dimensional time series.
/// Metric objects are multidimensional collections of such series and the manager
/// merely holds a collection of such containers for its scope.</summary>
Expand Down
Loading

0 comments on commit 7596a82

Please sign in to comment.