common task¶ @JvmName(name = "task2") context(span: Span) inline fun <T> task( message: () -> String, values: SentierValues = SentierValues.Empty, block: context(Span) () -> T ): T Tracks the progress of block in a child Span. Example¶ context(span: Span) fun createUser() { task({ "Create user" }) { // …create the user… } } inline fun <T> Span.task( message: () -> String, values: SentierValues = SentierValues.Empty, block: context(Span) () -> T ): T Tracks the progress of block in a child Span. Example¶ context(span: Span) fun createUser() { span.task({ "Create user" }) { // …create the user… } }