예제 #1
0
        /// <inheritdoc/>
        public override ISpan StartSpan(string operationName, ISpan parent, SpanKind kind, SpanCreationOptions options)
        {
            if (parent == null)
            {
                parent = this.CurrentSpan;
            }

            return(SpanSdk.CreateFromParentSpan(operationName, parent, kind, options, this.sampler, this.tracerConfiguration,
                                                this.spanProcessor, this.LibraryResource));
        }
예제 #2
0
 /// <inheritdoc/>
 public override TelemetrySpan StartRootSpan(string operationName, SpanKind kind, SpanCreationOptions options)
 {
     return(SpanSdk.CreateRoot(operationName, kind, options, this.sampler, this.tracerConfiguration, this.spanProcessor, this.LibraryResource));
 }