Skip to content

Commit 79b7498

Browse files
Undo SdkVersionType public api change (#54029)
1 parent dde5335 commit 79b7498

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/Internals/SdkVersionUtils.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ private static string GetSdkVersion()
148148
/// <summary>
149149
/// Specifies the type of SDK for telemetry identification and version labeling.
150150
/// </summary>
151-
public enum SdkVersionType
151+
internal enum SdkVersionType
152152
{
153153
/// <summary>Default Azure Monitor OpenTelemetry Exporter.</summary>
154154
Exporter,

sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/tests/Azure.Monitor.OpenTelemetry.Exporter.Tests/CustomerSdkStats/CustomerSdkStatsDimensionsTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ public class CustomerSdkStatsDimensionsTests
1717
[InlineData(SdkVersionType.ShimAspNetCore, "dotnet-core")]
1818
[InlineData(SdkVersionType.ShimWorkerService, "dotnet-worker")]
1919
[InlineData(SdkVersionType.ShimWeb, "dotnet-web")]
20-
public void GetBaseTags_SetsCorrectLanguageDimensionForEachSdkVersionType(SdkVersionType versionType, string expectedLanguage)
20+
internal void GetBaseTags_SetsCorrectLanguageDimensionForEachSdkVersionType(SdkVersionType versionType, string expectedLanguage)
2121
{
2222
// Arrange
2323
var originalVersionType = SdkVersionUtils.s_sdkVersionType;

sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/tests/Azure.Monitor.OpenTelemetry.Exporter.Tests/ResourceExtensionsTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ public void DoesNotSetSdkDistroLabelForWrongValueFromResource()
188188
[InlineData("Microsoft.ApplicationInsights.AspNetCore", "shc", SdkVersionType.ShimAspNetCore)]
189189
[InlineData("Microsoft.ApplicationInsights.WorkerService", "shw", SdkVersionType.ShimWorkerService)]
190190
[InlineData("Microsoft.ApplicationInsights.Web", "shf", SdkVersionType.ShimWeb)]
191-
public void SetsSdkShimLabelForAllShimPackages(string distroName, string expectedLabel, SdkVersionType expectedType)
191+
internal void SetsSdkShimLabelForAllShimPackages(string distroName, string expectedLabel, SdkVersionType expectedType)
192192
{
193193
// SDK version is static, preserve to clean up later.
194194
var sdkVersion = SdkVersionUtils.s_sdkVersion;

0 commit comments

Comments
 (0)