Skip to content

Commit

Permalink
Ensure HttpContextEnrichments gets pushed down as scalar value (#443)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mpdreamz authored Sep 18, 2024
1 parent 5134fe2 commit ef55ecb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Elastic.CommonSchema.Serilog/HttpContextEnricher.cs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public void Enrich(LogEvent logEvent, ILogEventPropertyFactory propertyFactory)
r.User = Adapter.User;
}

logEvent.AddPropertyIfAbsent(propertyFactory.CreateProperty(PropertyName, r));
logEvent.AddPropertyIfAbsent(new LogEventProperty(PropertyName, new ScalarValue(r)));
}

internal class HttpContextEnrichments
Expand Down

0 comments on commit ef55ecb

Please sign in to comment.