internal Span StartSpan(IApmAgent agent, IDbCommand dbCommand, InstrumentationFlag instrumentationFlag, string subType = null, bool captureStackTraceOnStart = false ) { var spanName = dbCommand.CommandText.Replace(Environment.NewLine, " "); return(ExecutionSegmentCommon.StartSpanOnCurrentExecutionSegment(agent, spanName, ApiConstants.TypeDb, subType, instrumentationFlag, captureStackTraceOnStart)); }
internal ISpan StartSpan(IApmAgent agent, IDbCommand dbCommand, InstrumentationFlag instrumentationFlag, string subType = null, bool captureStackTraceOnStart = false ) { var spanName = GetDbSpanName(dbCommand); return(ExecutionSegmentCommon.StartSpanOnCurrentExecutionSegment(agent, spanName, ApiConstants.TypeDb, subType, instrumentationFlag, captureStackTraceOnStart, true)); }
public void CaptureError(string message, string culprit, StackFrame[] frames, string parentId = null) => ExecutionSegmentCommon.CaptureError( message, culprit, frames, _sender, _logger, this, this, parentId );
public void CaptureException(Exception exception, string culprit = null, bool isHandled = false, string parentId = null) => ExecutionSegmentCommon.CaptureException( exception, _logger, _sender, this, this, culprit, isHandled, parentId );
public void CaptureError(string message, string culprit, StackFrame[] frames, string parentId = null) => ExecutionSegmentCommon.CaptureError( message, culprit, frames, _payloadSender, _logger, this, _enclosingTransaction, parentId );
public void CaptureException(Exception exception, string culprit = null, bool isHandled = false, string parentId = null) => ExecutionSegmentCommon.CaptureException( exception, _logger, _payloadSender, this, _enclosingTransaction, culprit, isHandled, parentId );
public void CaptureError(string message, string culprit, StackFrame[] frames, string parentId = null) => ExecutionSegmentCommon.CaptureError( message, culprit, frames, _payloadSender, _logger, this, ConfigSnapshot, _enclosingTransaction, parentId ?? (ShouldBeSentToApmServer ? null : _enclosingTransaction.Id) );
public void CaptureException(Exception exception, string culprit = null, bool isHandled = false, string parentId = null) => ExecutionSegmentCommon.CaptureException( exception, _logger, _payloadSender, this, ConfigSnapshot, _enclosingTransaction, culprit, isHandled, parentId ?? (ShouldBeSentToApmServer ? null : _enclosingTransaction.Id) );
public void CaptureErrorLog(ErrorLog errorLog, string parentId = null, Exception exception = null, Dictionary <string, Label> labels = null) => ExecutionSegmentCommon.CaptureErrorLog( errorLog, _payloadSender, _logger, this, ConfigSnapshot, _enclosingTransaction, parentId ?? (ShouldBeSentToApmServer ? null : _enclosingTransaction.Id), _apmServerInfo, exception, labels );
public void CaptureSpan(string name, string type, Action capturedAction, string subType = null, string action = null) => ExecutionSegmentCommon.CaptureSpan(new NoopSpan(name, type, subType, action, _currentExecutionSegmentsContainer), capturedAction);
public Task <T> CaptureSpan <T>(string name, string type, Func <ISpan, Task <T> > func, string subType = null, string action = null) => ExecutionSegmentCommon.CaptureSpan(StartSpanInternal(name, type, subType, action), func);
public void CaptureSpan(string name, string type, Action capturedAction, string subType = null, string action = null) => ExecutionSegmentCommon.CaptureSpan(StartSpanInternal(name, type, subType, action), capturedAction);
public Task <T> CaptureSpan <T>(string name, string type, Func <ISpan, Task <T> > func, string subType = null, string action = null, bool isExitSpan = false, IEnumerable <SpanLink> links = null ) => ExecutionSegmentCommon.CaptureSpan(new NoopSpan(name, type, subType, action, _currentExecutionSegmentsContainer, Id, TraceId, this), func);
public void CaptureSpan(string name, string type, Action capturedAction, string subType = null, string action = null, bool isExitSpan = false, IEnumerable <SpanLink> links = null ) => ExecutionSegmentCommon.CaptureSpan(new NoopSpan(name, type, subType, action, _currentExecutionSegmentsContainer, Id, TraceId, this), capturedAction);
public Task CaptureSpan(string name, string type, Func <Task> func, string subType = null, string action = null) => ExecutionSegmentCommon.CaptureSpan(new NoopSpan(name, type, subType, action, _currentExecutionSegmentsContainer), func);
public Task CaptureSpan(string name, string type, Func <Task> func, string subType = null, string action = null, bool isExitSpan = false) => ExecutionSegmentCommon.CaptureSpan(new NoopSpan(name, type, subType, action, _currentExecutionSegmentsContainer, Id, TraceId, this), func);
public Task <T> CaptureSpan <T>(string name, string type, Func <ISpan, Task <T> > func, string subType = null, string action = null) => ExecutionSegmentCommon.CaptureSpan(new NoopSpan(name, type, subType, action, _currentExecutionSegmentsContainer, Id, TraceId, this), func);
public Task <T> CaptureSpan <T>(string name, string type, Func <ISpan, Task <T> > func, string subType = null, string action = null, bool isExitSpan = false) => ExecutionSegmentCommon.CaptureSpan(new NoopSpan(name, type, subType, action, _currentExecutionSegmentsContainer), func);
internal Span StartSpan(IApmAgent agent, IDbCommand dbCommand) => (Span)ExecutionSegmentCommon.GetCurrentExecutionSegment(agent).StartSpan(dbCommand.CommandText.Replace(Environment.NewLine, " ") , ApiConstants.TypeDb);