Skip to content

Commit

Permalink
Removed Service.Name from Tags
Browse files Browse the repository at this point in the history
  • Loading branch information
mrapavy committed Dec 15, 2023
1 parent 9d9d2df commit 143d796
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 7 deletions.
1 change: 0 additions & 1 deletion src/SerilogEcsLogging/Logging/EcsMapper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ public static Elastic.CommonSchema.Base MapLogEvent(Elastic.CommonSchema.Base ec
{
result.Service ??= new Service();
result.Service.Name = assemblyName.ToString().Trim('"');
result.Tags = result.Tags != null ? result.Tags.Concat(new[] { result.Service.Name }).ToArray() : new[] { result.Service.Name };
}

// Service.Version
Expand Down
6 changes: 1 addition & 5 deletions src/SerilogEcsLogging/Logging/HostBuilderExtensions.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
using Elastic.CommonSchema.Serilog;
using Microsoft.AspNetCore.Http;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.Hosting;
using Microsoft.Extensions.Hosting;
using Serilog;
using Serilog.Events;

namespace SerilogEcsLogging.Logging;

Expand Down
2 changes: 1 addition & 1 deletion src/SerilogEcsLogging/SerilogEcsLogging.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<Authors>mrapavy</Authors>
<PackageProjectUrl>https://github.com/mrapavy/serilog-ecs-logging</PackageProjectUrl>
<Version>1.0.7</Version>
<Version>1.0.8</Version>
</PropertyGroup>

<ItemGroup>
Expand Down

0 comments on commit 143d796

Please sign in to comment.