SentrySpan constructor
SentrySpan(
- SentryTracer _tracer,
- SentrySpanContext _context,
- Hub _hub, {
- DateTime? startTimestamp,
- SentryTracesSamplingDecision? samplingDecision,
- OnFinishedCallback? finishedCallback,
- dynamic isRootSpan = false,
Implementation
SentrySpan(
this._tracer,
this._context,
this._hub, {
DateTime? startTimestamp,
this.samplingDecision,
OnFinishedCallback? finishedCallback,
isRootSpan = false,
}) {
_startTimestamp = startTimestamp?.toUtc() ?? _hub.options.clock();
_finishedCallback = finishedCallback;
_origin = _context.origin;
_localMetricsAggregator = _hub.options.enableSpanLocalMetricAggregation
? LocalMetricsAggregator()
: null;
_isRootSpan = isRootSpan;
}