Skip to content

Commit

Permalink
Fix tracer
Browse files Browse the repository at this point in the history
  • Loading branch information
stevejgordon committed Nov 29, 2024
1 parent d8ae56e commit 9250b9a
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/Elastic.Apm/Api/Tracer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -78,13 +78,12 @@ private Transaction StartTransactionInternal(string name, string type, Distribut
)
{
var currentConfig = _configurationProvider.CurrentSnapshot;
var retVal = new Transaction(_logger, name, type, new Sampler(currentConfig.TransactionSampleRate), distributedTracingData
, _sender, currentConfig, CurrentExecutionSegmentsContainer, _apmServerInfo, _breakdownMetricsProvider, ignoreActivity, timestamp, id,
var transaction = new Transaction(_logger, name, type, new Sampler(currentConfig.TransactionSampleRate), distributedTracingData,
_sender, currentConfig, CurrentExecutionSegmentsContainer, _apmServerInfo, _breakdownMetricsProvider, ignoreActivity, timestamp, id,
traceId: traceId, links: links, current: current);
retVal.Context.Service = _service;

_logger?.Debug()?.Log("Starting {TransactionValue}", retVal);
return retVal;
_logger?.Debug()?.Log("Starting {TransactionValue}", transaction);
return transaction;
}

public void CaptureTransaction(string name, string type, Action<ITransaction> action, DistributedTracingData distributedTracingData = null, IEnumerable<SpanLink> links = null)
Expand Down

0 comments on commit 9250b9a

Please sign in to comment.