Skip to content

Commit

Permalink
Use appropriate namespace for NoOpTelemetryModule. (#2442)
Browse files Browse the repository at this point in the history
* Use appropriate namespace for NoOpTelemetryModule.

The Shared.Implementation namespace causes compile errors for any project that references the Microsoft.ApplicationInsights.AspNetCore package and has a type named Shared.

* Update changelog for NoOpTelemetryModule namespace change.

* Update CHANGELOG.md

Co-authored-by: Cijo Thomas <cithomas@microsoft.com>
Co-authored-by: Timothy Mothra <tilee@microsoft.com>
  • Loading branch information
3 people committed May 11, 2022
1 parent 5aed71e commit b9733c9
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
## VNext
- [LOGGING: Make TelemetryConfiguration configurable in ApplicationInsightsLoggingBuilderExtensions](https://github.com/microsoft/ApplicationInsights-dotnet/issues/1944)
- [Added support for distributed tracing with Azure.Messaging.ServiceBus](https://github.com/microsoft/ApplicationInsights-dotnet/pull/2593)
- [Move internal type from `Shared` to `Microsoft` namespace](https://github.com/microsoft/ApplicationInsights-dotnet/pull/2442)

## Version 2.21.0-beta1
- [Support IPv6 in request headers](https://github.com/microsoft/ApplicationInsights-dotnet/issues/2521)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection.Extensions;
using Microsoft.Extensions.Options;
using Shared.Implementation;

/// <summary>
/// Extension methods for <see cref="IServiceCollection"/> that allow adding Application Insights services to application.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,6 @@
using Microsoft.Extensions.Logging;
using Microsoft.Extensions.Options;

using Shared.Implementation;

/// <summary>
/// Extension methods for <see cref="IServiceCollection"/> that allow adding Application Insights services to application.
/// </summary>
Expand Down
6 changes: 5 additions & 1 deletion NETCORE/src/Shared/Implementation/NoOpTelemetryModule.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
namespace Shared.Implementation
#if AI_ASPNETCORE_WEB
namespace Microsoft.ApplicationInsights.AspNetCore
#else
namespace Microsoft.ApplicationInsights.WorkerService
#endif
{
using System.Diagnostics.CodeAnalysis;
using Microsoft.ApplicationInsights.Extensibility;
Expand Down

0 comments on commit b9733c9

Please sign in to comment.