Skip to content

Commit f3a520b

Browse files
author
Matthew Sainsbury
committed
idk
1 parent 993a201 commit f3a520b

File tree

5 files changed

+8
-16
lines changed

5 files changed

+8
-16
lines changed

BASE/Test/Microsoft.ApplicationInsights.Test/Microsoft.ApplicationInsights.Tests/Internal/FeatureMetricEmissionHelperTests.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,17 +38,17 @@ public void ReportsFeaturesSeen()
3838
using var helper1 = FeatureMetricEmissionHelper.GetOrCreate("a", "b");
3939

4040
var metric = helper1.GetFeatureStatsbeat();
41-
41+
4242
// no features reported should not emit metric
4343
Assert.Equal(0, metric.Value);
4444
Assert.Empty(metric.Tags.ToArray());
4545

4646
helper1.MarkFeatureInUse(StatsbeatFeatures.TrackEvent);
4747
helper1.MarkFeatureInUse(StatsbeatFeatures.TrackDependency);
48-
48+
4949
metric = helper1.GetFeatureStatsbeat();
5050
var tags = metric.Tags.ToArray().ToDictionary(v => v.Key, v => v.Value);
51-
51+
5252
Assert.Equal(1, metric.Value);
5353
AssertKey("rp", "unknown", tags);
5454
AssertKey("attach", "Manual", tags);

BASE/src/Microsoft.ApplicationInsights/Extensibility/TelemetryConfiguration.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,10 @@
2929
public sealed class TelemetryConfiguration : IDisposable
3030
{
3131
// internal readonly SamplingRateStore LastKnownSampleRateStore = new SamplingRateStore();
32+
3233
internal const string ApplicationInsightsActivitySourceName = "Microsoft.ApplicationInsights";
3334
internal const string ApplicationInsightsMeterName = "Microsoft.ApplicationInsights";
34-
35+
3536
internal FeatureMetricEmissionHelper FeatureReporter;
3637

3738
private static readonly Lazy<TelemetryConfiguration> DefaultInstance =
@@ -222,7 +223,7 @@ internal string ExtensionVersion
222223
this.extensionVersion = value;
223224
}
224225
}
225-
226+
226227
/// <summary>
227228
/// Gets the default ActivitySource used by TelemetryClient.
228229
/// </summary>

BASE/src/Microsoft.ApplicationInsights/Internal/FeatureMetricEmissionHelper.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ internal static FeatureMetricEmissionHelper GetOrCreate(string ciKey, string ver
5050
{
5151
string key = $"{ciKey};{version}";
5252

53-
return HelperRegistry.GetOrAdd(key, _ =>
53+
return HelperRegistry.GetOrAdd(key, _ =>
5454
{
5555
return new FeatureMetricEmissionHelper(ciKey, version);
5656
});

BASE/src/Microsoft.ApplicationInsights/Internal/VersionUtils.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ internal class VersionUtils
1919

2020
/// <summary>Application Insights Web shim (Microsoft.ApplicationInsights.Web).</summary>
2121
internal const string ExtensionLabelShimWeb = "shf";
22-
22+
2323
/// <summary>Application Insights NLog shim (Microsoft.ApplicationInsights.NLogTarget).</summary>
2424
internal const string ExtensionLabelShimNLog = "shn";
2525

NETCORE/src/Microsoft.ApplicationInsights.AspNetCore/Extensions/ApplicationInsightsExtensions.cs

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -210,15 +210,6 @@ internal static IOpenTelemetryBuilder UseApplicationInsightsTelemetry(this IOpen
210210
{
211211
exporterOptions.Credential = serviceOptions.Credential;
212212
}
213-
<<<<<<< HEAD
214-
=======
215-
216-
if (!serviceOptions.EnableAdaptiveSampling)
217-
{
218-
exporterOptions.SamplingRatio = 1.0F;
219-
exporterOptions.TracesPerSecond = null;
220-
}
221-
>>>>>>> 51eabb9a (obvious stuff)
222213

223214
if (serviceOptions.EnableQuickPulseMetricStream)
224215
{

0 commit comments

Comments
 (0)