Skip to content

Commit

Permalink
Fix #2421 ensure _allowFilterAdd is true on initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
Mpdreamz committed Aug 19, 2024
1 parent eae543f commit 84bdfce
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Elastic.Apm/Report/PayloadSenderV2.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ namespace Elastic.Apm.Report
internal class PayloadSenderV2 : BackendCommComponentBase, IPayloadSender, IPayloadSenderWithFilters
{
private const string ThisClassName = nameof(PayloadSenderV2);
internal readonly List<Func<IError, IError>> ErrorFilters = new();
internal readonly List<Func<ISpan, ISpan>> SpanFilters = new();
internal readonly List<Func<ITransaction, ITransaction>> TransactionFilters = new();
private readonly List<Func<IError, IError>> ErrorFilters = new();
private readonly List<Func<ISpan, ISpan>> SpanFilters = new();
private readonly List<Func<ITransaction, ITransaction>> TransactionFilters = new();

private readonly IApmServerInfo _apmServerInfo;

Expand Down Expand Up @@ -148,7 +148,7 @@ IApmLogger logger

private bool _getApmServerVersion;
private bool _getCloudMetadata;
private bool _allowFilterAdd;
private bool _allowFilterAdd = true;
private static readonly UTF8Encoding Utf8Encoding;
private static readonly MediaTypeHeaderValue MediaTypeHeaderValue;

Expand Down

0 comments on commit 84bdfce

Please sign in to comment.