File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -33,6 +33,15 @@ import com.intellij.platform.diagnostic.telemetry.helpers.useWithScope as ijUseW
3333val AWS_PRODUCT_CONTEXT_KEY = ContextKey .named<AWSProduct >(" pluginDescriptor" )
3434internal val PLUGIN_ATTRIBUTE_KEY = AttributeKey .stringKey(" plugin" )
3535
36+ class DefaultSpan (context : Context ? , delegate : Span ) : BaseSpan<DefaultSpan>(context, delegate)
37+
38+ class DefaultSpanBuilder (delegate : SpanBuilder ) : AbstractSpanBuilder<DefaultSpanBuilder, DefaultSpan>(delegate) {
39+ override fun doStartSpan () = DefaultSpan (parent, delegate.startSpan())
40+ }
41+
42+ // temporary; will be generated
43+ abstract class BaseSpan <SpanType : AbstractBaseSpan <SpanType >>(context : Context ? , delegate : Span ) : AbstractBaseSpan<SpanType>(context, delegate as ReadWriteSpan )
44+
3645abstract class AbstractSpanBuilder <
3746 BuilderType : AbstractSpanBuilder <BuilderType , SpanType >,
3847 SpanType : AbstractBaseSpan <SpanType >,
@@ -183,6 +192,7 @@ abstract class AbstractSpanBuilder<
183192
184193abstract class AbstractBaseSpan <SpanType : AbstractBaseSpan <SpanType >>(internal val context : Context ? , private val delegate : ReadWriteSpan ) : Span by delegate {
185194 protected open val requiredFields: Collection <String > = emptySet()
195+
186196 /* *
187197 * Same as [com.intellij.platform.diagnostic.telemetry.helpers.use] except downcasts to specific subclass of [BaseSpan]
188198 *
You can’t perform that action at this time.
0 commit comments